<?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://bulog.org/tag/hezi/feed" rel="self" type="application/rss+xml" />
	<link>http://bulog.org</link>
	<description>希望给你自由</description>
	<lastBuildDate>Sun, 25 Mar 2012 11:09:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Wp kit cn中的几种变量</title>
		<link>http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html</link>
		<comments>http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html#comments</comments>
		<pubDate>Sat, 14 Nov 2009 08:56:31 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[盒子]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=554</guid>
		<description><![CDATA[Wp kit cn是一款非常方便实用的侧边栏工具插件。Wp kit cn中的“最新留言”可后台直接定义样式。如设置Gravatar头像，标题内容，链接位置等各种各种样式。其根本是Wp kit cn所遵循的几种基本变量。 这几种变量格式如下： %post_title%—文章的标题 %comment_count%—该篇文章的评论数量 %comment_auhtor%—评论作者 %comment_auhtor_url%—评论作者的网站 %permalink%—该条评论的永久链接 %comment_excerpt%—评论摘要 %gravatar%—头像 使用示例： %gravatar% &#60;a href=&#8221;%permalink%&#8221;&#62;%comment_excerpt%&#60;/a&#62; 在Wp kit cn“最新留言”，“评论链接的自定义格式”中放入以上代码，显示样式则如本站侧栏。当然，你也可以加入title等元素，使内容为更丰富。 相关日志2011/03/08 -- 温和一点 (13)2009/11/14 -- 博客自动生成description与keywords(完整版) (1)2009/11/06 -- 让wp自动生成description与keywords (8)2010/04/23 -- 滑动关闭侧边栏(基于jQuery1.4) (20)2010/04/22 -- wordpress 默认小工具修改表 (17)2010/04/17 -- &#8230; <a href="http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://bulog.org/logs/wp-kit-cn-bian-lian-han-shu.html">Wp kit cn</a>是一款非常方便实用的侧边栏工具插件。<a href="http://bulog.org/logs/wp-kit-cn-bian-lian-han-shu.html">Wp kit cn</a>中的“最新留言”可后台直接定义样式。如设置Gravatar头像，标题内容，链接位置等各种各种样式。其根本是Wp kit cn所遵循的几种基本变量。</p>
<p><span id="more-554"></span></p>
<p>这几种变量格式如下：</p>
<blockquote><p>%post_title%—文章的标题<br />
%comment_count%—该篇文章的评论数量<br />
%comment_auhtor%—评论作者<br />
%comment_auhtor_url%—评论作者的网站<br />
%permalink%—该条评论的永久链接<br />
%comment_excerpt%—评论摘要<br />
%gravatar%—头像</p></blockquote>
<p>使用示例：</p>
<blockquote><p>%gravatar% &lt;a href=&#8221;%permalink%&#8221;&gt;%comment_excerpt%&lt;/a&gt;</p></blockquote>
<p>在<a href=" http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html">Wp kit cn</a>“最新留言”，“评论链接的自定义格式”中放入以上代码，显示样式则如本站侧栏。当然，你也可以加入title等元素，使内容为更丰富。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-description-keywords.html" title="博客自动生成description与keywords(完整版)">博客自动生成description与keywords(完整版)</a> (1)</li><li>2009/11/06 -- <a href="http://bulog.org/logs/description-keywords.html" title="让wp自动生成description与keywords">让wp自动生成description与keywords</a> (8)</li><li>2010/04/23 -- <a href="http://bulog.org/share/wordpress/close-sidebar.html" title="滑动关闭侧边栏(基于jQuery1.4)">滑动关闭侧边栏(基于jQuery1.4)</a> (20)</li><li>2010/04/22 -- <a href="http://bulog.org/share/wordpress/default-widgets.html" title="wordpress 默认小工具修改表">wordpress 默认小工具修改表</a> (17)</li><li>2010/04/17 -- <a href="http://bulog.org/share/wordpress/widget-logic.html" title="Widget Logic 参数">Widget Logic 参数</a> (9)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>甲和乙3</title>
		<link>http://bulog.org/logs/jia-yi-3.html</link>
		<comments>http://bulog.org/logs/jia-yi-3.html#comments</comments>
		<pubDate>Mon, 09 Nov 2009 12:55:08 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[闲言]]></category>
		<category><![CDATA[甲和乙]]></category>
		<category><![CDATA[盒子]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=508</guid>
		<description><![CDATA[甲：请听题。 乙：说。 甲：问，仨混沌一起下锅，一个淹死了，一个烫死了，一个被人咬死了，哪个最惨？ 乙：答，烫死的最惨。 甲：错！ 乙：为什么? 甲：被咬死那个遭了三次罪才死，你说哪个惨？！ 相关日志2011/09/20 -- 甲和乙4 (4)2010/02/02 -- 洗澡的问题 (14)2010/01/25 -- 这是最后一次 (11)2009/11/14 -- Wp kit cn中的几种变量 (5)2009/11/06 -- 让wp自动生成description与keywords (8)2009/11/02 -- 甲和乙2 (0)]]></description>
			<content:encoded><![CDATA[<p>甲：请听题。</p>
<p>乙：说。</p>
<p>甲：问，仨混沌一起下锅，一个淹死了，一个烫死了，一个被人咬死了，哪个最惨？</p>
<p>乙：答，烫死的最惨。</p>
<p>甲：错！</p>
<p>乙：为什么?</p>
<p><span id="more-508"></span></p>
<p>甲：被咬死那个遭了三次罪才死，你说哪个惨？！</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011/09/20 -- <a href="http://bulog.org/share/zahui/jia-yi-4.html" title="甲和乙4">甲和乙4</a> (4)</li><li>2010/02/02 -- <a href="http://bulog.org/logs/essay/xi-zao-wen-ti.html" title="洗澡的问题">洗澡的问题</a> (14)</li><li>2010/01/25 -- <a href="http://bulog.org/logs/essay/zui-hou-yi-ci.html" title="这是最后一次">这是最后一次</a> (11)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html" title="Wp kit cn中的几种变量">Wp kit cn中的几种变量</a> (5)</li><li>2009/11/06 -- <a href="http://bulog.org/logs/description-keywords.html" title="让wp自动生成description与keywords">让wp自动生成description与keywords</a> (8)</li><li>2009/11/02 -- <a href="http://bulog.org/logs/jia-yi-2.html" title="甲和乙2">甲和乙2</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/logs/jia-yi-3.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>让wp自动生成description与keywords</title>
		<link>http://bulog.org/logs/description-keywords.html</link>
		<comments>http://bulog.org/logs/description-keywords.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 16:23:34 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[闲言]]></category>
		<category><![CDATA[盒子]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=469</guid>
		<description><![CDATA[过去的某一段时间，我非常喜欢装系统，大约三四天就会装上一次。只是系统装起来方便，安装常用软件却很麻烦，所以，我养成了装绿色软件的习惯。 这种习惯一直保持到我开始使用各类网站程序。但凡是修改代码就可实现的功能，我一定不会用插件去实现。虽然我对php几乎是一无所知，但现在有google，有百度，以及无数乐于分享经验的Blogger。 今天，我来分享一个关于WP文章页自动生成description与keywords的代码。这是我刚开始接触WP时看到的，现在已经想不起作者的名字与网站，就当转自网络吧，并欢迎各位继续转载。 关于单篇代码生成description与keywords的好处可以搜索一下，这里就不重复了。 将以下代码放在使用模板中header.php文件的&#60;title&#62;&#60;/title&#62;以下， $description = "博客整体说明。"; $keywords = "博客整体关键字"; } else if (is_single()){ if ($post->post_excerpt) { $description = $post->post_excerpt; } else { $description = mb_substr(preg_replace('&#124;s*&#124;','',strip_tags($post->post_content)),0,180,'UTF-8'); } $keywords = ""; $tags = wp_get_post_tags($post->ID); foreach ($tags as $tag ) { &#8230; <a href="http://bulog.org/logs/description-keywords.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>过去的某一段时间，我非常喜欢装系统，大约三四天就会装上一次。只是系统装起来方便，安装常用软件却很麻烦，所以，我养成了装绿色软件的习惯。</p>
<p>这种习惯一直保持到我开始使用各类网站程序。但凡是修改代码就可实现的功能，我一定不会用插件去实现。虽然我对php几乎是一无所知，但现在有google，有百度，以及无数乐于分享经验的Blogger。</p>
<p>今天，我来分享一个关于WP文章页<a href="http://bulog.org/logs/description-keywords.html">自动生成description与keywords</a>的代码。这是我刚开始接触WP时看到的，现在已经想不起作者的名字与网站，就当转自网络吧，并欢迎各位继续转载。</p>
<p>关于单篇代码生成<a href="http://bulog.org/logs/description-keywords.html">description与keywords</a>的好处可以搜索一下，这里就不重复了。</p>
<p>将以下代码放在使用模板中header.php文件的&lt;title&gt;&lt;/title&gt;以下，</p>
<p><span id="more-469"></span><br />
<code>$description = "博客整体说明。";<br />
$keywords = "博客整体关键字";<br />
} else if (is_single()){<br />
if ($post->post_excerpt) {<br />
$description     = $post->post_excerpt;<br />
} else {<br />
$description = mb_substr(preg_replace('|s*|','',strip_tags($post->post_content)),0,180,'UTF-8');<br />
}<br />
$keywords = "";<br />
$tags = wp_get_post_tags($post->ID);<br />
foreach ($tags as $tag ) {<br />
$keywords = $keywords . $tag->name . ",";<br />
}<br />
}<br />
?><br />
<meta name="keywords" content="<?=$keywords?>" /><br />
<?if (is_home()){<br />
<meta name="description" content="<?=$description?>" /></code></p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2009/11/14 -- <a href="http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html" title="Wp kit cn中的几种变量">Wp kit cn中的几种变量</a> (5)</li><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2010/03/06 -- <a href="http://bulog.org/share/zahui/site-info-from-alexa.html" title="向 Alexa 提交网站信息(新版本)">向 Alexa 提交网站信息(新版本)</a> (5)</li><li>2009/12/03 -- <a href="http://bulog.org/logs/ogc.html" title="从Orz到OGC">从Orz到OGC</a> (5)</li><li>2009/11/16 -- <a href="http://bulog.org/share/advanced-systemcare-pro-edition.html" title="Advanced SystemCare™ PRO Edition">Advanced SystemCare™ PRO Edition</a> (1)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-description-keywords.html" title="博客自动生成description与keywords(完整版)">博客自动生成description与keywords(完整版)</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/logs/description-keywords.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

