<?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>任鸟飞网页设计博客-关注网页设计、网站开发、图形图像设计、互联网趣味信息及搜素引擎的IT原创博客 &#187; wordpress 主题</title>
	<atom:link href="http://www.renniaofei.com/tag/wordpress-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.renniaofei.com</link>
	<description>任鸟飞网页设计博客-关注网页设计、网站开发、图形图像设计、互联网趣味信息及搜素引擎的IT原创博客</description>
	<lastBuildDate>Fri, 30 Jul 2010 10:51:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>任鸟飞网页设计博客主题微调</title>
		<link>http://www.renniaofei.com/design/renniaofei-blog-theme-adjust/</link>
		<comments>http://www.renniaofei.com/design/renniaofei-blog-theme-adjust/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 07:01:22 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[设计]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 插件]]></category>
		<category><![CDATA[WordPress 教程]]></category>
		<category><![CDATA[中文独立博客]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=1345</guid>
		<description><![CDATA[不知道为什么，一直在调整博客的主题样式，从开通博客到现在，大大小小的调整估计得几十次了，这是不是就是所谓的审美疲劳啊？完蛋了，我发现我喜新厌旧……
前端时间有朋友（快乐的村长）提出页面不够简洁，而且广告偏多，在这里表示特别的感谢，希望以后能有更多的朋友对本博客提出意见，本人将虚心听取。
本次调整的内容如下：
1. 为了使页面简洁一点，本人将右边栏的内容进行了调整。正如你现在看到的样式。采用不同背景来区分广告和内容，然后采用tab 导航的形式来展现热门、读者墙、友情链接和标签。
2. 页面导航部分将 Number Of Pages To Show 由8修改为6，Number Of Larger Page 由3修改为2。原因是在页码较大的时候，导航菜单的宽度容易溢出。注：这里使用的 pagenav 插件。
3. 博客页面最多显示 由8修改为5。原因是由于右边栏高度变小，为了协调左右边栏高度方向的平衡。
4. Google 自定义搜索显示页面的宽度由640px调整为550px， Google 自定义搜索显示页面的宽度默认是640px，显然已经超过本博客左边栏的宽度了，造成部分内容被隐藏。
我觉得善于吸取别人的教训也是一个好习惯，上面就是我在设计博客主题时出现的一些问题，希望你能有所避免。
]]></description>
			<content:encoded><![CDATA[<p>不知道为什么，一直在调整<a href="http://www.renniaofei.com/tag/wordpress-theme/">博客的主题</a>样式，从开通博客到现在，大大小小的调整估计得几十次了，这是不是就是所谓的审美疲劳啊？完蛋了，我发现我喜新厌旧……<span id="more-1345"></span></p>
<p>前端时间有朋友（<a href="http://imheaventree.com/">快乐的村长</a>）提出页面不够简洁，而且广告偏多，在这里表示特别的感谢，希望以后能有更多的朋友对本博客提出意见，本人将虚心听取。</p>
<h4>本次调整的内容如下：</h4>
<p>1. 为了使页面简洁一点，本人将右边栏的内容进行了调整。正如你现在看到的样式。采用不同背景来区分广告和内容，然后采用tab 导航的形式来展现热门、读者墙、<a href="http://www.renniaofei.com/friendlink/">友情链接</a>和标签。</p>
<p>2. 页面导航部分将 <strong>Number Of Pages To Show </strong>由8修改为6，<strong>Number Of Larger Page </strong>由3修改为2。原因是在页码较大的时候，导航菜单的宽度容易溢出。注：这里使用的 pagenav 插件。</p>
<p>3. <strong>博客页面最多显示</strong> 由8修改为5。原因是由于右边栏高度变小，为了协调左右边栏高度方向的平衡。</p>
<p>4. <a href="http://www.renniaofei.com/tag/google/">Google </a>自定义搜索显示页面的宽度由640px调整为550px， Google 自定义搜索显示页面的宽度默认是640px，显然已经超过本博客左边栏的宽度了，造成部分内容被隐藏。</p>
<p>我觉得善于吸取别人的教训也是一个好习惯，上面就是我在设计博客主题时出现的一些问题，希望你能有所避免。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/design/renniaofei-blog-theme-adjust/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Wordpress 3.0 横空出世</title>
		<link>http://www.renniaofei.com/internet/wordpress-3-release/</link>
		<comments>http://www.renniaofei.com/internet/wordpress-3-release/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 15:05:49 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[网络]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 插件]]></category>
		<category><![CDATA[WordPress 教程]]></category>
		<category><![CDATA[中文独立博客]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=1169</guid>
		<description><![CDATA[WordPress 是一个注重美学、易用性和网络标准的个人信息发布平台。而 Wordpress 3.0 经过一段时间的测试后，今天终于正式推出，但目前 Wordpress 中文版还没有出来。

使用 WordPress 可以搭建功能强大的网络信息发布平台，但更多的是应用于个性化的博客。针对博客的应用，WordPress 能让您省却对后台技术的担心，集中精力做好网站的内容。
现在进入Wordpress后台会有升级提示，但因中文版还没出来，国内用户暂时还不能升级到Wordpress 3.0。


英文版Wordpress后台界面：

升级到 Wordpress 3.0 后，主题没有什么影响，升级过程很顺利，但升级之前最好还是备份一下，期待Wordprss 3.0中文版早日出来。
如果你也想拥有一个独立博客，推荐使用Wordpress，其大量的主题和插件，是其他博客平台所不能媲美的。
]]></description>
			<content:encoded><![CDATA[<p><strong>WordPress</strong> 是一个注重美学、易用性和网络标准的个人信息发布平台。而 <a href="http://wordpress.org/download/">Wordpress 3.0</a> 经过一段时间的测试后，今天终于正式推出，但目前 <a href="http://www.renniaofei.com/tag/wordpress-tutorials/">Wordpress</a> 中文版还没有出来。<br />
<span id="more-1169"></span></p>
<p>使用 <strong>WordPress</strong> 可以搭建功能强大的网络信息发布平台，但更多的是应用于<a href="http://www.renniaofei.com">个性化的博客</a>。针对博客的应用，<strong>WordPress</strong> 能让您省却对后台技术的担心，集中精力做好网站的内容。</p>
<p>现在进入Wordpress后台会有升级提示，但因中文版还没出来，国内用户暂时还不能升级到Wordpress 3.0。</p>
<p><img class="aligncenter size-full wp-image-1170" title="wordpress 3.0 发布" src="http://www.renniaofei.com/wp-content/uploads/2010/06/wordpress-3-release-1.jpg" alt="wordpress 3.0 发布" width="600" height="80" /></p>
<p><img class="aligncenter size-full wp-image-1171" title="wordpress 3.0 发布" src="http://www.renniaofei.com/wp-content/uploads/2010/06/wordpress-3-release-2.jpg" alt="wordpress 3.0 发布" width="600" height="200" /></p>
<p>英文版Wordpress后台界面：</p>
<p><img class="aligncenter size-full wp-image-1172" title="wordpress 3.0 发布" src="http://www.renniaofei.com/wp-content/uploads/2010/06/wordpress-3-release-3.jpg" alt="wordpress 3.0 发布" width="600" height="432" /></p>
<p>升级到 Wordpress 3.0 后，<a href="http://www.renniaofei.com/tag/wordpress-theme/">主题</a>没有什么影响，升级过程很顺利，但升级之前最好还是备份一下，期待Wordprss 3.0中文版早日出来。</p>
<p>如果你也想拥有一个<a href="http://www.renniaofei.com/tag/chinese-independent-blog/">独立博客</a>，推荐使用Wordpress，其大量的<a href="http://www.renniaofei.com/tag/wordpress-theme/">主题</a>和<a href="http://www.renniaofei.com/tag/wordpress-plugin/">插件</a>，是其他博客平台所不能媲美的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/internet/wordpress-3-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Wordpress中使用Bitly短网址服务</title>
		<link>http://www.renniaofei.com/code/wordpress-code-url-shortener-with-bitly/</link>
		<comments>http://www.renniaofei.com/code/wordpress-code-url-shortener-with-bitly/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 00:45:47 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>
		<category><![CDATA[微博]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/internet/c060fd8b/</guid>
		<description><![CDATA[由于某些类似于Twitter的微博客服务对于每条贴子或消息有字数限制（多为140字），因此需要通过缩短网址的功能来达到网址缩短的目的。
短网址，又称短址、缩址、网址缩短、缩短网址、URL缩短等，指的是一种互联网上的技术与服务。此服务可以提供一个非常短小的URL以代替原来的可能较长的URL，将长的URL地址缩短。
短网址另外也有方便用户记忆及传送网址的功能，短址可将太长的网址转换成15个字以内的替代网址，也有部分网站提供自定义名称以及密码保护的功能，可以让用户取得更有自己风格的短网址。
前端时间中国解禁了http://bit.ly/短网址服务，这里就介绍一下如何在Wordpress中使用Bitly短网址服务。
1. 申请Bitly的 API key , 申请地址 http://bit.ly/a/your_api_key

2. 在Wordpress主题文件夹的functions.php文件中增加下面的函数
function bitly($url) {
$content = file_get_contents("http://api.bit.ly/v3/shorten?login=YOURLOGIN
&#38;apiKey=YOURAPIKEY
&#38;longUrl=".$url."&#38;format=xml");
$element = new SimpleXmlElement($content);
$bitly = $element-&#62;data-&#62;url;
if($bitly){
echo $bitly;}
else{
echo '0';
}
}
将上面代码中的YOURLOGIN和YOURAPIKEY替换成第一步申请的LOGIN 和 API KEY。
3. 在single.php 中需要显示短网址的地方增加下面的代码
&#60;?php bitly(get_permalink($post-&#62;post_id)); ?&#62;
具体的实例样式可参考本博客底部的转载说明处。
附：反解短网址利器-Untiny
]]></description>
			<content:encoded><![CDATA[<p>由于某些类似于Twitter的微博客服务对于每条贴子或消息有字数限制（多为140字），因此需要通过缩短网址的功能来达到网址缩短的目的。<span id="more-1150"></span></p>
<p>短网址，又称短址、缩址、网址缩短、缩短网址、URL缩短等，指的是一种互联网上的技术与服务。此服务可以提供一个非常短小的URL以代替原来的可能较长的URL，将长的URL地址缩短。</p>
<p>短网址另外也有方便用户记忆及传送网址的功能，短址可将太长的网址转换成15个字以内的替代网址，也有部分网站提供自定义名称以及密码保护的功能，可以让用户取得更有自己风格的短网址。</p>
<p>前端时间中国解禁了<a href="http://bit.ly/">http://bit.ly/</a>短网址服务，这里就介绍一下如何在Wordpress中使用Bitly短网址服务。</p>
<p>1. 申请Bitly的 <a href="http://bit.ly/account/your_api_key">API key</a> , 申请地址 <a href="http://bit.ly/a/your_api_key">http://bit.ly/a/your_api_key</a></p>
<p><img class="aligncenter size-full wp-image-1152" title="wordpress code url shortener with bitly" src="http://www.renniaofei.com/wp-content/uploads/2010/06/wordpress-code-url-shortener-with-bitly-1.jpg" alt="wordpress code url shortener with bitly" width="441" height="325" /></p>
<p>2. 在Wordpress主题文件夹的functions.php文件中增加下面的函数</p>
<pre><code>function bitly($url) {
$content = file_get_contents("http://api.bit.ly/v3/shorten?login=YOURLOGIN
&amp;apiKey=YOURAPIKEY
&amp;longUrl=".$url."&amp;format=xml");
$element = new SimpleXmlElement($content);
$bitly = $element-&gt;data-&gt;url;
if($bitly){
echo $bitly;}
else{
echo '0';
}
}</code></pre>
<p>将上面代码中的YOURLOGIN和YOURAPIKEY替换成第一步申请的LOGIN 和 API KEY。</p>
<p>3. 在single.php 中需要显示短网址的地方增加下面的代码</p>
<pre><code>&lt;?php bitly(get_permalink($post-&gt;post_id)); ?&gt;</code></pre>
<p>具体的实例样式可参考本博客底部的转载说明处。</p>
<p>附：<a href="http://www.renniaofei.com/tools/short-url-untiny/">反解短网址利器-Untiny</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/code/wordpress-code-url-shortener-with-bitly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress固定链接模块——Permalink Template Tags</title>
		<link>http://www.renniaofei.com/code/wordpress-permalink-template-tags/</link>
		<comments>http://www.renniaofei.com/code/wordpress-permalink-template-tags/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 07:01:04 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>
		<category><![CDATA[中文独立博客]]></category>
		<category><![CDATA[标准]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=1065</guid>
		<description><![CDATA[Permalink Template Tags 中函数的作用是在Wordpress主题中生成固定链接,包括Permalink Anchor、 Permalink (PHP) 、Permalink URL 、Permalink(formatted for syndication feeds)。
一. Permalink Anchor——输出带有标识符的文章链接
语法：&#60;?php permalink_anchor(&#8216;type&#8217;); ?&#62;
参数说明：type[id&#124;title]
id——post ID
tile——postname
输出样式&#60;a id=&#8221;&#8230;.
例：&#60;?php permalink_anchor(&#8216;type=title&#8217;); ?&#62;
二. Permalink (PHP)——在php中调用文章permalink
语法：&#60;?php get_permalink(id); ?&#62;
参数说明：
id——文章ID（post ID）,若函数用于循环（loop）内，并且没有指定id时，id默认取值当前文章的post ID。
例：&#60;?php get_permalink(17); ?&#62;
三. Permalink URL——文章固定链接
语法：&#60;?php the_permalink(); ?&#62;
参数说明：无参数，此函数必须用于循环（loop）中，返回正在处理的文章固定链接。
四. Permalink(formatted for syndication feeds)
语法：&#60;?php permalink_single_rss(&#8216;file&#8217;); ?&#62;
参数说明：
file——链接指向的页面，默认为当前页。
例：&#60;?php permalink_single_rss(&#8216;index.php&#8217;); ?&#62;
]]></description>
			<content:encoded><![CDATA[<p>Permalink Template Tags 中函数的作用是在<a href="http://www.renniaofei.com/tag/wordpress-tutorials/">Wordpress主题</a>中生成固定链接,包括Permalink Anchor、 Permalink (PHP) 、Permalink URL 、Permalink(formatted for syndication feeds)。<span id="more-1065"></span></p>
<h4>一. Permalink Anchor——输出带有标识符的文章链接</h4>
<p>语法：&lt;?php permalink_anchor(&#8216;type&#8217;); ?&gt;<br />
参数说明：type[id|title]<br />
id——post ID<br />
tile——postname<br />
输出样式&lt;a id=&#8221;&#8230;.<br />
例：&lt;?php permalink_anchor(&#8216;type=title&#8217;); ?&gt;</p>
<h4>二. Permalink (PHP)——在php中调用文章permalink</h4>
<p>语法：&lt;?php get_permalink(id); ?&gt;<br />
参数说明：<br />
id——文章ID（post ID）,若函数用于循环（loop）内，并且没有指定id时，id默认取值当前文章的post ID。<br />
例：&lt;?php get_permalink(17); ?&gt;</p>
<h4>三. Permalink URL——文章固定链接</h4>
<p>语法：&lt;?php the_permalink(); ?&gt;<br />
参数说明：无参数，此函数必须用于循环（loop）中，返回正在处理的文章固定链接。</p>
<h4>四. Permalink(formatted for syndication feeds)</h4>
<p>语法：&lt;?php permalink_single_rss(&#8216;file&#8217;); ?&gt;<br />
参数说明：<br />
file——链接指向的页面，默认为当前页。<br />
例：&lt;?php permalink_single_rss(&#8216;index.php&#8217;); ?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/code/wordpress-permalink-template-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress主题链接函数—— Link Template Tags</title>
		<link>http://www.renniaofei.com/code/wordpress-link-template-tags/</link>
		<comments>http://www.renniaofei.com/code/wordpress-link-template-tags/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 15:37:38 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>
		<category><![CDATA[中文独立博客]]></category>
		<category><![CDATA[标准]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=1058</guid>
		<description><![CDATA[Link Template Tags 中函数的作用是在Wordpress主题中生成相关链接，包括 Edit Post 链接、 Edit Comment 链接、Page 链接、Yearly Archive URL 、Monthly Archive  URL、Daily Archive URL 、Previous Post Links。
一. Edit Post 链接——在用户登录的情况下，显示文章编辑链接
语法：&#60;?php edit_post_link(&#8216;link&#8217;, &#8217;before&#8217;, &#8217;after&#8217;); ?&#62;
参数说明：

link：链接文本，默认值为 Edit This，例：&#60;?php edit_post_link(&#8216;Edit&#8217;, &#8217;before&#8217;, &#8217;after&#8217;); ?&#62;。
before：链接文本前导符，默认值为空，例：&#60;?php edit_post_link(&#8216;link&#8217;, &#8217;&#38;raquo;&#8217;, &#8217;after&#8217;); ?&#62;
after：链接文本后导符，默认值为空，例：&#60;?php edit_post_link(&#8216;link&#8217;, &#8217;before&#8217;, &#8217;&#38;laquo;&#8217;); ?&#62;

二. Edit Comment 链接——在用户登录的情况下，显示评论编辑链接
语法：&#60;?php edit_comment_link(&#8216;link&#8217;, &#8217;before&#8217;, &#8217;after&#8217;); ?&#62;
参数说明：

link：链接文本，默认值为 Edit This，例：&#60;?php edit_comment_link(&#8216;Edit&#8217;, &#8217;before&#8217;, &#8217;after&#8217;); ?&#62;
before：链接文本前导符，默认值为空，例：&#60;?php edit_comment_link(&#8216;link&#8217;, &#8217;&#38;raquo;&#8217;, &#8217;after&#8217;); ?&#62;
after：链接文本后导符，默认值为空，例：&#60;?php edit_comment_link(&#8216;link&#8217;, &#8217;before&#8217;, &#8217;&#38;laquo;&#8217;); ?&#62;

三. Page Links——页面导航链接
语法：&#60;?php wp_page_links(&#8216;arguments&#8217;); ?&#62;
参数说明：

before：整个页面链接的前导符，默认值为&#60;p&#62;Pages:，例：&#60;?php wp_page_links(&#8216;before=&#60;div&#62;&#8217;); ?&#62;
after：整个页面链接的后导符，默认值为&#60;/p&#62;，例：&#60;?php wp_page_links(&#8216;after=&#60;/div&#62;&#8217;); ?&#62;
next_or_number：是否使用页码，参数范围 [number &#124; next]，例：&#60;?php wp_page_links(&#8216;next_or_number=next&#8217;); ?&#62;
nextpagelink：下一页链接文本，默认值为Next page，例：&#60;?php wp_page_links(&#8216;nextpagelink=Next&#8217;); ?&#62;
previouspagelink：前一页链接文本，默认值为Previous page，例：&#60;?php wp_page_links(&#8216;previouspagelink=Previous&#8217;); ?&#62;
pagelink：链接格式，%代表页码，例：&#60;?php wp_page_links(&#8216;pagelink=[%]&#8216;); ?&#62;
more_file：链接指向的页面，默认只向当前页面，例：&#60;?php wp_page_links(&#8216;more_file=more.php&#8217;); ?&#62;

四. Yearly Archive URL —— 年份归档链接，供PHP调用
语法：&#60;?php get_year_link(&#8216;year&#8217;); ?&#62;
参数说明：默认值为当前年份，例：&#60;?php get_year_link(&#8216;2003&#8242;); ?&#62;
五. Monthly Archive URL——年份/月份归档链接，供PHP调用
语法：&#60;?php get_month_link(&#8216;year&#8217;,'month&#8217;); ?&#62;
参数说明：
year：年份；month：月份
例：&#60;?php get_month_link(&#8216;2003&#8242;,&#8217;month&#8217;); ?&#62; &#60;?php get_month_link(&#8216;2003&#8242;,&#8217;month&#8217;); ?&#62;
六. Daily Archive URL 按天归档文件链接，供PHP [...]]]></description>
			<content:encoded><![CDATA[<p>Link Template Tags 中函数的作用是在<a href="http://www.renniaofei.com/tag/wordpress-tutorials/">Wordpress主题</a>中生成相关链接，包括 Edit Post 链接、 Edit Comment 链接、Page 链接、Yearly Archive URL 、Monthly Archive  URL、Daily Archive URL 、Previous Post Links。<span id="more-1058"></span></p>
<h4>一. Edit Post 链接——在用户登录的情况下，显示文章编辑链接</h4>
<p>语法：&lt;?php edit_post_link(&#8216;link&#8217;, &#8217;before&#8217;, &#8217;after&#8217;); ?&gt;</p>
<p>参数说明：</p>
<ul>
<li>link：链接文本，默认值为 Edit This，例：&lt;?php edit_post_link(&#8216;Edit&#8217;, &#8217;before&#8217;, &#8217;after&#8217;); ?&gt;。</li>
<li>before：链接文本前导符，默认值为空，例：&lt;?php edit_post_link(&#8216;link&#8217;, &#8217;&amp;raquo;&#8217;, &#8217;after&#8217;); ?&gt;</li>
<li>after：链接文本后导符，默认值为空，例：&lt;?php edit_post_link(&#8216;link&#8217;, &#8217;before&#8217;, &#8217;&amp;laquo;&#8217;); ?&gt;</li>
</ul>
<h4>二. Edit Comment 链接——在用户登录的情况下，显示评论编辑链接</h4>
<p>语法：&lt;?php edit_comment_link(&#8216;link&#8217;, &#8217;before&#8217;, &#8217;after&#8217;); ?&gt;</p>
<p>参数说明：</p>
<ul>
<li>link：链接文本，默认值为 Edit This，例：&lt;?php edit_comment_link(&#8216;Edit&#8217;, &#8217;before&#8217;, &#8217;after&#8217;); ?&gt;</li>
<li>before：链接文本前导符，默认值为空，例：&lt;?php edit_comment_link(&#8216;link&#8217;, &#8217;&amp;raquo;&#8217;, &#8217;after&#8217;); ?&gt;</li>
<li>after：链接文本后导符，默认值为空，例：&lt;?php edit_comment_link(&#8216;link&#8217;, &#8217;before&#8217;, &#8217;&amp;laquo;&#8217;); ?&gt;</li>
</ul>
<h4>三. Page Links——页面导航链接</h4>
<p>语法：&lt;?php wp_page_links(&#8216;arguments&#8217;); ?&gt;</p>
<p>参数说明：</p>
<ul>
<li>before：整个页面链接的前导符，默认值为&lt;p&gt;Pages:，例：&lt;?php wp_page_links(&#8216;before=&lt;div&gt;&#8217;); ?&gt;</li>
<li>after：整个页面链接的后导符，默认值为&lt;/p&gt;，例：&lt;?php wp_page_links(&#8216;after=&lt;/div&gt;&#8217;); ?&gt;</li>
<li>next_or_number：是否使用页码，参数范围 [number | next]，例：&lt;?php wp_page_links(&#8216;next_or_number=next&#8217;); ?&gt;</li>
<li>nextpagelink：下一页链接文本，默认值为Next page，例：&lt;?php wp_page_links(&#8216;nextpagelink=Next&#8217;); ?&gt;</li>
<li>previouspagelink：前一页链接文本，默认值为Previous page，例：&lt;?php wp_page_links(&#8216;previouspagelink=Previous&#8217;); ?&gt;</li>
<li>pagelink：链接格式，%代表页码，例：&lt;?php wp_page_links(&#8216;pagelink=[%]&#8216;); ?&gt;</li>
<li>more_file：链接指向的页面，默认只向当前页面，例：&lt;?php wp_page_links(&#8216;more_file=more.php&#8217;); ?&gt;</li>
</ul>
<h4>四. Yearly Archive URL —— 年份归档链接，供PHP调用</h4>
<p>语法：&lt;?php get_year_link(&#8216;year&#8217;); ?&gt;</p>
<p>参数说明：默认值为当前年份，例：&lt;?php get_year_link(&#8216;2003&#8242;); ?&gt;</p>
<h4>五. Monthly Archive URL——年份/月份归档链接，供PHP调用</h4>
<p>语法：&lt;?php get_month_link(&#8216;year&#8217;,'month&#8217;); ?&gt;</p>
<p>参数说明：</p>
<p>year：年份；month：月份</p>
<p>例：&lt;?php get_month_link(&#8216;2003&#8242;,&#8217;month&#8217;); ?&gt; &lt;?php get_month_link(&#8216;2003&#8242;,&#8217;month&#8217;); ?&gt;</p>
<h4>六. Daily Archive URL 按天归档文件链接，供PHP 调用</h4>
<p>语法：&lt;?php get_day_link(&#8216;year&#8217;,'month&#8217;,'day&#8217;); ?&gt;</p>
<p>参数说明：</p>
<p>year：年份；month：月份；day：天</p>
<p>例：&lt;?php get_day_link(&#8216;year&#8217;,'month&#8217;,'23&#8242;); ?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/code/wordpress-link-template-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Wordpress中设置24小时内的文章日期格式为“之前”发表</title>
		<link>http://www.renniaofei.com/code/display-timeago-for-wordpress-if-less-than-24-hours/</link>
		<comments>http://www.renniaofei.com/code/display-timeago-for-wordpress-if-less-than-24-hours/#comments</comments>
		<pubDate>Thu, 20 May 2010 13:45:23 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>
		<category><![CDATA[创意]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=989</guid>
		<description><![CDATA[Wordpress主题中，常见的日期显示格式——“2010年5月20日”，本文将介绍一种新的日期显示格式——“20分钟之前发表”，这种日期显示格式很适合那些内容更新比较频繁的博客。
一. 先看一下 Google实时搜索 中的日期显示格式

上面的日期显示格式效果很酷吧，在wordpress中只需要增加简单的几行代码也可以实现上述的效果。
二. 具体实现方法
只需要在主题文件夹的 functions.php 文件中增加下面的代码即可。
add_filter('the_time', 'timeago');

function timeago() {
global $post;
$date = $post-&#62;post_date;
$time = get_post_time('G', true, $post);
$time_diff = time() - $time;
if ( $time_diff &#62; 0 &#38;&#38; $time_diff &#60; 24*60*60 )
$display = sprintf( __('%s 之前发表'), human_time_diff( $time ) );
else
$display = date(get_option('date_format'), strtotime($date) );
return $display;
}
三. 说明
sprintf( __(&#8216;%s 之前发表&#8217;), human_time_diff( $time ) ) ——日期显示格式，可根据需要自行修改“ %s 之前发表 ”（不包含引号）即可。
]]></description>
			<content:encoded><![CDATA[<p>Wordpress主题中，常见的日期显示格式——“2010年5月20日”，本文将介绍一种新的日期显示格式——“20分钟之前发表”，这种日期显示格式很适合那些内容更新比较频繁的博客。<span id="more-989"></span></p>
<h4>一. 先看一下 Google实时搜索 中的日期显示格式<br />
<img class="aligncenter size-full wp-image-990" title="在wordpress 中设置24小时内文章日期格式为“之前发表”" src="http://www.renniaofei.com/wp-content/uploads/2010/05/display-timeago-for-wordpress-if-less-than-24-hours-preview1.jpg" alt="在wordpress 中设置24小时内文章日期格式为“之前发表”" width="563" height="454" /></h4>
<p>上面的日期显示格式效果很酷吧，在wordpress中只需要增加简单的几行代码也可以实现上述的效果。</p>
<h4>二. 具体实现方法</h4>
<p>只需要在主题文件夹的 functions.php 文件中增加下面的代码即可。</p>
<pre><code>add_filter('the_time', 'timeago');

function timeago() {
global $post;
$date = $post-&gt;post_date;
$time = get_post_time('G', true, $post);
$time_diff = time() - $time;
if ( $time_diff &gt; 0 &amp;&amp; $time_diff &lt; 24*60*60 )
$display = sprintf( __('%s 之前发表'), human_time_diff( $time ) );
else
$display = date(get_option('date_format'), strtotime($date) );
return $display;
}</code></pre>
<h4>三. 说明</h4>
<p>sprintf( __(&#8216;%s 之前发表&#8217;), human_time_diff( $time ) ) ——日期显示格式，可根据需要自行修改“ %s 之前发表 ”（不包含引号）即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/code/display-timeago-for-wordpress-if-less-than-24-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何自定义WordPress登录页面Logo</title>
		<link>http://www.renniaofei.com/code/customize-wordpress-login-logo/</link>
		<comments>http://www.renniaofei.com/code/customize-wordpress-login-logo/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 13:45:16 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=578</guid>
		<description><![CDATA[利用WordPress平台搭建自己的博客时，特别是一些专业博客或公司博客，将登陆页面默认的WordPress Logo修改成自己的Logo，将更能凸显博客的专业性。

示例如下：

步骤：
打开主题文件夹下的functions.php，添加如下代码：
function my_custom_login_logo() {
    echo '&#60;style type="text/css"&#62;
        h1 a { background-image:url('.get_bloginfo('template_directory').'/images/logo.png) !important; }
    &#60;/style&#62;';
}
add_action('login_head', 'my_custom_login_logo');
代码说明：
记得将logo.png文件名修改成你网站logo的名称。
]]></description>
			<content:encoded><![CDATA[<p>利用WordPress平台搭建自己的博客时，特别是一些专业博客或公司博客，将<a href="http://www.renniaofei.com/wp-admin/">登陆页面</a>默认的WordPress Logo修改成自己的Logo，将更能凸显博客的专业性。</p>
<p><span id="more-578"></span><br />
<strong>示例如下：</strong></p>
<p><img class="aligncenter size-full wp-image-579" title="customize wordpress login logo" src="http://www.renniaofei.com/wp-content/uploads/2010/03/customize-wordpress-login-logo.jpg" alt="" width="350" height="700" /></p>
<p><strong>步骤：</strong></p>
<p>打开主题文件夹下的functions.php，添加如下代码：</p>
<pre><code>function my_custom_login_logo() {
    echo '&lt;style type="text/css"&gt;
        h1 a { background-image:url('.get_bloginfo('template_directory').'/images/logo.png) !important; }
    &lt;/style&gt;';
}
add_action('login_head', 'my_custom_login_logo');</code></pre>
<p><strong>代码说明：<br />
</strong>记得将logo.png文件名修改成你网站logo的名称。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/code/customize-wordpress-login-logo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Wordpress博客中显示文章作者头像及相关信息</title>
		<link>http://www.renniaofei.com/code/how-to-add-bio-info-to-your-wordpress-blog-posts/</link>
		<comments>http://www.renniaofei.com/code/how-to-add-bio-info-to-your-wordpress-blog-posts/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 12:29:20 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=567</guid>
		<description><![CDATA[在每篇文章末尾增加作者信息尤其适用于多作者的博客，简单明了，方便读者了解文章作者的个人信息。

本站示例：

HTML
&#60;div id="article-author"&#62;
 &#60;div id="author-image"&#62;
&#60;?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_email(), '80' ); }?&#62;
&#60;/div&#62;
&#60;div id="author-text"&#62;
 &#60;strong&#62;&#60;?php the_author_link(); ?&#62;&#60;/strong&#62;
 &#60;p&#62;&#60;?php the_author_description();?&#62;&#60;/p&#62;
&#60;/div&#62;
&#60;/div&#62;
CSS
#article-author {
margin-top: 15px;
margin-bottom: 15px;
margin-top: 30px;
border: 1px solid #d9d9d9;
clear: both;
background-color: #eee;
padding: 10px;
width: 468px;
height: 120px;
}

#author-image {
height: 80px;
width: 80px;
border: 1px solid #d9d9d9;
background-color: #FFFFFF;
padding: 10px;
margin-bottom: 8px;
float: left;
}

#author-text {
float: left;
margin-left: 10px;
width: 350px;
}
上面显示的用户信息，可以在 Wordpress 控制板/用户 中设置，如下所示：

上面涉及到一些Wordpress函数，这里就不多说了，具体请参考 Wordpress函数讲解-Author Template Tags。
]]></description>
			<content:encoded><![CDATA[<p>在每篇文章末尾增加作者信息尤其适用于多作者的博客，简单明了，方便读者了解文章作者的个人信息。<br />
<span id="more-567"></span><br />
<strong>本站示例：</strong></p>
<p><img class="aligncenter size-full wp-image-569" title="how to add bio info to your wordpress blog posts" src="http://www.renniaofei.com/wp-content/uploads/2010/03/how-to-add-bio-info-to-your-wordpress-blog-posts.jpg" alt="" width="468" height="140" /></p>
<h4>HTML</h4>
<pre><code>&lt;div id="article-author"&gt;
 &lt;div id="author-image"&gt;
&lt;?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_email(), '80' ); }?&gt;
&lt;/div&gt;
&lt;div id="author-text"&gt;
 &lt;strong&gt;&lt;?php the_author_link(); ?&gt;&lt;/strong&gt;
 &lt;p&gt;&lt;?php the_author_description();?&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</code></pre>
<p><strong>CSS</strong></p>
<pre><code>#article-author {
margin-top: 15px;
margin-bottom: 15px;
margin-top: 30px;
border: 1px solid #d9d9d9;
clear: both;
background-color: #eee;
padding: 10px;
width: 468px;
height: 120px;
}

#author-image {
height: 80px;
width: 80px;
border: 1px solid #d9d9d9;
background-color: #FFFFFF;
padding: 10px;
margin-bottom: 8px;
float: left;
}

#author-text {
float: left;
margin-left: 10px;
width: 350px;
}</code></pre>
<p>上面显示的用户信息，可以在 Wordpress <strong>控制板/用户</strong> 中设置，如下所示：</p>
<p><img class="aligncenter size-full wp-image-571" title="how to add bio info to your wordpress blog posts" src="http://www.renniaofei.com/wp-content/uploads/2010/03/how-to-add-bio-info-to-your-wordpress-blog-posts-2.jpg" alt="" width="468" height="260" /></p>
<p>上面涉及到一些Wordpress函数，这里就不多说了，具体请参考 <a href="http://www.renniaofei.com/design/wordpress-function-author-template-tags/">Wordpress函数讲解-Author Template Tags</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/code/how-to-add-bio-info-to-your-wordpress-blog-posts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何在WordPress显示文章摘要</title>
		<link>http://www.renniaofei.com/code/the_excerpt-vs-the_content-wordpress/</link>
		<comments>http://www.renniaofei.com/code/the_excerpt-vs-the_content-wordpress/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 08:36:36 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=501</guid>
		<description><![CDATA[使用the_excerpt() 和 the_content() 显示文章摘要的异同。

目录或归档页面经常需要输出文章的摘要，而不是输出正篇文章，输出摘要的有利于搜索引擎优化，而且也方便读者大体上了解文章内容。
输出文章摘要由两种方法：
1. the_excerpt()
打开wordpress数据库的wp-posts表我们可发现post_excerpt字段，the_excerpt()输出的内容就是此字段存储的信息。
the_excerpt()无参数，不支持内嵌标记，并且输出时会以&#8230;结尾。

在编辑文章时需在摘要部分填上相关摘要信息，如下图所示。

2. the_content()
如果文章里面使用&#60;!--more--&#62;，则会输出&#60;!--more--&#62;以前的内容，否则会输出正篇文章内容。
如果你想使用the_content()，在编辑文章的时候一定要在文章内容添加上&#60;!--more--&#62;。
使用the_excerpt()会填充post_execerpt字段，而the_content()不会额外增加数据库占用空间。
范例：在目录或归档页面输出摘要，其他位置输出全部内容。
&#60;?php if ( is_category() &#124;&#124; is_archive() ) {
the_excerpt();
} else {
the_content();
} ?&#62;
]]></description>
			<content:encoded><![CDATA[<p>使用the_excerpt() 和 the_content() 显示文章摘要的异同。</p>
<p><span id="more-501"></span></p>
<p>目录或归档页面经常需要输出文章的摘要，而不是输出正篇文章，输出摘要的有利于搜索引擎优化，而且也方便读者大体上了解文章内容。</p>
<p>输出文章摘要由两种方法：</p>
<h4>1. the_excerpt()</h4>
<p>打开wordpress数据库的wp-posts表我们可发现post_excerpt字段，the_excerpt()输出的内容就是此字段存储的信息。</p>
<p>the_excerpt()无参数，不支持内嵌标记，并且输出时会以&#8230;结尾。</p>
<p><img class="aligncenter size-full wp-image-503" title="wordpress-datebase-excerpt-field" src="http://www.renniaofei.com/wp-content/uploads/2010/01/wordpress-datebase-excerpt-field.jpg" alt="" width="468" height="216" /><br />
在编辑文章时需在摘要部分填上相关摘要信息，如下图所示。<br />
<img class="aligncenter size-full wp-image-502" title="wordpress-excerpt" src="http://www.renniaofei.com/wp-content/uploads/2010/01/wordpress-excerpt.jpg" alt="" width="468" height="122" /></p>
<h4>2. the_content()</h4>
<p>如果文章里面使用<tt>&lt;!--more--&gt;，则会输出</tt><tt>&lt;!--more--&gt;以前的内容，否则会输出正篇文章内容。</tt></p>
<p><tt></tt><tt>如果你想使用the_content()，在编辑文章的时候一定要在文章内容添加上</tt><tt>&lt;!--more--&gt;。</tt></p>
<p><tt></tt><tt></tt><tt>使用the_excerpt()会填充post_execerpt字段，而the_content()不会额外增加数据库占用空间。</tt></p>
<p><tt></tt><tt>范例：在目录或归档页面输出摘要，其他位置输出全部内容。</tt></p>
<pre><code>&lt;?php if ( is_category() || is_archive() ) {
the_excerpt();
} else {
the_content();
} ?&gt;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/code/the_excerpt-vs-the_content-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何在WordPress文章或评论中显示作者头像gravatar</title>
		<link>http://www.renniaofei.com/code/ruhe-zai-wordpress-post-huo-comments-zhong-xianshi-zuozhe-touxiang-gravatar/</link>
		<comments>http://www.renniaofei.com/code/ruhe-zai-wordpress-post-huo-comments-zhong-xianshi-zuozhe-touxiang-gravatar/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 13:45:17 +0000</pubDate>
		<dc:creator>任鸟飞</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[wordpress 主题]]></category>
		<category><![CDATA[WordPress 教程]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.renniaofei.com/?p=423</guid>
		<description><![CDATA[gravatar是Globally Recognized Avatar的缩写,是 http://www.gravatar.com 推出的一项服务，意为“全球通用头像”。

如果在Gravatar的服务器上放置了你自己的头像，那么在任何支持Gravatar的blog或者留言本上留言时，只要提供你与这个头像关联的email地址，就能够显示出你的Gravatar头像来。
gravatar图像路径结构:
http://www.gravatar.com/avatar/3b3be63a4c2a439b013787725dfce802?s=80&#38;r=g&#38;d=identicon
参数说明：
3b3be63a4c2a439b013787725dfce802：根据 Emial 生成的 16进制的Email hash代码。（必须提供此参数）
s=80：指定图像的大小。默认值为80px，范围为1到512像素。
r=g：等级

G — 普通级别，任何年龄的访客都适合查看
PG — 有一定争议性的头像，只适合13岁以上查看
R — 成人级，只适合17岁以上成年人查看
X — 最高等级，不适合大多数人查看

d=identicon：默认图像

神秘人- Mystery Man
空白 &#8211; Blank
Gravatar标志 &#8211; Gravatar Logo
抽象图形(自动产生) &#8211; Identicon (Generated)
Wavatar(自动产生) &#8211; Wavatar (Generated)
小怪物(自动产生) &#8211; MonsterID (Generated)

在 Wordpress 控制面板中设置相关参数。
 
在 WordPress 的文章或评论中显示用户图像代码：
1. 我们在functions.php添加下面的函数，以便在文章中直接调用。
function get_recent_comment()
         {
        [...]]]></description>
			<content:encoded><![CDATA[<p>gravatar是Globally Recognized Avatar的缩写,是 <a href="http://www.gravatar.com">http://www.gravatar.com</a> 推出的一项服务，意为“全球通用头像”。<br />
<span id="more-423"></span><br />
如果在Gravatar的服务器上放置了你自己的头像，那么在任何支持Gravatar的blog或者留言本上留言时，只要提供你与这个头像关联的email地址，就能够显示出你的Gravatar头像来。</p>
<h4>gravatar图像路径结构:</h4>
<p>http://www.gravatar.com/avatar/3b3be63a4c2a439b013787725dfce802?s=80&amp;r=g&amp;d=identicon</p>
<p><strong>参数说明：</strong><br />
<strong>3b3be63a4c2a439b013787725dfce802：</strong>根据 Emial 生成的 16进制的Email hash代码。（必须提供此参数）<br />
<strong>s=80：</strong>指定图像的大小。默认值为80px，范围为1到512像素。<br />
<strong>r=g：</strong>等级</p>
<ul>
<li>G — 普通级别，任何年龄的访客都适合查看</li>
<li>PG — 有一定争议性的头像，只适合13岁以上查看</li>
<li>R — 成人级，只适合17岁以上成年人查看</li>
<li>X — 最高等级，不适合大多数人查看</li>
</ul>
<p><strong>d=identicon：</strong>默认图像</p>
<ul>
<li>神秘人- Mystery Man</li>
<li>空白 &#8211; Blank</li>
<li>Gravatar标志 &#8211; Gravatar Logo</li>
<li>抽象图形(自动产生) &#8211; Identicon (Generated)</li>
<li>Wavatar(自动产生) &#8211; Wavatar (Generated)</li>
<li>小怪物(自动产生) &#8211; MonsterID (Generated)</li>
</ul>
<h4>在 Wordpress 控制面板中设置相关参数。</h4>
<p> <a href="http://www.renniaofei.com/wp-content/uploads/2010/01/wordpress-ruhe-zai-pinglun-huo-wenzhang-nei-shiyong-gravatar.jpg"><img class="aligncenter size-full wp-image-424" title="wordpress ruhe zai pinglun huo wenzhang nei shiyong gravatar" src="http://www.renniaofei.com/wp-content/uploads/2010/01/wordpress-ruhe-zai-pinglun-huo-wenzhang-nei-shiyong-gravatar.jpg" alt="wordpress ruhe zai pinglun huo wenzhang nei shiyong gravatar" width="468" height="450" /></a></p>
<h4>在 WordPress 的文章或评论中显示用户图像代码：</h4>
<h4>1. 我们在functions.php添加下面的函数，以便在文章中直接调用。</h4>
<pre><code>function get_recent_comment()
         {
         global $wpdb; $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author,comment_author_email, comment_date_gmt, comment_approved, comment_type,comment_author_url,SUBSTRING(comment_content,1,80) AS com_excerpt
         FROM $wpdb-&gt;comments
         LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID)
         WHERE comment_approved = '1' AND comment_type = '' AND
         post_password = ''
         ORDER BY comment_date_gmt DESC
         LIMIT 5";
         $comments = $wpdb-&gt;get_results($sql);
         $output = $pre_HTML;
         foreach ($comments as $comment) {
         $output .= "\n&lt;li&gt;&lt;img src=\"http://www.gravatar.com/avatar/".md5($comment-&gt;comment_author_email). "&amp;s=42&amp;amp;d=&amp;amp;&amp;r=G' alt=\"".strip_tags($comment-&gt;comment_author)."  /&gt;\n
&lt;a href=\"" . get_permalink($comment-&gt;ID) .
"#comment-" . $comment-&gt;comment_ID . "\"&gt;" . strip_tags($comment-&gt;com_excerpt)
."&lt;/a&gt;&lt;/li&gt;";
} $output .= $post_HTML;
		echo $output;
} </code></pre>
<p><strong>代码说明： </strong></p>
<ul>
<li>md5($comment-&gt;comment_author_email) ：将关联的email转化为16进制 hash md5 码。</li>
<li>可根据需要自行修改上述函数。</li>
</ul>
<h4>2. 调用get_recent_comment()函数，在需要放置 <strong>最新评论</strong> 的地方放置如下代码。</h4>
<p>&lt;ul&gt;<br />
&lt;?php echo get_recent_comment(); ?&gt;<br />
&lt;/ul&gt;</p>
<p><strong>3. 输出样式：</strong></p>
<p>如本站右侧部分<strong> 最新评论</strong> 部分。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.renniaofei.com/code/ruhe-zai-wordpress-post-huo-comments-zhong-xianshi-zuozhe-touxiang-gravatar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.692 seconds -->
