<?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>中文Flex例子 &#187; the_content</title>
	<atom:link href="http://blog.minidx.com/tag/the_content/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>wordpress增加独立友情链接页面DIY</title>
		<link>http://blog.minidx.com/2007/12/09/231.html</link>
		<comments>http://blog.minidx.com/2007/12/09/231.html#comments</comments>
		<pubDate>Sun, 09 Dec 2007 15:31:48 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[WordPress相关]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[get_links_list]]></category>
		<category><![CDATA[pagetemplate]]></category>
		<category><![CDATA[the_content]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[友情链接]]></category>
		<category><![CDATA[模板]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2007/12/09/231.html</guid>
		<description><![CDATA[看到挺多人的博客都给自己的Wordpress增加了一个独立的友情链接页面，google了一下，发现关于如何增加独立友情链接页面出来的结果很多，却都是出自一个源头，转来转去，也不留出处，汗一个……不过因为这个模板是自己瞎捣鼓的，网上的方法实践了一下却不能成功添加，看了一下wordpress的代码才发现必须增加一个pagetemplate的php文件，这里把具体步骤记录一下：








①、在自己的模板下找到pagetemplate.XXXXXXXXX.php的文件，我的模板下有pagetemplate.simpletagging.php，pagetemplate.tagcloud.php，pagetemplate.tagtabs.php，直接复制一个，注意修改头部名字，Template Name:links，格式和下面1，2，3行保持一致！

   1:  &#60;?php
   2:  /*
   3:  Template Name: links
   4:  */
   5:  ?&#62;
   6:  &#60;?php
   7:  get_header();
   8:  ?&#62;
   9:  &#160;
  10:  &#60;?php if (have_posts()) [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2007/12/09/231.html/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Wordpress的首页摘要显示而Feed全文输出的简单解决方案</title>
		<link>http://blog.minidx.com/2007/11/26/170.html</link>
		<comments>http://blog.minidx.com/2007/11/26/170.html#comments</comments>
		<pubDate>Sun, 25 Nov 2007 16:24:30 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[WordPress相关]]></category>
		<category><![CDATA[Feed]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[is_feed]]></category>
		<category><![CDATA[the_content]]></category>
		<category><![CDATA[the_excerpt]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[全文输出]]></category>
		<category><![CDATA[升级]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[摘要显示]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[首页]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2007/11/26/170.html</guid>
		<description><![CDATA[一直都没怎么留意自己的Feed输出，经常在WordPress后台的Option 中看到“Note: If you use the ＜!&#8211;more&#8211;＞ feature, it will cut off posts in RSS feeds.”这句话，不过没在意所以也一直不知道输出的Feed会被Cut Off成什么样子。看了一下习惯订阅Feed的朋友们的讨论，普遍都喜欢Feed全文输出（我个人却喜欢摘要输出，因为感觉那样更加容易比较快的判断那一篇是自己想看的），读者就是上帝，所以当然是迎合大众的口味，设置成为全文输出了。结果却令我大吃一惊，输出的依然是摘要，然后看后台设置的时候才开始注意这句话，Google了一下解决方案，发现普遍的做法都是用插件的方法来解决，或者修改显示全文的代码（the_content()）和显示摘要的代码（the_excerpt()）这两个函数，插件会影响速度，并且会带来副作用，这个我向来不喜欢，后者修改的地方太多了，升级比较麻烦，有没有更加简单一点的方法呢？








大致浏览了一下WordPress代码，发现输出功能是在wp-includes/post-template.php中实现的，其中有这么一段：


if ( preg_match('/&#60;!--more(.*?)?--&#62;/', $content, $matches) ) {
    $content = explode($matches[0], $content, 2);
    if ( !empty($matches[1]) &#38;&#38; !empty($more_link_text) )
        $more_link_text = strip_tags(wp_kses_no_null(trim($matches[1])));
} else {
    [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2007/11/26/170.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 236/483 objects using disk

Served from: blog.minidx.com @ 2012-02-09 17:30:47 -->
