<?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>等待-放飞梦想 &#187; WP函数摘录</title>
	<atom:link href="http://leotheme.cn/category/wordpress/wpfunction/feed" rel="self" type="application/rss+xml" />
	<link>http://leotheme.cn</link>
	<description>勤现在-乐将来</description>
	<lastBuildDate>Tue, 07 Feb 2012 07:06:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>一个实用的wordpress导航</title>
		<link>http://leotheme.cn/wordpress/%e4%b8%80%e4%b8%aa%e5%ae%9e%e7%94%a8%e7%9a%84wordpress%e5%af%bc%e8%88%aa.html</link>
		<comments>http://leotheme.cn/wordpress/%e4%b8%80%e4%b8%aa%e5%ae%9e%e7%94%a8%e7%9a%84wordpress%e5%af%bc%e8%88%aa.html#comments</comments>
		<pubDate>Tue, 07 Jun 2011 08:52:18 +0000</pubDate>
		<dc:creator>Await</dc:creator>
				<category><![CDATA[WP函数摘录]]></category>
		<category><![CDATA[WP相关]]></category>
		<category><![CDATA[next]]></category>
		<category><![CDATA[previous]]></category>
		<category><![CDATA[导航]]></category>

		<guid isPermaLink="false">http://leotheme.cn/?p=940</guid>
		<description><![CDATA[在Wordpress模板函数库中的“链接函数”（在wp-includesLink-template.php中）有2个函数可以得到前、后文章链接： previous_post_link()：生成当前文章的前一篇文章链接地址； next_post_link()：生成当前文章的后一篇文章链接地址； 这2个函数是直接生成（即直接Echo）链接地址（包括标题、提示），而如果要返回链接的具体内容，则可用这2个函数： get_previous_post()：返回当前文章的前一篇文章链接地址数组； get_next_post()：返回当前文章的后一篇文章链接地址数组； 返回的数组结构为： tdClass Object ( [ID] => 2763 [post_author] => 1 [post_date] => 2009-06-01 03:40:48 [post_date_gmt] => 2009-05-31 19:40:48 [post_content] => 内容…… [post_title] => [转]SEO方程式让你彻底了解SEO [post_category] => 0 [post_excerpt] => [post_status] => publish [comment_status] => open [ping_status] => open [post_password] => [post_name] => zhuan-seo-fang-cheng-shi-rang-ni-che-di-liao-jie-seo [to_ping] => [pinged] => [post_modified] => [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress主题：perfct 1.0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-themes-perfct.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/22/33021700.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：perfct 1.0</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决wordpress分页问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress分类列表函数:wp_list_categories" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress分类列表函数:wp_list_categories</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress页面函数：wp_list_pages()" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress页面函数：wp_list_pages()</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress评论表单验证" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-comment-form-proof.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196493.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>在Wordpress模板函数库中的“链接函数”（在wp-includesLink-template.php中）有2个函数可以得到前、后文章链接：</p>
<p>    previous_post_link()：生成当前文章的前一篇文章链接地址；<br />
    next_post_link()：生成当前文章的后一篇文章链接地址；</p>
<p>这2个函数是直接生成（即直接Echo）链接地址（包括标题、提示），而如果要返回链接的具体内容，则可用这2个函数：</p>
<p>    get_previous_post()：返回当前文章的前一篇文章链接地址数组；<br />
    get_next_post()：返回当前文章的后一篇文章链接地址数组；</p>
<p>返回的数组结构为：<br />
<span id="more-940"></span><br />
<coolcode lang="php"><br />
    tdClass Object<br />
    (<br />
    [ID] => 2763<br />
    [post_author] => 1<br />
    [post_date] => 2009-06-01 03:40:48<br />
    [post_date_gmt] => 2009-05-31 19:40:48<br />
    [post_content] => 内容……<br />
    [post_title] => [转]SEO方程式让你彻底了解SEO<br />
    [post_category] => 0<br />
    [post_excerpt] =><br />
    [post_status] => publish<br />
    [comment_status] => open<br />
    [ping_status] => open<br />
    [post_password] =><br />
    [post_name] => zhuan-seo-fang-cheng-shi-rang-ni-che-di-liao-jie-seo<br />
    [to_ping] =><br />
    [pinged] =><br />
    [post_modified] => 2009-06-01 03:40:48<br />
    [post_modified_gmt] => 2009-05-31 19:40:48<br />
    [post_content_filtered] =><br />
    [post_parent] => 0<br />
    [guid] => http://www.paopaoniu.com/?p=2763<br />
    [menu_order] => 0<br />
    [post_type] => post<br />
    [post_mime_type] =><br />
    [comment_count] => 4<br />
    )<br />
<coolcode></p>
<p>利用这几个函数的结合，然后利用类似“递归”的传递算法，则可获得相对于当前文章前、后的N篇文章！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress主题：perfct 1.0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-themes-perfct.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/22/33021700.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：perfct 1.0</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决wordpress分页问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress分类列表函数:wp_list_categories" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress分类列表函数:wp_list_categories</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress页面函数：wp_list_pages()" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress页面函数：wp_list_pages()</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress评论表单验证" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-comment-form-proof.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196493.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>2011-09-01 -- <a href="http://leotheme.cn/wordpress/wordpress-themes-perfct.html" title="WordPress主题：perfct 1.0">WordPress主题：perfct 1.0</a> (88)<br /><small>已经很久很久没写日志了。更不知道有多久没有发布新主题了！好像已经失去了那种曾经的兴趣和动力，很多时候想写，却又找不到话题。有些技术上的文章想分享。但又懒得编缉。要分析，上代码，做实例。最终只是想想而已...</small></li><li>2011-06-07 -- <a href="http://leotheme.cn/wordpress/wordpress-query-post-paged.html" title="解决wordpress分页问题">解决wordpress分页问题</a> (0)<br /><small>这是为解决使用query_post()函数调用某一类文章后引起的分页问题的办法。

query_post()非常有用，可以输出wordpress主循环以外的自定义文章，但是缺点在于覆盖了post变...</small></li><li>2009-11-30 -- <a href="http://leotheme.cn/javascript/ajax-load-post-content.html" title="不刷新（AJAX）获取文章的内容">不刷新（AJAX）获取文章的内容</a> (53)<br /><small>相信大家都知道AJAX评论这玩意。AJAX评论带来了很多好处，不用在刷新页面就能发表评论。实时提交，实时显示。很多人都用上了都给自己的BLOG上添加了这样的功能。方法在这就不说了，很多人都作了详细的讲...</small></li><li>2009-07-07 -- <a href="http://leotheme.cn/wordpress/wpfunction/wp_list_pages.html" title="WordPress页面函数：wp_list_pages()">WordPress页面函数：wp_list_pages()</a> (16)<br /><small>模板标签wp_list_pages( )将WordPress页面作为链接显示出来。该模板标签常用于自定义侧边栏或标题，也常用于其他模板中。该模板标签在WordPress 1.5及更新版本中可用。
用...</small></li><li>2009-07-03 -- <a href="http://leotheme.cn/wordpress/wpfunction/wordpress-function-time.html" title="WordPress日期和时间函数：the_time()">WordPress日期和时间函数：the_time()</a> (8)<br /><small>在wordpress主题中，有的时候我们会涉及到wordpress时间的格式，每次都去找很麻烦，查了一下WordPress的时间函数，以及调用的时候的时间参数，所谓时间参数，是WordPress应用时...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://leotheme.cn/wordpress/%e4%b8%80%e4%b8%aa%e5%ae%9e%e7%94%a8%e7%9a%84wordpress%e5%af%bc%e8%88%aa.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress页面函数：wp_list_pages()</title>
		<link>http://leotheme.cn/wordpress/wpfunction/wp_list_pages.html</link>
		<comments>http://leotheme.cn/wordpress/wpfunction/wp_list_pages.html#comments</comments>
		<pubDate>Mon, 06 Jul 2009 17:09:18 +0000</pubDate>
		<dc:creator>Await</dc:creator>
				<category><![CDATA[WP函数摘录]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[WP相关]]></category>
		<category><![CDATA[函数]]></category>

		<guid isPermaLink="false">http://leotheme.cn/?p=704</guid>
		<description><![CDATA[模板标签wp_list_pages( )将WordPress页面作为链接显示出来。该模板标签常用于自定义侧边栏或标题，也常用于其他模板中。该模板标签在WordPress 1.5及更新版本中可用。 用法： &#60;?php wp_list_pages('arguments'); ?&#62; 默认参数设置为： $defaults = array(&#160; &#160; &#160; &#160;&#160; &#160;'depth'&#160; &#160; &#160; &#160;=&#62; 0,&#160; &#160;显示所有页面和子页面（无深度限制） &#160;&#160; &#160;'show_date'&#160; &#160;=&#62; '',&#160; &#160; &#160;不显示创建日期 &#160;&#160; &#160;'date_format' =&#62; get_option('date_format'),&#160; &#160; &#160; &#160;&#160; &#160;'child_of'&#160; &#160; =&#62; 0,&#160; &#160; &#160; 子页面无限制&#160;&#160; &#160;'exclude'&#160; &#160; &#160;=&#62; '',&#160; &#160; 不删除任何页面&#160;&#160; &#160;'title_li'&#160; &#160; =&#62; __('Pages'),&#160; &#160;页面列表的标题为“Pages（页面）” &#160;&#160; &#160;'echo'&#160; &#160; &#160; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="解决wordpress分页问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress分类列表函数:wp_list_categories" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress分类列表函数:wp_list_categories</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：perfct 1.0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-themes-perfct.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/22/33021700.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：perfct 1.0</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="一个实用的wordpress导航" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题之Maxthon 2.0.2[08-08-11]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpressthememaxthon202.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6198872.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题之Maxthon 2.0.2[08-08-11]</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>模板标签wp_list_pages( )将WordPress页面作为链接显示出来。该模板标签常用于自定义侧边栏或标题，也常用于其他模板中。该模板标签在WordPress 1.5及更新版本中可用。<br />
用法：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">arguments</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></div></div>
<p><span id="more-704"></span><br />
<strong>默认参数设置为：</strong></p>
<div class="hl-surround"><div class="hl-main"><span style="color: #00008b;">$defaults</span><span style="color: Gray;"> = </span><span style="color: Green;">array</span><span style="color: Olive;">(</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">depth</span><span style="color: #8b0000;">'</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp;=&gt; </span><span style="color: Maroon;">0</span><span style="color: Gray;">,&nbsp; &nbsp;显示所有页面和子页面（无深度限制） <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">show_date</span><span style="color: #8b0000;">'</span><span style="color: Gray;">&nbsp; &nbsp;=&gt; </span><span style="color: #8b0000;">''</span><span style="color: Gray;">,&nbsp; &nbsp; &nbsp;不显示创建日期 <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">date_format</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> =&gt; </span><span style="color: Blue;">get_option</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">date_format</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">,&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">child_of</span><span style="color: #8b0000;">'</span><span style="color: Gray;">&nbsp; &nbsp; =&gt; </span><span style="color: Maroon;">0</span><span style="color: Gray;">,&nbsp; &nbsp; &nbsp; 子页面无限制<br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">exclude</span><span style="color: #8b0000;">'</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp;=&gt; </span><span style="color: #8b0000;">''</span><span style="color: Gray;">,&nbsp; &nbsp; 不删除任何页面<br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">title_li</span><span style="color: #8b0000;">'</span><span style="color: Gray;">&nbsp; &nbsp; =&gt; </span><span style="color: Blue;">__</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">Pages</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">,&nbsp; &nbsp;页面列表的标题为“</span><span style="color: Blue;">Pages</span><span style="color: Gray;">（页面）” <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">echo</span><span style="color: #8b0000;">'</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; =&gt; </span><span style="color: Maroon;">1</span><span style="color: Gray;">,&nbsp; &nbsp; &nbsp;回显（显示）结果 <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">authors</span><span style="color: #8b0000;">'</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp;=&gt; </span><span style="color: #8b0000;">''</span><span style="color: Gray;">,&nbsp; &nbsp; &nbsp; 不局限于特定作者 <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">sort_column</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> =&gt; </span><span style="color: #8b0000;">'</span><span style="color: Red;">menu_order, post_title</span><span style="color: #8b0000;">'</span><span style="color: Gray;">,&nbsp; 先按页面顺序再按页面标题排序 <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">link_before</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> =&gt; </span><span style="color: #8b0000;">''</span><span style="color: Gray;">,&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">link_after</span><span style="color: #8b0000;">'</span><span style="color: Gray;">&nbsp; =&gt; </span><span style="color: #8b0000;">''</span><span style="color: Gray;">,&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">exclude_tree</span><span style="color: #8b0000;">'</span><span style="color: Gray;">=&gt; </span><span style="color: #8b0000;">''</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">;不删除父级/子级树</span></div></div>
<p><strong> 隐藏或改变列表标题</strong></p>
<p>给title_li参数传递一个零值或空值，可以隐藏由wp_list_pages生成的页面列表默认标题。下面的代码可显示所述效果：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; <br /></span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">title_li=</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; <br />&lt;/ul&gt;</span></div></div>
<p>在下面这个例子中，列表中只包含编号为9，5，23的页面，标题内容被改为“Poetry”，格式为< h2 >:</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">include=5,9,23&amp;title_li=&lt;h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> . </span><span style="color: Blue;">__</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">Poetry</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;"> . </span><span style="color: #8b0000;">'</span><span style="color: Red;">&lt;/h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; <br />&lt;/ul&gt;</span></div></div>
<p><strong>将页面按页面顺序排列</strong></p>
<p>下面的例子将页面按管理栏中 Write > Page 定义的页面顺序进行排列。</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">sort_column=menu_order</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; <br />&lt;/ul</span></div></div>
<p>如果希望将列表按页面顺序进行排列并将“Prose”作为列表标题（以h2格式）显示在侧边栏中，可将以下代码添加到sidebar.php文件中：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">sort_column=menu_order&amp;title_li=&lt;h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> . </span><span style="color: Blue;">__</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">Prose</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;"> . </span><span style="color: #8b0000;">'</span><span style="color: Red;">&lt;/h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; <br />&lt;/ul&gt;</span></div></div>
<p>使用下列代码段，可显示出无标题并以页面顺序排列的页面：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">sort_column=menu_order&amp;title_li=</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; <br />&lt;/ul&gt;</span></div></div>
<p><strong>将页面按发表日期排列</strong></p>
<p>下列代码显示出的页面将按发表日期进行排列，在页面列表项旁显示日期。</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">sort_column=post_date&amp;show_date=created</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; <br />&lt;/ul&gt;</span></div></div>
<p><strong>从列表中排除页面</strong></p>
<p>用exclude参数可隐藏列表中由wp_list_pages生成的若干页面。</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">exclude=17,38</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; <br />&lt;/ul&gt;</span></div></div>
<p><strong>显示列表中特定页面</strong></p>
<p>若仅希望在列表中显示特定页面，例如编号为35，7，26和13的页面，可使用include参数。</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">include=7,13,26,35&amp;title_li=&lt;h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> . </span><span style="color: Blue;">__</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">Pages</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;"> . </span><span style="color: #8b0000;">'</span><span style="color: Red;">&lt;/h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; &nbsp; <br />&lt;/ul&gt;</span></div></div>
<p><strong> 显示子页面</strong></p>
<p>注意：即使没有子页面，HTML标签也是必要的（ul或ol）。用css设置列表时需要将这一点谨记在心。</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">title_li=&amp;child_of=</span><span style="color: #8b0000;">'</span><span style="color: Gray;">.</span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">ID</span><span style="color: Gray;">.</span><span style="color: #8b0000;">'</span><span style="color: Red;">&amp;show_date=modified&nbsp; &nbsp; <br />&nbsp; &amp;date_format=$date_format</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">&nbsp; &nbsp; <br />&lt;/ul&gt;</span></div></div>
<p>以下代码仅在目前页面有子页面（将目前页面设为父级页面的页面）的情况下生成列表：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp; &nbsp; <br />&nbsp; </span><span style="color: #00008b;">$children</span><span style="color: Gray;"> = </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">title_li=&amp;child_of=</span><span style="color: #8b0000;">'</span><span style="color: Gray;">.</span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">ID</span><span style="color: Gray;">.</span><span style="color: #8b0000;">'</span><span style="color: Red;">&amp;echo=0</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$children</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span><span style="color: Black;">&nbsp; &nbsp; <br />&nbsp; &lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: #00008b;">$children</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Black;">&nbsp; &nbsp; <br />&nbsp; &lt;/ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Olive;">}</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></div></div>
<p><strong>在子页面上列出子页面</strong></p>
<p>上述示例都是在父级页面上展示子页面，却没有说明如何在子页面上进行展示。可用下列代码在某一父页面或其中一个子页面上展示子页面。</p>
<p>将本代码放在侧边栏的widget区块后，代码将无法运行。</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Green;">if</span><span style="color: Olive;">(</span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">post_parent</span><span style="color: Olive;">)</span><span style="color: Gray;">&nbsp; &nbsp; <br />&nbsp; </span><span style="color: #00008b;">$children</span><span style="color: Gray;"> = </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">title_li=&amp;child_of=</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">.</span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">post_parent</span><span style="color: Gray;">.</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">&amp;echo=0</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Green;">else</span><span style="color: Gray;">&nbsp; &nbsp; <br />&nbsp; </span><span style="color: #00008b;">$children</span><span style="color: Gray;"> = </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">title_li=&amp;child_of=</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">.</span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">ID</span><span style="color: Gray;">.</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">&amp;echo=0</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$children</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span><span style="color: Black;">&nbsp; &nbsp; <br />&nbsp; &lt;ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: #00008b;">$children</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Black;">&nbsp; &nbsp; <br />&nbsp; &lt;/ul&gt;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Olive;">}</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></div></div>
<p>本代码也可用在sidebar.php中，仅显示顶级页面。但浏览到包含子页面的页面时，仅显示其子页面。</p>
<p>浏览主页时在侧边栏显示所有顶级页面<br />
浏览没有子页面的顶级页面时，显示所有顶级页面<br />
浏览有子页面的顶级页面时，显示所有子页面及下一级页面<br />
浏览子页面时，显示其父级页面下的所有子页面和下一级页面 </p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp; <br /></span><span style="color: #00008b;">$output</span><span style="color: Gray;"> = </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">echo=0&amp;depth=1&amp;title_li=&lt;h2&gt;Top Level Pages &lt;/h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">;&nbsp; <br /></span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">is_page</span><span style="color: Olive;">(</span><span style="color: Gray;"> </span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;">&nbsp; &nbsp; <br />&nbsp; </span><span style="color: #00008b;">$page</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">ID</span><span style="color: Gray;">;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">post_parent</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #00008b;">$page</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">post_parent</span><span style="color: Gray;">;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp; &nbsp; <br />&nbsp; </span><span style="color: #00008b;">$children</span><span style="color: Gray;">=</span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: Gray;"> </span><span style="color: #8b0000;">'</span><span style="color: Red;">echo=0&amp;child_of=</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> . </span><span style="color: #00008b;">$page</span><span style="color: Gray;"> . </span><span style="color: #8b0000;">'</span><span style="color: Red;">&amp;title_li=</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$children</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;</span><span style="color: #00008b;">$output</span><span style="color: Gray;"> = </span><span style="color: Blue;">wp_list_pages</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">echo=0&amp;child_of=</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> . </span><span style="color: #00008b;">$page</span><span style="color: Gray;"> . </span><span style="color: #8b0000;">'</span><span style="color: Red;">&amp;title_li=&lt;h2&gt;Child Pages&lt;/h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;&nbsp; &nbsp; <br />&nbsp; </span><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp; <br /></span><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp; <br /></span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: #00008b;">$output</span><span style="color: Gray;">;&nbsp; <br /></span><span style="color: Blue;">?&gt;</span></div></div>
<p><strong>页面选项标记与格式</strong></p>
<p>默认情况下，wp_list_pages( )生成一个嵌套的、由管理栏 Write > Page 生成的无序WordPress页面列表。将title_li参数设为任意空字符后可除去最外围选项（li.pagenav）和列表（ul）。</p>
<p>所有wp_list_pages( )生成的列表项（li）都被标上page_item类。显示页面时将调用wp_list_pages( )，这时该页面的列表项被赋予附加类current_page_item。</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"><br />&lt;</span><span style="color: Blue;">li</span><span style="color: Gray;"> </span><span style="color: Green;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">pagenav</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&gt;&nbsp; <br /></span><span style="color: Blue;">Pages</span><span style="color: Gray;"> </span><span style="color: Olive;">[</span><span style="color: Blue;">title_li</span><span style="color: Olive;">]</span><span style="color: Gray;">&nbsp; &nbsp; <br />&nbsp; &lt;</span><span style="color: Blue;">ul</span><span style="color: Gray;">&gt;&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;&lt;!-- </span><span style="color: Blue;">Output</span><span style="color: Gray;"> </span><span style="color: Blue;">starts</span><span style="color: Gray;"> </span><span style="color: Blue;">here</span><span style="color: Gray;"> </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: #8b0000;">'</span><span style="color: Red;">title_li</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> </span><span style="color: Blue;">parameter</span><span style="color: Gray;"> </span><span style="color: Blue;">is</span><span style="color: Gray;"> </span><span style="color: Green;">empty</span><span style="color: Gray;"> --&gt;&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;&lt;</span><span style="color: Blue;">li</span><span style="color: Gray;"> </span><span style="color: Green;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">page-item-2 page_item current_page_ancestor current_page_parent</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp;</span><span style="color: Olive;">[</span><span style="color: Blue;">parent</span><span style="color: Gray;"> </span><span style="color: Blue;">of</span><span style="color: Gray;"> </span><span style="color: Blue;">the</span><span style="color: Gray;"> </span><span style="color: Blue;">current</span><span style="color: Gray;"> </span><span style="color: Blue;">Page</span><span style="color: Olive;">]</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp;&lt;</span><span style="color: Blue;">ul</span><span style="color: Gray;">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;</span><span style="color: Blue;">li</span><span style="color: Gray;"> </span><span style="color: Green;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">page-item-21 page_item current_page_item</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: Olive;">[</span><span style="color: Blue;">the</span><span style="color: Gray;"> </span><span style="color: Blue;">current</span><span style="color: Gray;"> </span><span style="color: Blue;">Page</span><span style="color: Olive;">]</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/</span><span style="color: Blue;">li</span><span style="color: Gray;">&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp;&lt;/</span><span style="color: Blue;">ul</span><span style="color: Gray;">&gt;&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;&lt;/</span><span style="color: Blue;">li</span><span style="color: Gray;">&gt;&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;&lt;</span><span style="color: Blue;">li</span><span style="color: Gray;"> </span><span style="color: Green;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">page-item-3 page_item</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp; &nbsp;</span><span style="color: Olive;">[</span><span style="color: Blue;">another</span><span style="color: Gray;"> </span><span style="color: Blue;">Page</span><span style="color: Olive;">]</span><span style="color: Gray;">&nbsp; &nbsp; &nbsp; <br />&nbsp;&nbsp; &nbsp;&lt;/</span><span style="color: Blue;">li</span><span style="color: Gray;">&gt;&nbsp; &nbsp; <br />&nbsp; &lt;/</span><span style="color: Blue;">ul</span><span style="color: Gray;">&gt;&nbsp; <br />&lt;/</span><span style="color: Blue;">li</span><span style="color: Gray;">&gt;</span></div></div>
<p>可以用CSS选择器为这些列表项进行样式设计：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">.pagenav</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> … </span><span style="color: Olive;">}</span><span style="color: Gray;"> /</span><span style="color: Blue;">*</span><span style="color: Gray;"> </span><span style="color: Blue;">the</span><span style="color: Gray;"> </span><span style="color: Blue;">outermost</span><span style="color: Gray;"> </span><span style="color: Blue;">list</span><span style="color: Gray;"> </span><span style="color: Blue;">item</span><span style="color: Gray;">; </span><span style="color: Blue;">contains</span><span style="color: Gray;"> </span><span style="color: Blue;">whole</span><span style="color: Gray;"> </span><span style="color: Blue;">list</span><span style="color: Gray;"> </span><span style="color: Blue;">*</span><span style="color: Gray;">/&nbsp; <br /></span><span style="color: Blue;">.page-item-2</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> … </span><span style="color: Olive;">}</span><span style="color: Gray;"> /</span><span style="color: Blue;">*</span><span style="color: Gray;"> </span><span style="color: Blue;">item</span><span style="color: Gray;"> </span><span style="color: Blue;">for</span><span style="color: Gray;"> </span><span style="color: Blue;">Page</span><span style="color: Gray;"> </span><span style="color: Blue;">ID</span><span style="color: Gray;"> 2 </span><span style="color: Blue;">*</span><span style="color: Gray;">/&nbsp; <br /></span><span style="color: Blue;">.page</span><span style="color: Gray;">_</span><span style="color: Blue;">item</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> … </span><span style="color: Olive;">}</span><span style="color: Gray;"> /</span><span style="color: Blue;">*</span><span style="color: Gray;"> </span><span style="color: Blue;">any</span><span style="color: Gray;"> </span><span style="color: Blue;">Page</span><span style="color: Gray;"> </span><span style="color: Blue;">item</span><span style="color: Gray;"> </span><span style="color: Blue;">*</span><span style="color: Gray;">/&nbsp; <br /></span><span style="color: Blue;">.current</span><span style="color: Gray;">_</span><span style="color: Blue;">page</span><span style="color: Gray;">_</span><span style="color: Blue;">item</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> … </span><span style="color: Olive;">}</span><span style="color: Gray;"> /</span><span style="color: Blue;">*</span><span style="color: Gray;"> </span><span style="color: Blue;">the</span><span style="color: Gray;"> </span><span style="color: Blue;">current</span><span style="color: Gray;"> </span><span style="color: Blue;">Page</span><span style="color: Gray;"> </span><span style="color: Blue;">*</span><span style="color: Gray;">/&nbsp; <br /></span><span style="color: Blue;">.current</span><span style="color: Gray;">_</span><span style="color: Blue;">page</span><span style="color: Gray;">_</span><span style="color: Blue;">parent</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> … </span><span style="color: Olive;">}</span><span style="color: Gray;"> /</span><span style="color: Blue;">*</span><span style="color: Gray;"> </span><span style="color: Blue;">parent</span><span style="color: Gray;"> </span><span style="color: Blue;">of</span><span style="color: Gray;"> </span><span style="color: Blue;">the</span><span style="color: Gray;"> </span><span style="color: Blue;">current</span><span style="color: Gray;"> </span><span style="color: Blue;">Page</span><span style="color: Gray;"> </span><span style="color: Blue;">*</span><span style="color: Gray;">/&nbsp; <br /></span><span style="color: Blue;">.current</span><span style="color: Gray;">_</span><span style="color: Blue;">page</span><span style="color: Gray;">_</span><span style="color: Blue;">ancestor</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> … </span><span style="color: Olive;">}</span><span style="color: Gray;"> /</span><span style="color: Blue;">*</span><span style="color: Gray;"> </span><span style="color: Blue;">any</span><span style="color: Gray;"> </span><span style="color: Blue;">ancestor</span><span style="color: Gray;"> </span><span style="color: Blue;">of</span><span style="color: Gray;"> </span><span style="color: Blue;">the</span><span style="color: Gray;"> </span><span style="color: Blue;">current</span><span style="color: Gray;"> </span><span style="color: Blue;">Page</span><span style="color: Gray;"> </span><span style="color: Blue;">*</span><span style="color: Gray;">/&nbsp; 参数<br /></span><span style="color: Blue;">sort</span><span style="color: Gray;">_</span><span style="color: Blue;">column</span><span style="color: Gray;"> (字符)</span></div></div>
<p>按不同方式对页面列表进行排序。默认设置成按页面标题的字母顺序排序。</p>
<ul>
<li>&#8216;post_title&#8217; —— 按页面标题的字母顺序排序——默认 </li>
<li>&#8216;menu_order&#8217; —— 按页面顺序（Page Order）进行排序。注意页面顺序和页面编号的区别。页面编号是由WordPress为每篇文章或页面设定的独有的数字，而页面顺序则由用户在管理栏的Write>Pages中设置。</li>
<li>&#8216;post_date&#8217; —— 按页面创建日期排序。 </li>
<li>&#8216;post_modified&#8217; —— 按最后修改时间进行排序。 </li>
<li>&#8216;ID&#8217; —— 按页面序列编号排序。 </li>
<li>&#8216;post_author&#8217; —— 按页面创建者的序列编号排序。 </li>
<li>&#8216;post_name&#8217; —— 按页面缩略名的字母顺序排序。</li>
</ul>
<p>注意：sort_column参数可按WordPress数据库 wp_post table中任意字段的描述符来对页面列表进行排序。下面给出一些实用示例。</p>
<p><strong>sort_order (字符)</strong></p>
<p>更改页面列表的排列顺序（升序或降序）。默认为升序。可能的值为：</p>
<ul>
<li>&#8216;asc&#8217; ——按从低到高顺序排列（默认） </li>
<li>&#8216;desc&#8217; —— 按从高到低顺序排列 </li>
</ul>
<p><strong>exclude (字符)</strong></p>
<p>定义一列页面编号并用逗号隔开，将其从已有列表中删除（例如：&#8217;exclude=3，7，1&#8242;）。无默认值。</p>
<p><strong>exclude_tree (整数)</strong></p>
<p>与&#8217;child_of&#8217;相反，&#8217;exclude_tree&#8217;从结果中移除已知编号的所有子页面。也可用于隐藏已知页面的所有子页面。该参数还可联合&#8217;child_of&#8217; 的值以隐藏孙页面。在2.7版本中该参数可用。</p>
<p><strong>include (字符)</strong></p>
<p>仅包含get_pages生成的特定页面列表。include参数与exclude同样用逗号将页面编号隔开。无默认值。</p>
<p><strong>depth(整数)</strong></p>
<p>该参数决定wp_list_pages生成的列表中包含的页面层次级数。默认值为0（显示子页面内的所有页面）。</p>
<ul>
<li>0 — 以层级方式（缩进）显示所有页面和子页面（默认） </li>
<li>-1 — 以平级方式（不缩进）显示子页面中的页面 </li>
<li>1 — 仅显示最上层页面 </li>
<li>2 — 该值（或更大值）表示需要显示页面内部的层级数 </li>
</ul>
<p><strong>child_of (整数)</strong></p>
<p>仅显示单个页面的子页面；值为默认编号。默认值为0（显示所有页面）。注意child_of参数不仅获取直系子页面，也会从已知编号中获取“孙页面”。默认值为0（显示所有页面）。</p>
<p><strong>show_data(字符)</strong></p>
<p>在每篇页面旁显示创建日期或最新修改日期。默认值为空值（不显示日期）。可用的值包括：</p>
<ul>
<li>&#8216; &#8216; — 不显示日期（默认） </li>
<li>&#8216;modified&#8217; — 显示最新修改日期 </li>
<li>&#8216;xxx&#8217; — 任何非&#8217;modified&#8217;值都将显示页面最初创建的日期（post_date）。参看上文中的示例。</li>
</ul>
<p><strong>date_format(字符)</strong></p>
<p>该参数对show_date参数生成的页面日期格式（”l, F j, Y”）进行设置。默认格式为WordPress选项设定的日期格式。参见日期和时间设置以及php网站上的页面日期格式。</p>
<p><strong>title_li (字符)</strong></p>
<p>设置页面列表标题的内容与样式。默认值为“_（&#8217;页面&#8217;）”，显示结果为“页面”（_(”)用于本地定位）。若传递值为零或为空（”），则不显示标题，列表也不会被ul标签围绕。参见标题示例。</p>
<p><strong>echo (布尔型)</strong></p>
<p>触发显示所生成的链接列表，或将列表按HTML文本格式返回供PHP使用。默认值为1（显示生成的列表项）。可能的值包括：</p>
<ul>
<li>1 (true) — 默认 </li>
<li>0（false） </li>
</ul>
<p><strong>hierarchical（布尔型）</strong><br />
在上级页面列表下以缩进方式显示下级页面。默认值为true（在父级列表项下显示其子页面）。可能的值有：</p>
<ul>
<li>1（true）——默认 </li>
<li>0（false） </li>
</ul>
<p><strong>meta_key（字符）</strong><br />
仅包含含有该自定义字段关键字的页面（与meta_value字段联合使用）。</p>
<p><strong>meta_value（字符）</strong><br />
仅包含含有该自定义字段值的页面（与meta_key字段联合使用）。</p>
<p><strong>link_before（字符）</strong></p>
<p>设置标签< a>中文字链接前的文本或html代码。（适用于2.7.0或更新版本）</p>
<p><strong>link_after（字符）</strong><br />
设置标签< a>中文字链接后的文本或html代码。（适用于2.7.0或更新版本）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="解决wordpress分页问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress分类列表函数:wp_list_categories" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress分类列表函数:wp_list_categories</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：perfct 1.0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-themes-perfct.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/22/33021700.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：perfct 1.0</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="一个实用的wordpress导航" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题之Maxthon 2.0.2[08-08-11]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpressthememaxthon202.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6198872.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题之Maxthon 2.0.2[08-08-11]</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>2011-06-07 -- <a href="http://leotheme.cn/wordpress/wordpress-query-post-paged.html" title="解决wordpress分页问题">解决wordpress分页问题</a> (0)<br /><small>这是为解决使用query_post()函数调用某一类文章后引起的分页问题的办法。

query_post()非常有用，可以输出wordpress主循环以外的自定义文章，但是缺点在于覆盖了post变...</small></li><li>2009-06-17 -- <a href="http://leotheme.cn/wordpress/5gebuchangyongwordpress-function.html" title="5个不常用的Wordpress函数">5个不常用的Wordpress函数</a> (4)<br /><small>原文：5 Useful WordPress Functions You Didn’t Know Existed
翻译：Epile

在Wordpress的 source code 里有大量实用函...</small></li><li>2008-10-27 -- <a href="http://leotheme.cn/wordpress/wordpresscyfunction.html" title="WordPress模板常用调用函数">WordPress模板常用调用函数</a> (2)<br /><small>虽然都是些基本的东西,但今天想要用的时候却记不了怎么多.没办法,只好百度一下.SO...
在这做下笔记,方便以后查询.
WordPress基本模板文件

一套完整的WordPress模板应至少...</small></li><li>2011-09-01 -- <a href="http://leotheme.cn/wordpress/wordpress-themes-perfct.html" title="WordPress主题：perfct 1.0">WordPress主题：perfct 1.0</a> (88)<br /><small>已经很久很久没写日志了。更不知道有多久没有发布新主题了！好像已经失去了那种曾经的兴趣和动力，很多时候想写，却又找不到话题。有些技术上的文章想分享。但又懒得编缉。要分析，上代码，做实例。最终只是想想而已...</small></li><li>2011-06-07 -- <a href="http://leotheme.cn/wordpress/%e4%b8%80%e4%b8%aa%e5%ae%9e%e7%94%a8%e7%9a%84wordpress%e5%af%bc%e8%88%aa.html" title="一个实用的wordpress导航">一个实用的wordpress导航</a> (0)<br /><small>在Wordpress模板函数库中的“链接函数”（在wp-includesLink-template.php中）有2个函数可以得到前、后文章链接：

    previous_post_link()...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://leotheme.cn/wordpress/wpfunction/wp_list_pages.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>WordPress日期和时间函数：the_time()</title>
		<link>http://leotheme.cn/wordpress/wpfunction/wordpress-function-time.html</link>
		<comments>http://leotheme.cn/wordpress/wpfunction/wordpress-function-time.html#comments</comments>
		<pubDate>Fri, 03 Jul 2009 09:48:09 +0000</pubDate>
		<dc:creator>Await</dc:creator>
				<category><![CDATA[WP函数摘录]]></category>
		<category><![CDATA[WP相关]]></category>
		<category><![CDATA[参数]]></category>
		<category><![CDATA[时间]]></category>

		<guid isPermaLink="false">http://leotheme.cn/?p=673</guid>
		<description><![CDATA[在wordpress主题中，有的时候我们会涉及到wordpress时间的格式，每次都去找很麻烦，查了一下WordPress的时间函数，以及调用的时候的时间参数，所谓时间参数，是WordPress应用时间函数时所调用的参数，基于WordPress的博客平台通常会在文章的标题处调用时间函数来显示文章的发表时间。 文章的时间函数为：&#60;?php the_time() ?&#62; 评论的时间函数为：&#60;?php&#160;comment_date() ?&#62; 评论的日期函数为：&#60;?php&#160;comment_time() ?&#62; WordPress的全部时间参数及显示效果： a代表小写的英语的上下午，如am、pm A代表大写的英语的上下午，如AM、PM d代表英语的日期（小于10仍为两位数写法），如05、12 D代表中文的星期，如五、七 F代表中文的月份（包括“月”这个字），如五月、十二月 g代表英语的小时（小于10为一位数写法），如5、12 G代表英语的小时（小于10仍为两位数写法），如05、12 h代表英语的分钟（小于10为一位数写法），如5、12 H代表英语的分钟（小于10仍为两位数写法），如05、12 j代表英语的日期（小于10为一位数写法），如05、12 l代表中文的星期（包括“星期”这两个字），如星期五、星期七 m代表英语的月份（小于10仍为两位数写法），如05、12 M代表英语的月份（以单词的形式显示），如Jun n代表英语的月份（小于10为一位数写法），如5、12 O代表英语的时区，如+0800 r代表完整的日期时间，如Tue, 06 Jun 2006 18:37:11 +0800 S代表日期的序数后缀，如st、th T代表英语的时区（以单词的形式显示），如CST w代表英语的星期，如5、7 W代表周数，如23 y代表两位数年份，如07、08 Y代表四位数年份，如2007、2008 z代表天数，如156 原来模板的发布时间是英文格式，要改成现在这样的中文格式，在模板的Single.php 和Index.php里面相应的把 &#60;?php the_time(’M jS, Y’) ?&#62; 替换为 &#60;?php the_time(Y年n月d日) ?&#62; 相关文章2011-09-01 -- WordPress主题：perfct 1.0 (88)已经很久很久没写日志了。更不知道有多久没有发布新主题了！好像已经失去了那种曾经的兴趣和动力，很多时候想写，却又找不到话题。有些技术上的文章想分享。但又懒得编缉。要分析，上代码，做实例。最终只是想想而已...2011-06-07 -- 一个实用的wordpress导航 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress评论表单验证" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-comment-form-proof.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196493.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：perfct 1.0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fothes%2Fwordpress-themes-perfct.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/22/33021700.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：perfct 1.0</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题之Maxthon 2.0.2[08-08-11]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpressthememaxthon202.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6198872.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题之Maxthon 2.0.2[08-08-11]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决wordpress分页问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 2.7 框架[原文翻译]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27kuanjia.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.7 框架[原文翻译]</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>在wordpress主题中，有的时候我们会涉及到wordpress时间的格式，每次都去找很麻烦，查了一下WordPress的时间函数，以及调用的时候的时间参数，所谓时间参数，是WordPress应用时间函数时所调用的参数，基于WordPress的博客平台通常会在文章的标题处调用时间函数来显示文章的发表时间。<br />
<span id="more-673"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">文章的时间函数为：</span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">the_time</span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Gray;">评论的时间函数为：</span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">comment_date</span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Gray;">评论的日期函数为：</span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">comment_time</span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></li></ol></div>
<p>WordPress的全部时间参数及显示效果：</p>
<ul>
<li>a代表小写的英语的上下午，如am、pm</li>
<li> A代表大写的英语的上下午，如AM、PM</li>
<li> d代表英语的日期（小于10仍为两位数写法），如05、12</li>
<li> D代表中文的星期，如五、七</li>
<li> F代表中文的月份（包括“月”这个字），如五月、十二月</li>
<li> g代表英语的小时（小于10为一位数写法），如5、12</li>
<li>G代表英语的小时（小于10仍为两位数写法），如05、12</li>
<li> h代表英语的分钟（小于10为一位数写法），如5、12</li>
<li> H代表英语的分钟（小于10仍为两位数写法），如05、12</li>
<li> j代表英语的日期（小于10为一位数写法），如05、12</li>
<li>l代表中文的星期（包括“星期”这两个字），如星期五、星期七</li>
<li> m代表英语的月份（小于10仍为两位数写法），如05、12</li>
<li> M代表英语的月份（以单词的形式显示），如Jun</li>
<li>n代表英语的月份（小于10为一位数写法），如5、12</li>
<li>O代表英语的时区，如+0800</li>
<li>r代表完整的日期时间，如Tue, 06 Jun 2006 18:37:11 +0800</li>
<li> S代表日期的序数后缀，如st、th</li>
<li> T代表英语的时区（以单词的形式显示），如CST</li>
<li>w代表英语的星期，如5、7</li>
<li>W代表周数，如23</li>
<li>y代表两位数年份，如07、08</li>
<li> Y代表四位数年份，如2007、2008</li>
<li> z代表天数，如156</li>
</ul>
<p>原来模板的发布时间是英文格式，要改成现在这样的中文格式，在模板的Single.php 和Index.php里面相应的把
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">the_time</span><span style="color: Olive;">(</span><span style="color: Gray;">’</span><span style="color: Blue;">M</span><span style="color: Gray;"> </span><span style="color: Blue;">jS</span><span style="color: Gray;">, </span><span style="color: Blue;">Y</span><span style="color: Gray;">’</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></div></div>
<p>替换为
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">the_time</span><span style="color: Olive;">(</span><span style="color: Blue;">Y</span><span style="color: Gray;">年</span><span style="color: Blue;">n</span><span style="color: Gray;">月</span><span style="color: Blue;">d</span><span style="color: Gray;">日</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></div></div>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress评论表单验证" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-comment-form-proof.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196493.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：perfct 1.0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fothes%2Fwordpress-themes-perfct.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/22/33021700.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：perfct 1.0</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题之Maxthon 2.0.2[08-08-11]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpressthememaxthon202.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6198872.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题之Maxthon 2.0.2[08-08-11]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决wordpress分页问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 2.7 框架[原文翻译]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27kuanjia.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwordpress-function-time.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.7 框架[原文翻译]</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>2011-09-01 -- <a href="http://leotheme.cn/wordpress/wordpress-themes-perfct.html" title="WordPress主题：perfct 1.0">WordPress主题：perfct 1.0</a> (88)<br /><small>已经很久很久没写日志了。更不知道有多久没有发布新主题了！好像已经失去了那种曾经的兴趣和动力，很多时候想写，却又找不到话题。有些技术上的文章想分享。但又懒得编缉。要分析，上代码，做实例。最终只是想想而已...</small></li><li>2011-06-07 -- <a href="http://leotheme.cn/wordpress/%e4%b8%80%e4%b8%aa%e5%ae%9e%e7%94%a8%e7%9a%84wordpress%e5%af%bc%e8%88%aa.html" title="一个实用的wordpress导航">一个实用的wordpress导航</a> (0)<br /><small>在Wordpress模板函数库中的“链接函数”（在wp-includesLink-template.php中）有2个函数可以得到前、后文章链接：

    previous_post_link()...</small></li><li>2011-06-07 -- <a href="http://leotheme.cn/wordpress/wordpress-query-post-paged.html" title="解决wordpress分页问题">解决wordpress分页问题</a> (0)<br /><small>这是为解决使用query_post()函数调用某一类文章后引起的分页问题的办法。

query_post()非常有用，可以输出wordpress主循环以外的自定义文章，但是缺点在于覆盖了post变...</small></li><li>2009-11-30 -- <a href="http://leotheme.cn/javascript/ajax-load-post-content.html" title="不刷新（AJAX）获取文章的内容">不刷新（AJAX）获取文章的内容</a> (53)<br /><small>相信大家都知道AJAX评论这玩意。AJAX评论带来了很多好处，不用在刷新页面就能发表评论。实时提交，实时显示。很多人都用上了都给自己的BLOG上添加了这样的功能。方法在这就不说了，很多人都作了详细的讲...</small></li><li>2009-07-07 -- <a href="http://leotheme.cn/wordpress/wpfunction/wp_list_pages.html" title="WordPress页面函数：wp_list_pages()">WordPress页面函数：wp_list_pages()</a> (16)<br /><small>模板标签wp_list_pages( )将WordPress页面作为链接显示出来。该模板标签常用于自定义侧边栏或标题，也常用于其他模板中。该模板标签在WordPress 1.5及更新版本中可用。
用...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://leotheme.cn/wordpress/wpfunction/wordpress-function-time.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress分类列表函数:wp_list_categories</title>
		<link>http://leotheme.cn/wordpress/wpfunction/wp_list_categories.html</link>
		<comments>http://leotheme.cn/wordpress/wpfunction/wp_list_categories.html#comments</comments>
		<pubDate>Thu, 02 Jul 2009 01:32:02 +0000</pubDate>
		<dc:creator>Await</dc:creator>
				<category><![CDATA[WP函数摘录]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[WP相关]]></category>
		<category><![CDATA[分类]]></category>

		<guid isPermaLink="false">http://leotheme.cn/?p=684</guid>
		<description><![CDATA[wordpress的分类函数对于主题作者来说可能并不陌生，因为基本上我们一定会用到这个函数；在 WordPress 中 wp_list_categories 是用来显示所有分类的链接列表，它有两种表示方法：list_cats()(deprecated) 和 wp_list_cats()(deprecated)，下面是使用方法： &#60;?php wp_list_categories('参数'); ?&#62; 默认参数设置为： $defaults = array('show_option_all' =&#62; &#34;,&#160; 无链接的分类'orderby' =&#62; 'name',&#160; 按照分类名排序'order'=&#62; 'ASC',&#160; 升序'show_last_update' =&#62; 0,&#160; &#160;不显示分类中日志的最新时间戳'style' =&#62; 'list',&#160; 用列表显示分类'show_count' =&#62; 0, 0, 不显示分类下的日志数'hide_empty' =&#62; 1, Displays only Categories with posts'use_desc_for_title' =&#62; 1,&#160; 显示分类链接中 title 标签的分类描述'child_of' =&#62; 0,&#160; 子分类无限制'feed' =&#62; ”,&#160; 无 feed'feed_image' =&#62; ”,&#160; 无 feed [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress页面函数：wp_list_pages()" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress页面函数：wp_list_pages()</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：perfct 1.0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-themes-perfct.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/22/33021700.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：perfct 1.0</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress评论表单验证" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-comment-form-proof.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196493.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决wordpress分页问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="一个实用的wordpress导航" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>wordpress的分类函数对于主题作者来说可能并不陌生，因为基本上我们一定会用到这个函数；在 WordPress 中 wp_list_categories 是用来显示所有分类的链接列表，它有两种表示方法：list_cats()(deprecated) 和 wp_list_cats()(deprecated)，下面是使用方法：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_categories</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">参数</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></div></div>
<p><span id="more-684"></span></p>
<p><strong>默认参数设置为：</strong></p>
<div class="hl-surround"><div class="hl-main"><span style="color: #00008b;">$defaults</span><span style="color: Gray;"> = </span><span style="color: Green;">array</span><span style="color: Olive;">(</span><span style="color: Gray;"><br /></span><span style="color: #8b0000;">'</span><span style="color: Red;">show_option_all</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> =&gt; </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">,&nbsp; 无链接的分类<br />'orderby' =&gt; 'name',&nbsp; 按照分类名排序<br />'order'=&gt; 'ASC',&nbsp; 升序<br />'show_last_update' =&gt; 0,&nbsp; &nbsp;不显示分类中日志的最新时间戳<br />'style' =&gt; 'list',&nbsp; 用列表显示分类<br />'show_count' =&gt; 0, 0, 不显示分类下的日志数<br />'hide_empty' =&gt; 1, Displays only Categories with posts<br />'use_desc_for_title' =&gt; 1,&nbsp; 显示分类链接中 title 标签的分类描述<br />'child_of' =&gt; 0,&nbsp; 子分类无限制<br />'feed' =&gt; ”,&nbsp; 无 feed<br />'feed_image' =&gt; ”,&nbsp; 无 feed 图片显示<br />'exclude' =&gt; ”,&nbsp; 不在分类列表中显示该分类<br />'hierarchical' =&gt; true,&nbsp; 分层显示父/子分类<br />'title_li' =&gt; __('Categories'),&nbsp; 在列表前作为标题显示分类<br />'echo' =&gt; 1 显示分类<br />);<br />?&gt;</span></div></div>
<p><strong>用法举例：</strong></p>
<p>1、按照字母排序，并只显示 ID 为16、3、9和5的分类：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;<br /></span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_categories</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">orderby=name&amp;include=3,5,9,16</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;"><br />&lt;/ul&gt;</span></div></div>
<p>2、按照字母排序，显示每个分类的日志数，但不显示 ID 为10的分类</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;<br /></span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_categories</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">orderby=name&amp;show_count=1&amp;exclude=10</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;"><br />&lt;/ul&gt;</span></div></div>
<p>3、显示或隐藏列表头，在分类函数 wp_list_categories 中，title_li 这个参数用于设置或者隐藏分类列表的头或者标题。它的默认值是：‘(__(’Categories’)’ ，这也就是为什么我们在不另设置分类列表标题的时候，它会显示“Categories”的原因。如果你在这里不设置任何参数，那么它将什么都不会显示。下面的例子是排除 ID 为4和7并且隐藏列表头的分类列表：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;<br /></span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_categories</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">exclude=4,7&amp;title_li=</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;"><br />&lt;/ul&gt;</span></div></div>
<p>接下来的例子是仅仅只显示 ID为5、9和23，并且列表头显示为“诗歌”的分类列表：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;<br /></span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_categories</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">include=5,9,23&amp;title_li=&lt;h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> . </span><span style="color: Blue;">__</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">诗歌</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;"> . </span><span style="color: #8b0000;">'</span><span style="color: Red;">&lt;/h2&gt;</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;"><br />&lt;/ul&gt;</span></div></div>
<p>4、仅显示某个分类下的子分类，下面的示例代码生成了 ID 为8的父分类下的子分类根据其 ID 进行排序的链接列表（读起来真绕口 -__-|||），它会显示每个分类下的文章数，并且隐藏链接的 title 标签中的分类描述，注意：如果父分类下没有任何文章，那么父分类将不会显示</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;<br /></span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_categories</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">orderby=id&amp;show_count=1&amp;use_desc_for_title=0&amp;child_of=8</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;"><br />&lt;/ul&gt;</span></div></div>
<p>这个函数里设置的参数比较多，这里我稍作说明：我们可以看到不同参数之间使用了“&#038;”这个“与符号”来进行区分连接，orderby=id 按照 ID 排序，show_count=1 显示分类下的文章数，use_desc_for_title=0 隐藏分类描述，child_of=8 指定 ID 为8的子分类。</p>
<p>5、显示带有 RSS Feed 链接的分类列表，下面代码根据分类名对分类列表排序，并显示每个分类下的文章数和 RSS 的 Feed 链接。</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;<br /></span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_categories</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">orderby=name&amp;show_count=1&amp;feed=RSS</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;"><br />&lt;/ul&gt;</span></div></div>
<p>还可以使用 RSS 图标代替 RSS 链接</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;ul&gt;<br /></span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_list_categories</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">orderby=name&amp;show_count=1&amp;feed_image=/images/rss.gif</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;"><br />&lt;/ul&gt;</span></div></div>
<p>6、标记和样式化分类列表，从上面的例子中可以看到，我们将分类列表函数： wp_list_categories() 套用在 ul 和 li 标签里，除此外我们还可以对其进行其它的样式化，个人认为这些工作直接在 CSS 里设置即可，原文档中的方法实际作用并不是很大，这里我就不多做介绍，有兴趣的朋友可以<a href="http://codex.wordpress.org/Template_Tags/wp_list_categories#Markup_and_Styling_of_Category_Lists"> 参考这里</a></p>
<p>介绍这个函数中所用到的各种参数设置。</p>
<p>orderby<br />
字符串型参数，分类的排序方式： </p>
<p>orderby=ID （按照分类默认的 ID 排序）<br />
orderby=name （按照分类名排序，默认方式）<br />
orderby=count （按照分类下的文章数排序）<br />
order<br />
字符串型，分类按照升降序排序： </p>
<p>order=ASC （默认的升序排列）<br />
order=DESC （降序排列）<br />
show_last_updated<br />
布尔型，用于是否显示最近更新的时间戳： </p>
<p>show_last_updated=1 （显示）<br />
show_last_updated=0 （默认，不显示）<br />
style<br />
字符串型，控制分类的输出方式： </p>
<p>style=list （按照列表的样式输出）<br />
style=none （无样式输出）<br />
show_count<br />
布尔型，是否显示每个分类下的文章数： </p>
<p>show_count=0 （默认不显示）<br />
show_count=1 （显示）<br />
hide_empty<br />
布尔型，是否不显示没有文章的分类： </p>
<p>hide_empty=1 （默认，是的，不显示）<br />
hide_empty=0 （显示）<br />
use_desc_for_title<br />
布尔型，是否将分类的描述插入其链接的 title 标签中： </p>
<p>use_desc_for_title=1 （默认，插入描述）<br />
use_desc_for_title=0 （不插入）<br />
child_of<br />
整型，显示指定父分类 ID 下的子分类，无默认值<br />
feed<br />
字符串型，显示每个分类的 RSS 链接，并可以设置链接的文字，默认不显示<br />
feed_image<br />
字符串型，为 RSS 设置一个链接的图标，默认不显示<br />
exclude<br />
字符串型，根据分类的 ID，按照升序将指定分类从分类列表中排除<br />
include<br />
字符串型，根据分类的 ID，按照升序，将指定分类显示出来<br />
hierarchical<br />
布尔型，是否分层缩进显示子分类 </p>
<p>hierarchical=1 （默认显示）<br />
hierarchical=0 （不显示）<br />
hierarchical<br />
字符串型，设置分类的标题名和外部列表项目的样式，默认显示“_Categories”，如果没有设置这个值则不显示<br />
number<br />
整型，设置显示分类的数量，默认没有限制。<br />
echo（含糊不清…）<br />
布尔型，用于显示结果或保持为一个变量，默认显示原有分类。 </p>
<p>echo=1 （默认显示）<br />
echo=0 （不显示）<br />
depth（用处不大）<br />
整型，用于控制最多显示多少层的子分类。 </p>
<p>depth=0 （默认按照分层缩进的方式显示全部分类和子分类）<br />
depth=-1 （不按照缩进的方式显示全部分类）<br />
depth=1 （只显示一层子分类）<br />
depth=n （显示 n 层子分类） </p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress页面函数：wp_list_pages()" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_pages.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress页面函数：wp_list_pages()</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：perfct 1.0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-themes-perfct.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/22/33021700.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：perfct 1.0</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress评论表单验证" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-comment-form-proof.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196493.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="解决wordpress分页问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="一个实用的wordpress导航" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2F%25E4%25B8%2580%25E4%25B8%25AA%25E5%25AE%259E%25E7%2594%25A8%25E7%259A%2584wordpress%25E5%25AF%25BC%25E8%2588%25AA.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwpfunction%2Fwp_list_categories.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>2011-09-01 -- <a href="http://leotheme.cn/wordpress/wordpress-themes-perfct.html" title="WordPress主题：perfct 1.0">WordPress主题：perfct 1.0</a> (88)<br /><small>已经很久很久没写日志了。更不知道有多久没有发布新主题了！好像已经失去了那种曾经的兴趣和动力，很多时候想写，却又找不到话题。有些技术上的文章想分享。但又懒得编缉。要分析，上代码，做实例。最终只是想想而已...</small></li><li>2011-06-07 -- <a href="http://leotheme.cn/wordpress/%e4%b8%80%e4%b8%aa%e5%ae%9e%e7%94%a8%e7%9a%84wordpress%e5%af%bc%e8%88%aa.html" title="一个实用的wordpress导航">一个实用的wordpress导航</a> (0)<br /><small>在Wordpress模板函数库中的“链接函数”（在wp-includesLink-template.php中）有2个函数可以得到前、后文章链接：

    previous_post_link()...</small></li><li>2011-06-07 -- <a href="http://leotheme.cn/wordpress/wordpress-query-post-paged.html" title="解决wordpress分页问题">解决wordpress分页问题</a> (0)<br /><small>这是为解决使用query_post()函数调用某一类文章后引起的分页问题的办法。

query_post()非常有用，可以输出wordpress主循环以外的自定义文章，但是缺点在于覆盖了post变...</small></li><li>2009-11-30 -- <a href="http://leotheme.cn/javascript/ajax-load-post-content.html" title="不刷新（AJAX）获取文章的内容">不刷新（AJAX）获取文章的内容</a> (53)<br /><small>相信大家都知道AJAX评论这玩意。AJAX评论带来了很多好处，不用在刷新页面就能发表评论。实时提交，实时显示。很多人都用上了都给自己的BLOG上添加了这样的功能。方法在这就不说了，很多人都作了详细的讲...</small></li><li>2009-07-07 -- <a href="http://leotheme.cn/wordpress/wpfunction/wp_list_pages.html" title="WordPress页面函数：wp_list_pages()">WordPress页面函数：wp_list_pages()</a> (16)<br /><small>模板标签wp_list_pages( )将WordPress页面作为链接显示出来。该模板标签常用于自定义侧边栏或标题，也常用于其他模板中。该模板标签在WordPress 1.5及更新版本中可用。
用...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://leotheme.cn/wordpress/wpfunction/wp_list_categories.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

