<?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; 友情链接</title>
	<atom:link href="http://digegg.com/article/tag/links/feed" rel="self" type="application/rss+xml" />
	<link>http://digegg.com</link>
	<description>分享新鲜，传递快乐</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:43:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>如何让WordPress友情链接只在首页显示[解决分页页面仍显示的缺点]</title>
		<link>http://digegg.com/article/535.htm</link>
		<comments>http://digegg.com/article/535.htm#comments</comments>
		<pubDate>Wed, 28 Oct 2009 06:39:03 +0000</pubDate>
		<dc:creator>Yusn</dc:creator>
				<category><![CDATA[使用教程]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[友情链接]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://www.anysns.com/?p=535</guid>
		<description><![CDATA[前几天想让博客的友情链接只在首页侧栏显示，在Wordpress论坛上找了一个方法发现不是很完美，在分页页面仍然还可以显示友情链接，比如http://anysns.com/page/2，按照Wordpress官方给出的文档上所讲“分页页面(如：**.com/page/2)”也属于home； 在此基础上做了小小的改进，增加了判断是否是分页页面的一个语句“is_paged”，&#8221;if (is_home()&#38;&#38;!is_paged())&#8221;的作用是判断是home但不是paged，我这里做的是让首页显示友情链接其它页面显示广告，代码如下：  &#60;?php if (is_home()&#38;&#38;!is_paged()) { ?&#62; &#60;div&#62; &#60;h3&#62;友情链接&#60;/h3&#62; &#60;ul&#62; &#60;?php $posts = wp_list_bookmarks(&#8220;title_li=&#38;categorize=0&#8243;); ?&#62; &#60;/ul&#62; &#60;/div&#62; &#60;?php } ?&#62; 效果请见本博客侧栏，不紧紧是友情链接其他也可以，比如首页显示“最新文章”其他页显示“随进文章”、“热门文章”、“评论最多”等]]></description>
		<wfw:commentRss>http://digegg.com/article/535.htm/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
