<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>╭╰Original　Colors╯╮ - 认真工作 &#187; 日志调用</title>
	<atom:link href="http://www.iros.me/tag/%e6%97%a5%e5%bf%97%e8%b0%83%e7%94%a8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iros.me</link>
	<description>show the colorsssssss in my WORK</description>
	<lastBuildDate>Fri, 09 Sep 2011 06:29:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>学习使用强大的query_posts()，wordpress日志调用咱爱咋咋地~~</title>
		<link>http://www.iros.me/powerful-query-posts.html</link>
		<comments>http://www.iros.me/powerful-query-posts.html#comments</comments>
		<pubDate>Tue, 30 Dec 2008 03:14:47 +0000</pubDate>
		<dc:creator>ponytail</dc:creator>
				<category><![CDATA[┨Ooooooother]]></category>
		<category><![CDATA[┨Skill]]></category>
		<category><![CDATA[┨Stuuuuuuuudy]]></category>
		<category><![CDATA[query_posts]]></category>
		<category><![CDATA[Wordpress修改]]></category>
		<category><![CDATA[日志调用]]></category>

		<guid isPermaLink="false">http://www.originalcolors.cn/work/?p=346</guid>
		<description><![CDATA[昏天暗地折腾新的主题ING，发现query_posts()真是无比强大，记录一下~~ 将query_posts()放在LOOP之前限定你所需要的条件，wp_query会产生一个新的使用你的参数的SQL查询，而忽视通过URL接收到的其它的参数，如果想不忽略，可以在调用中使用$query_string。 query_posts&#40;$query_string . &#34;&#38;order=ASC&#34;&#41; 设置文章显示的顺序，但是不干扰其余的查询字符串，参数前须有“&#038;”符号 其他还有N多用途~~ 主页不显示某一分类下的日志 &#60;?php if &#40;is_home&#40;&#41;&#41; &#123; query_posts&#40;&#34;cat=-3&#34;&#41;; &#125; ?&#62; 获得特定的日志 &#60;?php query_posts&#40;'p=5'&#41;; ?&#62; 获得特定的页面 &#60;?php query_posts&#40;'page_id=7'&#41;; //只返回网页7 ?&#62; &#60;?php query_posts&#40;'pagename=about'&#41;; //只返回关于网页 ?&#62; &#60;?php query_posts&#40;'pagename=parent/child'&#41;; // 返回母网页的子网页 ?&#62; 创建所有文章列表，并且提供分页功能 &#60;?php query_posts&#40;$query_string.'posts_per_page=-1'&#41;; while&#40;have_posts&#40;&#41;&#41; &#123; the_post&#40;&#41;; put your loop here ; &#125; ?&#62; ========================================== 类别 参数 显示属于某个类别的文章 cat category_name 根据ID显示一个类别 只显示来自一个类别ID的文章 query_posts&#40;'cat=4'&#41;; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="96" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="我自己做的Wordpress Test站大集合！~ WordPress是好物！~~" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.iros.me%2Fmy-wordpress-websites.html&from=http%3A%2F%2Fwww.iros.me%2Fpowerful-query-posts.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #B0BF32 !important; width: 90px !important; height: 90px !important;" src="http://static.wumii.com/site_images/2011/09/09/29586156.jpg" width="90px" height="90px" /><br />
                        <font size="-1" color="#666666" style="display: block !important; line-height: 15px !important; width: 96px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">我自己做的Wordpress Test站大集合！~ WordPress是好物！~~</font>
                    </a>
                </td>
                <td width="96" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #B0BF32 !important;">
                    <a target="_blank" title="WordPress技术手册 基本文件及参数说明" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.iros.me%2Fwordpress-technical-manual.html&from=http%3A%2F%2Fwww.iros.me%2Fpowerful-query-posts.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #B0BF32 !important; width: 90px !important; height: 90px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="90px" height="90px" /><br />
                        <font size="-1" color="#666666" style="display: block !important; line-height: 15px !important; width: 96px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress技术手册 基本文件及参数说明</font>
                    </a>
                </td>
                <td width="96" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #B0BF32 !important;">
                    <a target="_blank" title="[置顶] WordPress 主题插件修改 爬行记录（2011.1.19）" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.iros.me%2Fmy-wordpress-life.html&from=http%3A%2F%2Fwww.iros.me%2Fpowerful-query-posts.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #B0BF32 !important; width: 90px !important; height: 90px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="90px" height="90px" /><br />
                        <font size="-1" color="#666666" style="display: block !important; line-height: 15px !important; width: 96px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[置顶] WordPress 主题插件修改 爬行记录（2011.1.19）</font>
                    </a>
                </td>
                <td width="96" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #B0BF32 !important;">
                    <a target="_blank" title="使用Wordpress搭建中小型展示网站，公司篇~~ 问题+插件汇总" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.iros.me%2Fwordpress-websites.html&from=http%3A%2F%2Fwww.iros.me%2Fpowerful-query-posts.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #B0BF32 !important; width: 90px !important; height: 90px !important;" src="http://static.wumii.com/site_images/2011/09/09/29583537.jpg" width="90px" height="90px" /><br />
                        <font size="-1" color="#666666" style="display: block !important; line-height: 15px !important; width: 96px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用Wordpress搭建中小型展示网站，公司篇~~ 问题+插件汇总</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昏天暗地折腾新的主题ING，发现query_posts()真是无比强大，记录一下~~</p>
<p>将query_posts()放在LOOP之前限定你所需要的条件，wp_query会产生一个新的使用你的参数的SQL查询，而忽视通过URL接收到的其它的参数，如果想不忽略，可以在调用中使用$query_string。</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #000088;" >$query_string</span> <span style="color: #339933;" >.</span> <span style="color: #0000ff;" >&quot;&amp;order=ASC&quot;</span><span style="color: #009900;" >&#41;</span></pre></div></div>

<p>设置文章显示的顺序，但是不干扰其余的查询字符串，参数前须有“&#038;”符号</p>
<p>其他还有N多用途~~</p>
<p><span id="more-346" ></span></p>
<ul>
<li>主页不显示某一分类下的日志</li>
</ul>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" ><span style="color: #000000; font-weight: bold;" >&lt;?php</span>
   <span style="color: #b1b100;" >if</span> <span style="color: #009900;" >&#40;</span>is_home<span style="color: #009900;" >&#40;</span><span style="color: #009900;" >&#41;</span><span style="color: #009900;" >&#41;</span> <span style="color: #009900;" >&#123;</span>
      query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >&quot;cat=-3&quot;</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span>
   <span style="color: #009900;" >&#125;</span>
<span style="color: #000000; font-weight: bold;" >?&gt;</span></pre></div></div>

<ul>
<li>获得特定的日志</li>
</ul>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" ><span style="color: #000000; font-weight: bold;" >&lt;?php</span>
query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'p=5'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span>
<span style="color: #000000; font-weight: bold;" >?&gt;</span></pre></div></div>

<ul>
<li>获得特定的页面</li>
</ul>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" ><span style="color: #000000; font-weight: bold;" >&lt;?php</span>
query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'page_id=7'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span>      <span style="color: #666666; font-style: italic;" >//只返回网页7</span>
<span style="color: #000000; font-weight: bold;" >?&gt;</span></pre></div></div>


<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" ><span style="color: #000000; font-weight: bold;" >&lt;?php</span>
query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'pagename=about'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span> <span style="color: #666666; font-style: italic;" >//只返回关于网页</span>
<span style="color: #000000; font-weight: bold;" >?&gt;</span></pre></div></div>


<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" ><span style="color: #000000; font-weight: bold;" >&lt;?php</span>
query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'pagename=parent/child'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span> <span style="color: #666666; font-style: italic;" >// 返回母网页的子网页</span>
<span style="color: #000000; font-weight: bold;" >?&gt;</span></pre></div></div>

<ul>
<li>创建所有文章列表，并且提供分页功能</li>
</ul>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" ><span style="color: #000000; font-weight: bold;" >&lt;?php</span>
query_posts<span style="color: #009900;" >&#40;</span><span style="color: #000088;" >$query_string</span><span style="color: #339933;" >.</span><span style="color: #0000ff;" >'posts_per_page=-1'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span>
<span style="color: #b1b100;" >while</span><span style="color: #009900;" >&#40;</span>have_posts<span style="color: #009900;" >&#40;</span><span style="color: #009900;" >&#41;</span><span style="color: #009900;" >&#41;</span> <span style="color: #009900;" >&#123;</span> the_post<span style="color: #009900;" >&#40;</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span>
put your loop here <span style="color: #339933;" >;</span>
<span style="color: #009900;" >&#125;</span>
<span style="color: #000000; font-weight: bold;" >?&gt;</span></pre></div></div>

<p>==========================================</p>
<h3>类别 参数</h3>
<p><strong>显示属于某个类别的文章 </strong></p>
<ul>
<li> cat</li>
<li> category_name</li>
</ul>
<p><strong>根据ID显示一个类别</strong></p>
<p>只显示来自一个类别ID的文章</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'cat=4'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p><strong>根据名称显示一个类别</strong></p>
<p>只显示属于某个类别名的文章</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'category_name=Staff Home'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p><strong>显示几个类别及ID</strong></p>
<p>显示属于几个类别ID的文章</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'cat=2,6,17,38'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p><strong>删除某个类别的文章</strong></p>
<p>显示所有的文章，但是类别ID前面有个&#8217;-'（负号）负号的类被除外。</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'cat=-3'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p>删除属于类别3的所有文章。有一个限制性条款：会删除只属于类别3的所有文章。如果一个类别也同时属于其它的类别，这个类别仍然不会被删除。</p>
<h3>标签参数</h3>
<p><strong>显示与某个标签相关的文章 </strong></p>
<ul>
<li> tag</li>
</ul>
<p><strong>为某个标签提取文章</strong></p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'tag=cooking'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p><strong>获得拥有任何这样的标签的文章</strong></p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'tag=bread,baking'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p><strong>获取拥有这三个标签的文章 </strong></p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'tag=bread+baking+recipe'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<h3>作者参数</h3>
<p><strong>你也可以根据作者限制文章数目 </strong></p>
<ul>
<li> author_name=Harriet</li>
<li> author=3</li>
</ul>
<p>author_name在 user_nicename区操作, 同时作者 在作者id上操作。</p>
<h3>文章 &#038; 网页参数</h3>
<p><strong>返回一篇单独的文章或者一个单独的网页</strong></p>
<ul>
<li> p=1 &#8211; 使用文章 ID来显示第一篇文章</li>
<li> name=first-post &#8211; 使用 <a  title="WordPress:Introduction to Blogging" href="http://www.zzbaike.com/wiki/WordPress:Introduction_to_Blogging#Post_Slugs">post Slug</a> 显示第一篇文章</li>
<li> page_id=7</li>
<li> pagename=about</li>
<li> showposts=1 (你可以使用 showposts=3,或者其它的任何数字显示一定数目的文章)</li>
</ul>
<p>由于 <a  title="WordPress:Template Hierarchy" href="http://www.zzbaike.com/wiki/WordPress:Template_Hierarchy">模板层级</a>方面的原因, home.php先执行了。这意味这你可以编写一个home.php，home.phh调用query_posts()重新得到一个特别的网页并且将那个网页设置为你的首页。没有任何插件或者hacks，你需要运行一个机制，并且显示和维护一个非博客的首页。</p>
<p>更有用的方法，可能是利用WP的<a  title="WordPress:Pages" href="http://www.zzbaike.com/wiki/WordPress:Pages">网页</a>功能并且为你的首页使用这个功能。你可以将&#8221;关于网页&#8221;设置为entry point或者设置为站点的末页。你可能执行一些更动态的步骤，设置一个自定义网页，显示最近的评论，文章，类别，存档。请看看下面的例子。</p>
<h3>时间参数</h3>
<p><strong>得到某个特别的时间段内发表的文章 </strong></p>
<ul>
<li> hour=</li>
<li> minute=</li>
<li> second=</li>
<li> day= &#8211; 一个月中的每一天; 显示，例如，十五号发表的所有文章。</li>
<li> monthnum=</li>
<li> year=</li>
</ul>
<h3>网页参数</h3>
<ul>
<li> paged=2 -显示使用&#8221;以前发表的文章&#8221;链接时，通常在网页2上显示的文章。</li>
</ul>
<ul>
<li> posts_per_page=10  -每个网页显示的文章数目；-1这个值，会显示所有的文章。</li>
</ul>
<ul>
<li> order=ASC -按时间顺序显示文章，以相反的顺序显示DESC（默认）</li>
</ul>
<h3>Offset 参数</h3>
<p>你不能转移或者忽视一个或者更多的原始文章，这些文章一般是你的query同时使用offset参数收集到的。</p>
<p>下面的函数会显示（1）最近的5篇文章</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'showposts=5&amp;offset=1'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<h3>根据参数排序</h3>
<p><strong>根据这个区给得到的文章排序 </strong></p>
<ul>
<li> orderby=author</li>
<li> orderby=date</li>
<li> orderby=category</li>
<li> orderby=title</li>
<li> orderby=modified</li>
<li> orderby=modified</li>
<li> orderby=menu_order</li>
<li> orderby=parent</li>
<li> orderby=ID</li>
<li> orderby=rand</li>
</ul>
<p>同时考虑&#8221;ASC&#8221;或者的&#8221;DESC&#8221;的排序参数</p>
<h3>联合参数</h3>
<p>你可能从上面的例子中注意到，你使用一个&#038;（&#038;符号）将参数组合在一起，像：</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'cat=3&amp;year=2004'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p>类别13，关于当前月份显示在主页上的文章：</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" ><span style="color: #b1b100;" >if</span> <span style="color: #009900;" >&#40;</span>is_home<span style="color: #009900;" >&#40;</span><span style="color: #009900;" >&#41;</span><span style="color: #009900;" >&#41;</span>  <span style="color: #009900;" >&#123;</span>
query_posts <span style="color: #009900;" >&#40;</span><span style="color: #000088;" >$query_string</span> <span style="color: #339933;" >.</span> <span style="color: #0000ff;" >'&amp;cat=13&amp;monthnum='</span> <span style="color: #339933;" >.</span> <span style="color: #990000;" >date</span><span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'n'</span><span style="color: #339933;" >,</span>current_time<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'timestamp'</span><span style="color: #009900;" >&#41;</span><span style="color: #009900;" >&#41;</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span> <span style="color: #009900;" >&#125;</span></pre></div></div>

<p>在2.3版本中，这个参数组合会返回属于类别1同时属于类别3的文章，只显示两篇（2）文章，根据标题，按降序排列：</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #990000;" >array</span><span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'category__and'</span><span style="color: #339933;" >=&gt;</span>array<span style="color: #009900;" >&#40;</span><span style="color: #cc66cc;" >1</span><span style="color: #339933;" >,</span><span style="color: #cc66cc;" >3</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >,</span><span style="color: #0000ff;" >'showposts'</span><span style="color: #339933;" >=&gt;</span><span style="color: #cc66cc;" >2</span><span style="color: #339933;" >,</span><span style="color: #0000ff;" >'orderby'</span><span style="color: #339933;" >=&gt;</span>title<span style="color: #339933;" >,</span><span style="color: #0000ff;" >'order'</span><span style="color: #339933;" >=&gt;</span>DESC<span style="color: #009900;" >&#41;</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p>在2.3和2.5版本中，你可能期待下面的内容，返回属于类别1并且标签为&#8221;苹果&#8221;的所有文章</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'cat=1&amp;tag=apples'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p>一个bug阻止这个运行。请看看<a  class="external text" title="http://trac.wordpress.org/ticket/5433" rel="nofollow" href="http://trac.wordpress.org/ticket/5433" target="_blank">Ticket #5433</a>，一个工作区要搜索几个使用+的标签</p>

<div class="wp_syntax" ><div class="code" ><pre class="php"  style="font-family:monospace;" >query_posts<span style="color: #009900;" >&#40;</span><span style="color: #0000ff;" >'cat=1&amp;tag=apples+apples'</span><span style="color: #009900;" >&#41;</span><span style="color: #339933;" >;</span></pre></div></div>

<p>对于先前的查询，这个会产生期待的结果。注意使用&#8217;cat=1&#038;tag=apples+oranges&#8217;能够产生期待的结果。</p>
<blockquote><p> 资料来源：<a  href="http://www.zzbaike.com/wiki/Template_Tags/query_posts" target="_blank">站长百科 Template Tags/query posts</a> </p></blockquote>
<table class="wumii-related-items"  cellspacing="0"  cellpadding="3"  border="0"  style="clear: both;" >
    
    <tr>
        <td colspan="4" ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;" >您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="96"  valign="top"  style="padding: 5px !important; margin: 0 !important;" >
                    <a  target="_blank" title="我自己做的Wordpress Test站大集合！~ WordPress是好物！~~" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.iros.me%2Fmy-wordpress-websites.html&#038;from=http%3A%2F%2Fwww.iros.me%2Fpowerful-query-posts.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #B0BF32 !important; width: 90px !important; height: 90px !important;"  src="http://static.wumii.com/site_images/2011/09/09/29586156.jpg"  width="90px"  height="90px" /><br/>
                        <font size="-1"  color="#666666"  style="display: block !important; line-height: 15px !important; width: 96px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;" >我自己做的Wordpress Test站大集合！~ WordPress是好物！~~</font>
                    </a>
                </td>
                <td width="96"  valign="top"  style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #B0BF32 !important;" >
                    <a  target="_blank" title="WordPress技术手册 基本文件及参数说明" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.iros.me%2Fwordpress-technical-manual.html&#038;from=http%3A%2F%2Fwww.iros.me%2Fpowerful-query-posts.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #B0BF32 !important; width: 90px !important; height: 90px !important;"  src="http://static.wumii.com/images/blogWidget/wordpress_default.gif"  width="90px"  height="90px" /><br/>
                        <font size="-1"  color="#666666"  style="display: block !important; line-height: 15px !important; width: 96px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;" >WordPress技术手册 基本文件及参数说明</font>
                    </a>
                </td>
                <td width="96"  valign="top"  style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #B0BF32 !important;" >
                    <a  target="_blank" title="[置顶] WordPress 主题插件修改 爬行记录（2011.1.19）" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.iros.me%2Fmy-wordpress-life.html&#038;from=http%3A%2F%2Fwww.iros.me%2Fpowerful-query-posts.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #B0BF32 !important; width: 90px !important; height: 90px !important;"  src="http://static.wumii.com/images/blogWidget/wordpress_default.gif"  width="90px"  height="90px" /><br/>
                        <font size="-1"  color="#666666"  style="display: block !important; line-height: 15px !important; width: 96px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;" >[置顶] WordPress 主题插件修改 爬行记录（2011.1.19）</font>
                    </a>
                </td>
                <td width="96"  valign="top"  style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #B0BF32 !important;" >
                    <a  target="_blank" title="使用Wordpress搭建中小型展示网站，公司篇~~ 问题+插件汇总" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.iros.me%2Fwordpress-websites.html&#038;from=http%3A%2F%2Fwww.iros.me%2Fpowerful-query-posts.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #B0BF32 !important; width: 90px !important; height: 90px !important;"  src="http://static.wumii.com/site_images/2011/09/09/29583537.jpg"  width="90px"  height="90px" /><br/>
                        <font size="-1"  color="#666666"  style="display: block !important; line-height: 15px !important; width: 96px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;" >使用Wordpress搭建中小型展示网站，公司篇~~ 问题+插件汇总</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4"  align="right" >
            <a  style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1"  color="#bbbbbb"  style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;" >无觅</font>
            </a>
        </td>
    </tr>
</table>
	标签：<a href="http://www.iros.me/tag/query_posts" title="query_posts" rel="tag">query_posts</a>, <a href="http://www.iros.me/tag/wordpress%e4%bf%ae%e6%94%b9" title="Wordpress修改" rel="tag">Wordpress修改</a>, <a href="http://www.iros.me/tag/%e6%97%a5%e5%bf%97%e8%b0%83%e7%94%a8" title="日志调用" rel="tag">日志调用</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.iros.me/powerful-query-posts.html/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

