<?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>笨猫&#039;s Blog &#187; 函数</title>
	<atom:link href="http://www.benmao.com/archives/tag/%e5%87%bd%e6%95%b0/feed" rel="self" type="application/rss+xml" />
	<link>http://www.benmao.com</link>
	<description>关注互联网，生活，音乐，乐此不疲的一只笨猫</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:18:11 +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://www.benmao.com/archives/992</link>
		<comments>http://www.benmao.com/archives/992#comments</comments>
		<pubDate>Thu, 28 Jan 2010 02:29:03 +0000</pubDate>
		<dc:creator>笨猫</dc:creator>
				<category><![CDATA[猫玩技术]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[函数]]></category>
		<category><![CDATA[页面]]></category>

		<guid isPermaLink="false">http://www.benmao.com/archives/992</guid>
		<description><![CDATA[&#60;?php wp_list_pages(’depth=1&#38;title_li=’); ?&#62; 这个语句的意思是调用wordpress中的页面，也就你是在后台-撰写的所有页面(page)将会被按顺序显示。 Tips：如果由于自己的页面比较多或者导航栏空间有限，不想列出所有的页面，那么可以通过以下方式实现： 在后台-Manage(管理)-Pages(页面) 中查看页面，可以看到每个页面都有一个ID： 然后把上面的调用语句改为以下： &#60;?php wp_list_pages(’title_li=&#38;depth=1&#38;exclude=6,4′); ?&#62; 这样可以展示除了ID为4 和6的所有page. &#60;?php wp_list_pages(’title_li=&#38;depth=1&#38;include=6,4′); ?&#62; 这样可以实现只展示ID为4和6的page.<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F379&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">wordpress修改之友情链接页面</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F1322&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">WordPress风格各异的图标</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F324&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">汇总：我使用的WordPress插件 [2008.06.30]</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F1307&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">禁用或开启 WordPress 管理员工具栏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F1083&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">WordPress不同页面显示不同侧边栏内容</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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[<blockquote><p>&lt;?php wp_list_pages(’depth=1&amp;title_li=’); ?&gt;</p></blockquote>
<p>这个语句的意思是调用wordpress中的页面，也就你是在后台-撰写的所有页面(page)将会被按顺序显示。</p>
<p>Tips：如果由于自己的页面比较多或者导航栏空间有限，不想列出所有的页面，那么可以通过以下方式实现：</p>
<p>在后台-Manage(管理)-Pages(<a href="http://www.benmao.com/archives/tag/%e9%a1%b5%e9%9d%a2" class="st_tag internal_tag" rel="tag" title="标签 页面 下的日志">页面</a>) 中查看页面，可以看到每个页面都有一个ID：</p>
<p>然后把上面的调用语句改为以下：</p>
<blockquote><p>&lt;?php wp_list_pages(’title_li=&amp;depth=1&amp;exclude=6,4′); ?&gt;</p></blockquote>
<p>这样可以展示除了ID为4 和6的所有page.</p>
<blockquote><p>&lt;?php wp_list_pages(’title_li=&amp;depth=1&amp;include=6,4′); ?&gt;</p></blockquote>
<p>这样可以实现只展示ID为4和6的page.</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F379&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">wordpress修改之友情链接页面</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F1322&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">WordPress风格各异的图标</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F324&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">汇总：我使用的WordPress插件 [2008.06.30]</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F1307&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">禁用或开启 WordPress 管理员工具栏</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.benmao.com%2Farchives%2F1083&from=http%3A%2F%2Fwww.benmao.com%2Farchives%2F992">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 14px !important;">WordPress不同页面显示不同侧边栏内容</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  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>]]></content:encoded>
			<wfw:commentRss>http://www.benmao.com/archives/992/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

