<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WordPress 不同页面显示不一样的侧边栏</title>
	<atom:link href="http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/</link>
	<description>MG12&#039;s Blog - Just Another WordPress Blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:18:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: tenji</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-49637</link>
		<dc:creator>tenji</dc:creator>
		<pubDate>Fri, 14 Oct 2011 17:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-49637</guid>
		<description>非常棒，一直纠结于这个问题，找到了一些思路</description>
		<content:encoded><![CDATA[<p>非常棒，一直纠结于这个问题，找到了一些思路</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 指南者</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-48452</link>
		<dc:creator>指南者</dc:creator>
		<pubDate>Sun, 19 Jun 2011 10:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-48452</guid>
		<description>我想把侧边栏去掉</description>
		<content:encoded><![CDATA[<p>我想把侧边栏去掉</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IT不倒翁</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-33947</link>
		<dc:creator>IT不倒翁</dc:creator>
		<pubDate>Mon, 06 Dec 2010 08:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-33947</guid>
		<description>恩，这些is_home一类的函数很简单，却很实用</description>
		<content:encoded><![CDATA[<p>恩，这些is_home一类的函数很简单，却很实用</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 落叶不黄 &#187; WordPress 不同的页面显示不同的侧边栏</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-30472</link>
		<dc:creator>落叶不黄 &#187; WordPress 不同的页面显示不同的侧边栏</dc:creator>
		<pubDate>Sat, 18 Sep 2010 07:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-30472</guid>
		<description>[...] 本文来自：http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/    分类: WordPress 标签: iNove, WordPress, WordPress主题    美化iNove的Google自定义搜索整合 Google 自定义搜索到 WordPress 中主题iNove—FAQ主题发布: iNove弄个淘宝自己玩让inove右上角出现广告的身影Inove主题修改：段首缩进+突显外部链接     评论 (0) Trackbacks (0) 发表评论 Trackback [...]</description>
		<content:encoded><![CDATA[<p>[...] 本文来自：http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/    分类: WordPress 标签: iNove, WordPress, WordPress主题    美化iNove的Google自定义搜索整合 Google 自定义搜索到 WordPress 中主题iNove—FAQ主题发布: iNove弄个淘宝自己玩让inove右上角出现广告的身影Inove主题修改：段首缩进+突显外部链接     评论 (0) Trackbacks (0) 发表评论 Trackback [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ：無為</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-29261</link>
		<dc:creator>：無為</dc:creator>
		<pubDate>Sun, 08 Aug 2010 16:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-29261</guid>
		<description>老早就看想弄成这样的，可是不懂  :???:</description>
		<content:encoded><![CDATA[<p>老早就看想弄成这样的，可是不懂  <img src='http://www.neoease.com/wp-includes/images/smilies/icon_confused.gif' alt=':???:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wingimg</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-28527</link>
		<dc:creator>wingimg</dc:creator>
		<pubDate>Fri, 09 Jul 2010 05:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-28527</guid>
		<description>多谢,正找这问题呢.</description>
		<content:encoded><![CDATA[<p>多谢,正找这问题呢.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nooidea</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-28416</link>
		<dc:creator>Nooidea</dc:creator>
		<pubDate>Sun, 04 Jul 2010 12:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-28416</guid>
		<description>正在寻找，希望一会能看得懂代码... 不知道有没有什么插件可以实现的。</description>
		<content:encoded><![CDATA[<p>正在寻找，希望一会能看得懂代码... 不知道有没有什么插件可以实现的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wookaooo</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-28089</link>
		<dc:creator>wookaooo</dc:creator>
		<pubDate>Thu, 24 Jun 2010 18:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-28089</guid>
		<description>Widget Logic 这个插件可以实现</description>
		<content:encoded><![CDATA[<p>Widget Logic 这个插件可以实现</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 寐罗 &#187; Blog Archive &#187; 使用了一个侧边栏插件Widget Logic</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-27260</link>
		<dc:creator>寐罗 &#187; Blog Archive &#187; 使用了一个侧边栏插件Widget Logic</dc:creator>
		<pubDate>Fri, 28 May 2010 09:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-27260</guid>
		<description>[...] 1、方法来自neosase。  假如现在的 Widget 结构如下: 1 &lt;div&gt; 2 &lt;h3&gt;Widget Title&lt;/h3&gt; 3 &lt;ul&gt; 4 &lt;li&gt;Item 1&lt;/li&gt; 5 &lt;li&gt;Item 2&lt;/li&gt; 6 &lt;li&gt;Item 3&lt;/li&gt; 7 &lt;/ul&gt; 8 &lt;/div&gt; 如果我们要在首页显示 Archives, 单篇文章显示 Categories, 其他页面显示 Meta, 则需要改动代码如下: 1 &lt;?php if (is_home()) : ?&gt; 2 &lt;div&gt; 3 &lt;h3&gt;Archives&lt;/h3&gt; 4 &lt;ul&gt; 5 &lt;?php wp_get_archives(); ?&gt; 6 &lt;/ul&gt; 7 &lt;/div&gt; 8 &lt;?php else if (is_single()) : ?&gt; 9 &lt;div&gt; 10 &lt;h3&gt;Categories&lt;/h3&gt; 11 &lt;ul&gt; 12 &lt;?php wp_list_cats(); ?&gt; 13 &lt;/ul&gt; 14 &lt;/div&gt; 15 &lt;?php else : ?&gt; 16 &lt;div&gt; 17 &lt;h3&gt;Meta&lt;/h3&gt; 18 &lt;ul&gt; 19 &lt;?php wp_register(); ?&gt; 20 &lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;/li&gt; 21 &lt;/ul&gt; 22 &lt;/div&gt; 23 &lt;?php endif; ?&gt; 不知道你是否已经注意到, 其实关键在 is_home() 和 is_single() 方法的调用, 通过 if 语句限制显示条件. 你可以将它们换成其他限制条件, 以达到不页面的不同地方显示不同内容的目的, 而不仅仅是侧边栏. [...]</description>
		<content:encoded><![CDATA[<p>[...] 1、方法来自neosase。  假如现在的 Widget 结构如下: 1 &lt;div&gt; 2 &lt;h3&gt;Widget Title&lt;/h3&gt; 3 &lt;ul&gt; 4 &lt;li&gt;Item 1&lt;/li&gt; 5 &lt;li&gt;Item 2&lt;/li&gt; 6 &lt;li&gt;Item 3&lt;/li&gt; 7 &lt;/ul&gt; 8 &lt;/div&gt; 如果我们要在首页显示 Archives, 单篇文章显示 Categories, 其他页面显示 Meta, 则需要改动代码如下: 1 &lt;?php if (is_home()) : ?&gt; 2 &lt;div&gt; 3 &lt;h3&gt;Archives&lt;/h3&gt; 4 &lt;ul&gt; 5 &lt;?php wp_get_archives(); ?&gt; 6 &lt;/ul&gt; 7 &lt;/div&gt; 8 &lt;?php else if (is_single()) : ?&gt; 9 &lt;div&gt; 10 &lt;h3&gt;Categories&lt;/h3&gt; 11 &lt;ul&gt; 12 &lt;?php wp_list_cats(); ?&gt; 13 &lt;/ul&gt; 14 &lt;/div&gt; 15 &lt;?php else : ?&gt; 16 &lt;div&gt; 17 &lt;h3&gt;Meta&lt;/h3&gt; 18 &lt;ul&gt; 19 &lt;?php wp_register(); ?&gt; 20 &lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;/li&gt; 21 &lt;/ul&gt; 22 &lt;/div&gt; 23 &lt;?php endif; ?&gt; 不知道你是否已经注意到, 其实关键在 is_home() 和 is_single() 方法的调用, 通过 if 语句限制显示条件. 你可以将它们换成其他限制条件, 以达到不页面的不同地方显示不同内容的目的, 而不仅仅是侧边栏. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-27258</link>
		<dc:creator>m</dc:creator>
		<pubDate>Fri, 28 May 2010 09:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-27258</guid>
		<description>受用了！</description>
		<content:encoded><![CDATA[<p>受用了！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 闲云</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-26809</link>
		<dc:creator>闲云</dc:creator>
		<pubDate>Thu, 13 May 2010 08:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-26809</guid>
		<description>不错，我也想弄成不一样的，学习一下。</description>
		<content:encoded><![CDATA[<p>不错，我也想弄成不一样的，学习一下。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: youngz</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-26123</link>
		<dc:creator>youngz</dc:creator>
		<pubDate>Tue, 13 Apr 2010 10:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-26123</guid>
		<description>不错，收藏了，有空试试</description>
		<content:encoded><![CDATA[<p>不错，收藏了，有空试试</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yongd</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-21121</link>
		<dc:creator>Yongd</dc:creator>
		<pubDate>Wed, 02 Dec 2009 10:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-21121</guid>
		<description>很不错 学习了！</description>
		<content:encoded><![CDATA[<p>很不错 学习了！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 定义WordPress的侧栏不同页面显示不同内容 _ 风雪居</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-17459</link>
		<dc:creator>定义WordPress的侧栏不同页面显示不同内容 _ 风雪居</dc:creator>
		<pubDate>Wed, 19 Aug 2009 08:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-17459</guid>
		<description>[...] 文章内容参考自：Neoease的博客        分类: 技术殿堂 标签:     随机文章XSS之client-Attack (0)Windows 7 RC 简体中文版 x86/x64 散装文件下载 (0)本人博客投放三处广告 (0)中国需要仙剑——仙剑奇侠传四文化评说（一） (0)龚格尔被逼的007大战黑衣人插曲 (0)     评论 (0) Trackbacks (0) 发表评论 Trackback [...]</description>
		<content:encoded><![CDATA[<p>[...] 文章内容参考自：Neoease的博客        分类: 技术殿堂 标签:     随机文章XSS之client-Attack (0)Windows 7 RC 简体中文版 x86/x64 散装文件下载 (0)本人博客投放三处广告 (0)中国需要仙剑——仙剑奇侠传四文化评说（一） (0)龚格尔被逼的007大战黑衣人插曲 (0)     评论 (0) Trackbacks (0) 发表评论 Trackback [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jjw-host &#187; Wordpress不同页面显示不同的侧栏</title>
		<link>http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/comment-page-2/#comment-15201</link>
		<dc:creator>jjw-host &#187; Wordpress不同页面显示不同的侧栏</dc:creator>
		<pubDate>Thu, 25 Jun 2009 08:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.neoease.com/?p=838#comment-15201</guid>
		<description>[...] 如果你的两个侧栏的内容差不多，比如首页显示友情链接，其它页不显示。MG12提供了一个比较简便的方法：http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 如果你的两个侧栏的内容差不多，比如首页显示友情链接，其它页不显示。MG12提供了一个比较简便的方法：http://www.neoease.com/show-different-widgets-in-wordpress-sidebar/ [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

