<?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; category</title>
	<atom:link href="http://digegg.com/article/tag/category/feed" rel="self" type="application/rss+xml" />
	<link>http://digegg.com</link>
	<description>分享新鲜，传递快乐</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:49:50 +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读取某一分类下的最近日志[Recent Posts]</title>
		<link>http://digegg.com/article/538.htm</link>
		<comments>http://digegg.com/article/538.htm#comments</comments>
		<pubDate>Thu, 29 Oct 2009 08:29:29 +0000</pubDate>
		<dc:creator>Yusn</dc:creator>
				<category><![CDATA[使用教程]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[Recent Posts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.digegg.com/?p=538</guid>
		<description><![CDATA[前一阵子想再弄个博客做音乐mtv的，后来由于money的问题放弃了，决定整合到本博客上来，想在侧栏调取单一分类下的最近日志列表[Recent Posts]，用下面的代码即可实现： &#60;?php query_posts(&#8216;category_name=video&#38;showposts=8&#8242;); ?&#62; &#60;?php while (have_posts()) : the_post(); ?&#62; echo&#8217;&#60;div class=&#8217;**&#8217;&#62;&#8217;; &#60;a href=”&#60;?php the_permalink(); ?&#62;”&#62; &#60;?php the_title(); ?&#62; &#60;/a&#62; echo&#8217;&#60;/div&#62;&#8217;; &#60;?php endwhile; ?&#62; 在上面的代码中我是想在打开“video”分类时，在侧栏调取“video”分类下的最近日志，其中“8”是限制读取的数量是8篇，echo后面的可以随便自定义样式一般的话不加什么样式默认就是li吧。]]></description>
		<wfw:commentRss>http://digegg.com/article/538.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>如何让WordPress不同分类下的日志使用不同的页面模板</title>
		<link>http://digegg.com/article/536.htm</link>
		<comments>http://digegg.com/article/536.htm#comments</comments>
		<pubDate>Wed, 28 Oct 2009 09:36:10 +0000</pubDate>
		<dc:creator>Yusn</dc:creator>
				<category><![CDATA[使用教程]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.digegg.com/article/536.htm</guid>
		<description><![CDATA[WordPress分类多了，难免想给不同的分类下的日志页面使用不同的模板，比如像给图片分类单独制作一个模板，那么该如何做才能让Wordpress不同分类定义不同的模板呢，其实很简单，下面的代码搞定： &#60; ?php $post = $wp_query-&#62;post; if ( in_category(&#8217;9&#8242;) ) { include(TEMPLATEPATH . &#8216;/music.php&#8217;); } else { include(TEMPLATEPATH . &#8216;/single.php&#8217;); } ?&#62; 使用方法： 首先，做好想使用的模板：music.php，放在主题文件夹里； 打开index.php，在之间插入以上代码，把in_category(&#8217;9&#8242;) 中的代码换成你自己的分类的代码即可，thx，神啊给点掌声吧！]]></description>
		<wfw:commentRss>http://digegg.com/article/536.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

