<?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>华斐Blog &#187; wordpress</title>
	<atom:link href="http://www.huafei117.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.huafei117.com</link>
	<description>华斐网志以及学习心得</description>
	<lastBuildDate>Wed, 28 Dec 2011 02:36:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>关于wordpress文章内嵌adsense的修改</title>
		<link>http://www.huafei117.com/2011/12/22/%e5%85%b3%e4%ba%8ewordpress%e6%96%87%e7%ab%a0%e5%86%85%e5%b5%8cadsense%e7%9a%84%e4%bf%ae%e6%94%b9/</link>
		<comments>http://www.huafei117.com/2011/12/22/%e5%85%b3%e4%ba%8ewordpress%e6%96%87%e7%ab%a0%e5%86%85%e5%b5%8cadsense%e7%9a%84%e4%bf%ae%e6%94%b9/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 03:48:57 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/?p=239</guid>
		<description><![CDATA[今天去郑永那里发现了一个比较爽的内嵌google Adsense的方法，就是用120×600的摩天大楼样式嵌在文章右侧，这样比经常用的放在文章前面的矩形块更显的简洁，不会太突兀。 附上修改方法: 编辑”single.php”,在 &#60;div style="float:right; padding:0px 10px;width:120px;height:600px;z-index:1000"&#62; adsense代码放这里 &#60;/div&#62; 可以根据不同的主题修改]]></description>
			<content:encoded><![CDATA[<p>今天去郑永那里发现了一个比较爽的内嵌google Adsense的方法，就是用120×600的摩天大楼样式嵌在文章右侧，这样比经常用的放在文章前面的矩形块更显的简洁，不会太突兀。<br />
附上修改方法:<br />
编辑”single.php”,在</p>
<div class="content">
<pre>&lt;div style="float:right; padding:0px 10px;width:120px;height:600px;z-index:1000"&gt;
adsense代码放这里
&lt;/div&gt;</pre>
<p>可以根据不同的主题修改</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2011/12/22/%e5%85%b3%e4%ba%8ewordpress%e6%96%87%e7%ab%a0%e5%86%85%e5%b5%8cadsense%e7%9a%84%e4%bf%ae%e6%94%b9/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>wordpress管理密码忘记了怎么办？</title>
		<link>http://www.huafei117.com/2010/12/18/wordpress%e7%ae%a1%e7%90%86%e5%af%86%e7%a0%81%e5%bf%98%e8%ae%b0%e4%ba%86%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f/</link>
		<comments>http://www.huafei117.com/2010/12/18/wordpress%e7%ae%a1%e7%90%86%e5%af%86%e7%a0%81%e5%bf%98%e8%ae%b0%e4%ba%86%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 05:53:00 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[管理员密码修改]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/226.htm</guid>
		<description><![CDATA[很久没有登录本地环境下面的wordpress进行过测试了,今天有空想改下主题，登录后台的时候发现前不久重置过的密码又忘记了！真是悲催啊！搜索重置的方法，结果如下： 1、登录phpmyadmin,找到安装wordpress的数据库； 2、在wp_user表上面选择浏览 3、找到你要更改密码的用户名，比如admin,点击编辑； 4、将用户名的密码字段user_pass更改为“e10adc3949ba59abbe56e057f20f883e”（”123456”的MD5加密）字符串，然后使用123456的密码就可以登录。 也可以自定义更改的密码，将相应的密码可以由PHP转换成MD5输出，代码如下： &#60;?php echo md5('123456'); ?&#62; //将 123456 替换为所需密码]]></description>
			<content:encoded><![CDATA[<p>很久没有登录本地环境下面的wordpress进行过测试了,今天有空想改下主题，登录后台的时候发现前不久重置过的密码又忘记了！真是悲催啊！搜索重置的方法，结果如下：</p>
<p>1、登录phpmyadmin,找到安装wordpress的数据库；</p>
<p>2、在<strong>wp_user</strong>表上面选择<strong>浏览</strong></p>
<p><strong><a href="http://www.huafei117.com/wp-content/uploads/2010/12/changepw3.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="changepw1" border="0" alt="changepw1" src="http://www.huafei117.com/wp-content/uploads/2010/12/changepw3_thumb.jpg" width="244" height="162" /></a> </strong></p>
<p>3、找到你要更改密码的用户名，比如admin,点击<strong>编辑；</strong></p>
<p>4、将用户名的密码字段<strong>user_pass</strong>更改为“e10adc3949ba59abbe56e057f20f883e”（”123456”的MD5加密）字符串，然后使用123456的密码就可以登录。</p>
<p>也可以自定义更改的密码，将相应的密码可以由PHP转换成MD5输出，代码如下：</p>
<blockquote><pre>&lt;?php echo md5('123456'); ?&gt;
//将 123456 替换为所需密码</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/12/18/wordpress%e7%ae%a1%e7%90%86%e5%af%86%e7%a0%81%e5%bf%98%e8%ae%b0%e4%ba%86%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>重新安装wordpress</title>
		<link>http://www.huafei117.com/2010/11/28/%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85wordpress/</link>
		<comments>http://www.huafei117.com/2010/11/28/%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85wordpress/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 12:09:32 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/218.htm</guid>
		<description><![CDATA[转了几次服务器，空间上面的文件愈发的多起来，文件的编码也不知道什么时候弄成了乱码,整理一下，重新安装wordpress吧！ 1、备份数据库，这个不用说了，在数据库那里导出；同时把主题（themes）、插件(plugins)、上传(uploads)备份。 2、清空掉空间的数据库和文件；（其实不用清掉数据库的，我之前搬空间的时候没有弄好数据库，这回重新来的！） 3、导入备份的数据库，并上传wordpress程序； 4、修改wp-config-sample.php文件中的数据库连接： // ** MySQL 设置 &#8211; 具体信息来自您正在使用的主机 ** // /** WordPress 数据库的名称 */ define(&#8216;DB_NAME&#8217;, &#8216;database_name_here&#8217;); /** MySQL 数据库用户名 */ define(&#8216;DB_USER&#8217;, &#8216;username_here&#8217;); /** MySQL 数据库密码 */ define(&#8216;DB_PASSWORD&#8217;, &#8216;password_here&#8217;); /** MySQL 主机 */ define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;); &#160; 并改名为:wp-config.php; 5、上传1、中备份的主题、插件、上传文件夹到相应的目录。 6、到链接那里更新下固定链接！ 搞定&#8230;.]]></description>
			<content:encoded><![CDATA[<p>转了几次服务器，空间上面的文件愈发的多起来，文件的编码也不知道什么时候弄成了乱码,整理一下，重新安装wordpress吧！</p>
<p>1、备份数据库，这个不用说了，在数据库那里导出；同时把主题（themes）、插件(plugins)、上传(uploads)备份。</p>
<p>2、清空掉空间的数据库和文件；（其实不用清掉数据库的，我之前搬空间的时候没有弄好数据库，这回重新来的！）</p>
<p>3、导入备份的数据库，并上传wordpress程序；</p>
<p>4、修改wp-config-sample.php文件中的数据库连接：</p>
<blockquote><p>// ** MySQL 设置 &#8211; 具体信息来自您正在使用的主机 ** //     <br />/** WordPress 数据库的名称 */      <br />define(&#8216;DB_NAME&#8217;, &#8216;database_name_here&#8217;); </p>
<p>/** MySQL 数据库用户名 */     <br />define(&#8216;DB_USER&#8217;, &#8216;username_here&#8217;); </p>
<p>/** MySQL 数据库密码 */     <br />define(&#8216;DB_PASSWORD&#8217;, &#8216;password_here&#8217;); </p>
<p>/** MySQL 主机 */     <br />define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);</p>
<p>&#160;</p>
</blockquote>
<p>并改名为:wp-config.php;</p>
<p>5、上传1、中备份的主题、插件、上传文件夹到相应的目录。</p>
<p>6、到链接那里更新下固定链接！</p>
<p>搞定&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/11/28/%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>博客搬家</title>
		<link>http://www.huafei117.com/2010/10/06/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6/</link>
		<comments>http://www.huafei117.com/2010/10/06/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 02:36:29 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress搬家]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/215.htm</guid>
		<description><![CDATA[之前在横天小张那里买的主机要过期，又去他开通的自助购买平台买了个空间，第一次搬家，做个记录吧！ &#160; 1、首先是在新的空间上配置好MYSQL的数据库和密码（因为跟舍友一起用的空间） 2、将旧空间的数据库和文件都下载下来：数据库我是用自动备份发到我邮箱的数据库文件；其他文件直接用FTP下载下来了！ 3、下载完成后修改wp-config.php，将新空间的数据库参数修改上去。 4、将文件上传至新的FTP，并在数据库中导入之前备份的数据库。 5，最后就是更改域名的解析了，在这里不得不赞下godday，刚改IP就能秒解析，比之前在国内的速度&#8230;真给力啊 6、最后，开域名&#8230;貌似没什么问题了，大功告成！]]></description>
			<content:encoded><![CDATA[<p>之前在横天小张那里买的主机要过期，又去他开通的自助购买平台买了个空间，第一次搬家，做个记录吧！</p>
<p>&#160;</p>
<p>1、首先是在新的空间上配置好MYSQL的数据库和密码（因为跟舍友一起用的空间）</p>
<p>2、将旧空间的数据库和文件都下载下来：数据库我是用自动备份发到我邮箱的数据库文件；其他文件直接用FTP下载下来了！</p>
<p>3、下载完成后修改wp-config.php，将新空间的数据库参数修改上去。</p>
<p>4、将文件上传至新的FTP，并在数据库中导入之前备份的数据库。</p>
<p>5，最后就是更改域名的解析了，在这里不得不赞下godday，刚改IP就能秒解析，比之前在国内的速度&#8230;真给力啊</p>
<p>6、最后，开域名&#8230;貌似没什么问题了，大功告成！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/10/06/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>禁用wordpress的自动保存和历史版本</title>
		<link>http://www.huafei117.com/2010/07/20/%e7%a6%81%e7%94%a8wordpress%e7%9a%84%e8%87%aa%e5%8a%a8%e4%bf%9d%e5%ad%98%e5%92%8c%e5%8e%86%e5%8f%b2%e7%89%88%e6%9c%ac/</link>
		<comments>http://www.huafei117.com/2010/07/20/%e7%a6%81%e7%94%a8wordpress%e7%9a%84%e8%87%aa%e5%8a%a8%e4%bf%9d%e5%ad%98%e5%92%8c%e5%8e%86%e5%8f%b2%e7%89%88%e6%9c%ac/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 07:03:59 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[autosave]]></category>
		<category><![CDATA[revisions]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[历史版本]]></category>
		<category><![CDATA[自动保存]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/207.htm</guid>
		<description><![CDATA[无意中发现发表的文章的ID是不连续的，才知道还没有禁用wordpress的自动保存和历史版本功能&#8230; 禁用历史版本（Revisions）： 在wp-config.php中加入: define(&#8216;WP_POST_REVISIONS&#8217;, false); 禁用自动保存（AutoSave）； 打开以下4个文件 wp-admin/post-new.php wp-admin/post.php wp-admin/page-new.php wp-admin/page.php 注释掉这行 //wp_enqueue_script(&#8216;autosave&#8217;);]]></description>
			<content:encoded><![CDATA[<p>无意中发现发表的文章的ID是不连续的，才知道还没有禁用wordpress的自动保存和历史版本功能&#8230;</p>
<p><strong>禁用历史版本（Revisions）：</strong></p>
<p>在wp-config.php中加入:</p>
<blockquote><p>define(&#8216;WP_POST_REVISIONS&#8217;, false);</p>
</blockquote>
<p><strong></strong></p>
<p><strong>禁用自动保存（AutoSave）；</strong>    <br />打开以下4个文件</p>
<blockquote><p>wp-admin/post-new.php     <br />wp-admin/post.php      <br />wp-admin/page-new.php      <br />wp-admin/page.php</p>
</blockquote>
<p>注释掉这行</p>
<blockquote><p>//wp_enqueue_script(&#8216;autosave&#8217;);</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/07/20/%e7%a6%81%e7%94%a8wordpress%e7%9a%84%e8%87%aa%e5%8a%a8%e4%bf%9d%e5%ad%98%e5%92%8c%e5%8e%86%e5%8f%b2%e7%89%88%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>插件推荐：同步你的WordPress博客更新信息到twitter（也支持新浪微博）</title>
		<link>http://www.huafei117.com/2010/07/07/%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90%ef%bc%9a%e5%90%8c%e6%ad%a5%e4%bd%a0%e7%9a%84wordpress%e5%8d%9a%e5%ae%a2%e6%9b%b4%e6%96%b0%e4%bf%a1%e6%81%af%e5%88%b0twitter%ef%bc%88%e4%b9%9f%e6%94%af%e6%8c%81/</link>
		<comments>http://www.huafei117.com/2010/07/07/%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90%ef%bc%9a%e5%90%8c%e6%ad%a5%e4%bd%a0%e7%9a%84wordpress%e5%8d%9a%e5%ae%a2%e6%9b%b4%e6%96%b0%e4%bf%a1%e6%81%af%e5%88%b0twitter%ef%bc%88%e4%b9%9f%e6%94%af%e6%8c%81/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 09:48:06 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[同步]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/201.htm</guid>
		<description><![CDATA[放假这几天，玩起了同步，显示在GAE上搭建了twitter同步到sina微博的程序，至于QQ，有民间的API出现了还没有弄呢！期间也找了几个同步wordpress博客更新到twitter的方法，就推荐下这个插件吧！ 插件名称：little-wp-to-twitter 插件描述：一款轻量级的、同步你的WordPress博客更新信息到twitter（也支持新浪微博），支持个性化、自定义同步信息内容的插件 当前版本：1.0 插件作者：QiQiBoY（@qiqiboy） 插件页面：http://www.qiqiboy.com/plugins/ 插件下载：http://wordpress.org/extend/plugins/little-wp-to-twitter/ 插件简介： 发布或更新日志时同步一条日志信息到twitter 支持自定义信息前缀、自定义twitter代理、自定义短网址api 支持将日志中的标签（tag）以话题形式发布到twitter 日志编辑页面可单独选择此日志是否推到twitter 个性化推特信息内容，可在每条tweet结尾加上一段自己的话 以上所有信息均也可推到新浪微博 插件使用： 下载插件上传到WordPress插件目录，后台激活 到设置页面勾选“Enable little wp to twitter”启用插件，然后填写你的twitter用户名和密码，点击“保存更改”即可。 国内主机用户务必勾选最后“use a proxy” 更多信息请移步道作者的介绍页面：http://www.qiqiboy.com/2010/04/01/plugin-little-wp-to-twitter.html 另外，如果有想万戈同学那样不喜欢用插件的话也可以去万戈那里讨教讨教非插件的方法! 同时也以这篇日志做个测试！嘎嘎&#8230;. 还没有找到合适的twitter api proxy 同步失败&#8230;]]></description>
			<content:encoded><![CDATA[<p>放假这几天，玩起了同步，显示在GAE上搭建了twitter同步到sina微博的程序，至于QQ，有民间的API出现了还没有弄呢！期间也找了几个同步wordpress博客更新到twitter的方法，就推荐下这个插件吧！</p>
<blockquote><p><strong>插件名称</strong>：little-wp-to-twitter       <br /><strong>插件描述</strong>：一款轻量级的、同步你的WordPress博客更新信息到twitter（也支持新浪微博），支持个性化、自定义同步信息内容的插件       <br /><strong>当前版本</strong>：1.0       <br /><strong>插件作者</strong>：QiQiBoY（<a href="http://twitter.com/qiqiboy"><strong>@qiqiboy</strong></a>）       <br /><strong>插件页面</strong>：<a href="http://www.qiqiboy.com/plugins/">http://www.qiqiboy.com/plugins/</a>       <br /><strong>插件下载</strong>：<a href="http://wordpress.org/extend/plugins/little-wp-to-twitter/">http://wordpress.org/extend/plugins/little-wp-to-twitter/</a>       <br /><strong>插件简介</strong>：</p>
<ul>
<li>发布或更新日志时同步一条日志信息到twitter </li>
<li>支持自定义信息前缀、自定义twitter代理、自定义短网址api </li>
<li>支持将日志中的标签（tag）以话题形式发布到twitter </li>
<li>日志编辑页面可单独选择此日志是否推到twitter </li>
<li><strong><em>个性化推特信息内容</em></strong>，可在每条tweet结尾加上一段自己的话 </li>
<li>以上所有信息均也可推到新浪微博 </li>
</ul>
<p><strong>插件使用</strong>：</p>
<ol>
<li>下载插件上传到WordPress插件目录，后台激活 </li>
<li>到设置页面勾选“Enable little wp to twitter”启用插件，然后填写你的twitter用户名和密码，点击“保存更改”即可。 </li>
<li>国内主机用户务必勾选最后“<strong>use a proxy</strong>” </li>
</ol>
</blockquote>
<p>更多信息请移步道作者的介绍页面：<a href="http://www.qiqiboy.com/2010/04/01/plugin-little-wp-to-twitter.html">http://www.qiqiboy.com/2010/04/01/plugin-little-wp-to-twitter.html</a></p>
<p>另外，如果有想万戈同学那样不喜欢用插件的话也可以去<a href="http://www.wange.im" target="_blank">万戈</a>那里讨教讨教非插件的方法!</p>
<p>同时也以这篇日志做个测试！嘎嘎&#8230;.</p>
<p>还没有找到合适的twitter api proxy 同步失败&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/07/07/%e6%8f%92%e4%bb%b6%e6%8e%a8%e8%8d%90%ef%bc%9a%e5%90%8c%e6%ad%a5%e4%bd%a0%e7%9a%84wordpress%e5%8d%9a%e5%ae%a2%e6%9b%b4%e6%96%b0%e4%bf%a1%e6%81%af%e5%88%b0twitter%ef%bc%88%e4%b9%9f%e6%94%af%e6%8c%81/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>wordpress显示评论者博客最新文章的插件</title>
		<link>http://www.huafei117.com/2010/05/17/wordpress%e6%98%be%e7%a4%ba%e8%af%84%e8%ae%ba%e8%80%85%e5%8d%9a%e5%ae%a2%e6%9c%80%e6%96%b0%e6%96%87%e7%ab%a0%e7%9a%84%e6%8f%92%e4%bb%b6/</link>
		<comments>http://www.huafei117.com/2010/05/17/wordpress%e6%98%be%e7%a4%ba%e8%af%84%e8%ae%ba%e8%80%85%e5%8d%9a%e5%ae%a2%e6%9c%80%e6%96%b0%e6%96%87%e7%ab%a0%e7%9a%84%e6%8f%92%e4%bb%b6/#comments</comments>
		<pubDate>Mon, 17 May 2010 15:43:44 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[评论者博文显示插件]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/190.htm</guid>
		<description><![CDATA[今天去郑永那里评论的时候发现，评论的时候竟然有出现我博客的最新文章，遂通过郑永评论框那里的插件链接到达插件作者的页面，找到了这么一个可以在评论时显示评论者最新文章的插件。 插件地址：http://comluv.com/download/commentluv-wordpress/ 安装后的后台设置界面： 效果的话嘛！大家在下面评论的时候勾选“显示您的最新博文”就有啦！]]></description>
			<content:encoded><![CDATA[<p>今天去郑永那里评论的时候发现，评论的时候竟然有出现我博客的最新文章，遂通过郑永评论框那里的插件链接到达插件作者的页面，找到了这么一个可以在评论时显示评论者最新文章的插件。</p>
<p>插件地址：<a href="http://comluv.com/download/commentluv-wordpress/">http://comluv.com/download/commentluv-wordpress/</a></p>
<p>安装后的后台设置界面：</p>
<p><a href="http://www.huafei117.com/wp-content/uploads/2010/05/wordpress00017.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="commentluv设置界面" border="0" alt="commentluv设置界面" src="http://www.huafei117.com/wp-content/uploads/2010/05/wordpress00017_thumb.jpg" width="432" height="772" /></a> </p>
<p>效果的话嘛！大家在下面评论的时候勾选“显示您的最新博文”就有啦！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/05/17/wordpress%e6%98%be%e7%a4%ba%e8%af%84%e8%ae%ba%e8%80%85%e5%8d%9a%e5%ae%a2%e6%9c%80%e6%96%b0%e6%96%87%e7%ab%a0%e7%9a%84%e6%8f%92%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>SEO优化的一些修改</title>
		<link>http://www.huafei117.com/2010/05/14/seo%e4%bc%98%e5%8c%96%e7%9a%84%e4%b8%80%e4%ba%9b%e4%bf%ae%e6%94%b9/</link>
		<comments>http://www.huafei117.com/2010/05/14/seo%e4%bc%98%e5%8c%96%e7%9a%84%e4%b8%80%e4%ba%9b%e4%bf%ae%e6%94%b9/#comments</comments>
		<pubDate>Thu, 13 May 2010 17:08:36 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/187.htm</guid>
		<description><![CDATA[1、更改标题:页面的标题不要包含博客名称 一些包含大量内容的, 或者属于某一类的页面, 只显示标题. 其他的页面只显示博客名称. 我的实现代码如下. &#60;title&#62;&#60;?php if ( is_single() &#124;&#124; is_page() &#124;&#124; is_category() &#124;&#124; is_tag() ) { wp_title(''); } else { bloginfo('name'); } ?&#62;&#60;/title&#62; 2、Keywords &#38; Description Keywords 为搜索引擎提供网页包含的核心内容, Description 则为搜索引擎提供网页的描述信息.这个我没有使用一些SEO的插件，自己手动来改代码吧！当然，不同的页面处理方法也不同的。下面是搜索来的： &#60;?php if (is_home()){ $keywords = “wordpress,网络管理,php学习,”; $description = “华斐的学习博客，关注wordpress和互联网相关的一些东西”; } elseif (is_single()){ if ($post-&#62;post_excerpt) { $description = $post-&#62;post_excerpt; } else { if(preg_match(‘/&#60;p&#62;(.*)&#60;\/p&#62;/iU’,trim(strip_tags($post-&#62;post_content,”&#60;p&#62;”)),$result)){ $post_content [...]]]></description>
			<content:encoded><![CDATA[<p>1、更改标题:页面的标题不要包含博客名称</p>
<p>一些包含大量内容的, 或者属于某一类的页面, 只显示标题. 其他的页面只显示博客名称. 我的实现代码如下.</p>
<pre><span style="color: #0000ff">&lt;</span><span style="color: #800000">title</span><span style="color: #0000ff">&gt;</span><span style="color: #0000ff">&lt;?</span>php if ( is_single() || is_page() || is_category() || is_tag() ) { wp_title(''); }
 else { bloginfo('name'); } <span style="color: #0000ff">?&gt;</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">title</span><span style="color: #0000ff">&gt;</span></pre>
<p>2、Keywords &amp; Description</p>
<p>Keywords 为搜索引擎提供网页包含的核心内容, Description 则为搜索引擎提供网页的描述信息.这个我没有使用一些SEO的插件，自己手动来改代码吧！当然，不同的页面处理方法也不同的。下面是搜索来的：</p>
<pre><span style="color: #0000ff">&lt;?</span>php
if (is_home()){
$keywords = “wordpress,网络管理,php学习,”;
$description = “华斐的学习博客，关注wordpress和互联网相关的一些东西”;
} elseif (is_single()){
if ($post-&gt;post_excerpt) {
$description  = $post-&gt;post_excerpt;
} else {
if(preg_match(‘/&lt;p&gt;(.*)&lt;\/p&gt;/iU’,trim(strip_tags($post-&gt;post_content,”&lt;p&gt;”)),$result)){
$post_content = $result['1'];
} else {
$post_content_r = explode(“\n”,trim(strip_tags($post-&gt;post_content)));
$post_content = $post_content_r['0'];
}
$description = substr($post_content,0,220);
}
$keywords = “”;
$tags = wp_get_post_tags($post-&gt;ID);
foreach ($tags as $tag ) {
$keywords = $keywords . $tag-&gt;name . “,”;
}
}
<span style="color: #0000ff">?&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">meta</span> <span style="color: #ff0000">name</span>=<span style="color: #0000ff">”description”</span> <span style="color: #ff0000">content</span>=<span style="color: #0000ff">”&lt;</span>?<span style="color: #ff0000">php</span> <span style="color: #ff0000">echo</span> <span style="color: #ff0000">trim</span>($<span style="color: #ff0000">description</span>); ?<span style="color: #0000ff">&gt;</span>” /&gt;
<span style="color: #0000ff">&lt;</span><span style="color: #800000">meta</span> <span style="color: #ff0000">name</span>=<span style="color: #0000ff">”keywords”</span> <span style="color: #ff0000">content</span>=<span style="color: #0000ff">”&lt;</span>?<span style="color: #ff0000">php</span> <span style="color: #ff0000">echo</span> <span style="color: #ff0000">rtrim</span>($<span style="color: #ff0000">keywords</span>,’,'); ?<span style="color: #0000ff">&gt;</span>” /&gt;</pre>
<p>另外就是注意代码上面的引号要用半角字符替换哦！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/05/14/seo%e4%bc%98%e5%8c%96%e7%9a%84%e4%b8%80%e4%ba%9b%e4%bf%ae%e6%94%b9/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>更换iNove主题并做一些修改（备查）</title>
		<link>http://www.huafei117.com/2010/05/13/%e6%9b%b4%e6%8d%a2inove%e4%b8%bb%e9%a2%98%e5%b9%b6%e5%81%9a%e4%b8%80%e4%ba%9b%e4%bf%ae%e6%94%b9%ef%bc%88%e5%a4%87%e6%9f%a5%ef%bc%89/</link>
		<comments>http://www.huafei117.com/2010/05/13/%e6%9b%b4%e6%8d%a2inove%e4%b8%bb%e9%a2%98%e5%b9%b6%e5%81%9a%e4%b8%80%e4%ba%9b%e4%bf%ae%e6%94%b9%ef%bc%88%e5%a4%87%e6%9f%a5%ef%bc%89/#comments</comments>
		<pubDate>Wed, 12 May 2010 18:26:18 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[iNove主题修改]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[同时显示页面和分类]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/185.htm</guid>
		<description><![CDATA[好久没有折腾Wordpress了，晚上趁着睡不着，更换下主题并做些修改，为了以后方便修改和查找，在此记录下。 &#160; 第一、修改inove导航菜单同时显示页面和分类 1、给主题设置里添加一个选项：show all（意思就是同时显示页面和分类）。 1）修改inove/functions.php在第220行找到： &#60;label&#62; &#60;input name=&#34;menu_type&#34; type=”radio” value=”categories” &#60;?phpif($options['menu_type'] == ‘categories’) echo &#34;checked=’checked’&#34;; ?&#62; /&#62; &#60;?php _e(‘Show categories as menu.’, ‘inove’); ?&#62; &#60;/label&#62; 2)在下面添加： &#60;label&#62;&#160;&#160;&#160; &#60;input name=&#34;menu_type&#34; type=”radio” value=”pages_and_categories” &#60;?phpif($options['menu_type'] == ‘pages_and_categories’) echo&#34;checked=’checked’&#34;; ?&#62; /&#62;&#160; &#60;?php _e(‘Show All.’, ‘inove’); ?&#62; &#60;/label&#62; 2、实现ShowAll功能： 1）修改inove/templates/header.php在第30行找到： &#60;?php if($options['menu_type'] == ‘categories’){wp_list_categories(‘title_li=0&#38;orderby=name&#38;show_count=0′);} else {wp_list_pages(‘title_li=0&#38;sort_column=menu_order’);} ?&#62; 2）将上面的代码替换为： &#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>好久没有折腾Wordpress了，晚上趁着睡不着，更换下主题并做些修改，为了以后方便修改和查找，在此记录下。</p>
<p>&#160;</p>
<p><strong>第一、修改inove导航菜单同时显示页面和分类</strong></p>
<p>1、给主题设置里添加一个选项：show all（意思就是同时显示页面和分类）。</p>
<p>1）修改inove/functions.php在第220行找到：</p>
<blockquote><p>&lt;label&gt;     <br />&lt;input name=&quot;menu_type&quot; type=”radio” value=”categories” &lt;?phpif($options['menu_type'] == ‘categories’) echo &quot;checked=’checked’&quot;; ?&gt; /&gt;      <br />&lt;?php _e(‘Show categories as menu.’, ‘inove’); ?&gt;      <br />&lt;/label&gt;</p>
</blockquote>
<p>2)在下面添加：</p>
<p>&lt;label&gt;&#160;&#160;&#160; <br />&lt;input name=&quot;menu_type&quot; type=”radio” value=”pages_and_categories” &lt;?phpif($options['menu_type'] == ‘pages_and_categories’) echo&quot;checked=’checked’&quot;; ?&gt; /&gt;&#160; <br />&lt;?php _e(‘Show All.’, ‘inove’); ?&gt;    <br />&lt;/label&gt;</p>
<p>2、实现ShowAll功能：</p>
<p>1）修改inove/templates/header.php在第30行找到：</p>
<p>&lt;?php if($options['menu_type'] == ‘categories’){wp_list_categories(‘title_li=0&amp;orderby=name&amp;show_count=0′);}   <br />else {wp_list_pages(‘title_li=0&amp;sort_column=menu_order’);}    <br />?&gt;</p>
<p>2）将上面的代码替换为：</p>
<p>&lt;?php   <br />if($options['menu_type'] == ‘categories’ || $options['menu_type'] ==’pages_and_categories’){wp_list_categories(‘title_li=0&amp;orderby=name&amp;show_count=0′);}    <br />if($options['menu_type'] == ‘pages’ || $options['menu_type'] ==’pages_and_categories’){wp_list_pages(‘title_li=0&amp;sort_column=menu_order’);}    <br />?&gt;</p>
<p>上面显示顺序是先分类再页面，如果你喜欢把页面放在分类前面那就把上面的代码换成：</p>
<p>&lt;?php   <br />if($options['menu_type'] == ‘pages’ || $options['menu_type'] ==’pages_and_categories’){wp_list_pages(‘title_li=0&amp;sort_column=menu_order’);}    <br />if($options['menu_type'] == ‘categories’ || $options['menu_type'] ==’pages_and_categories’){wp_list_categories(‘title_li=0&amp;orderby=name&amp;show_count=0′);}    <br />?&gt;</p>
<p>做完以上工作，进入后台&gt;&gt;外观&gt;&gt;当前主题选项&gt;&gt;选择 show all &gt;&gt;保存，刷新一下，就能看到导航栏同时显示分类和页面了。</p>
<p><strong>注意：请将代码里面的全角双引号改成半角</strong></p>
<p><strong>第二，添加Google Analytics分析</strong>，不使用其他的统计功能了。</p>
<p>直接在后台==》主题==》当前主题选项，把“将分析代码添加到网站中”选项打勾然后保存即可。</p>
<p>&#160;</p>
<p>暂时就这么多，SEO方面的修改明天继续&#8230;.先睡觉去鸟。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/05/13/%e6%9b%b4%e6%8d%a2inove%e4%b8%bb%e9%a2%98%e5%b9%b6%e5%81%9a%e4%b8%80%e4%ba%9b%e4%bf%ae%e6%94%b9%ef%bc%88%e5%a4%87%e6%9f%a5%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>怎么把英文版WordPress后台设置成中文</title>
		<link>http://www.huafei117.com/2010/01/26/%e6%80%8e%e4%b9%88%e6%8a%8a%e8%8b%b1%e6%96%87%e7%89%88wordpress%e5%90%8e%e5%8f%b0%e8%ae%be%e7%bd%ae%e6%88%90%e4%b8%ad%e6%96%87/</link>
		<comments>http://www.huafei117.com/2010/01/26/%e6%80%8e%e4%b9%88%e6%8a%8a%e8%8b%b1%e6%96%87%e7%89%88wordpress%e5%90%8e%e5%8f%b0%e8%ae%be%e7%bd%ae%e6%88%90%e4%b8%ad%e6%96%87/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 09:02:54 +0000</pubDate>
		<dc:creator>华斐</dc:creator>
				<category><![CDATA[玩转Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[中文后台]]></category>
		<category><![CDATA[英文wordpress]]></category>

		<guid isPermaLink="false">http://www.huafei117.com/122.htm</guid>
		<description><![CDATA[很多做网络的童鞋因为国内的广告单价很低，转去做单价高的英文站，DEDE等CMS也针对英文站出中文后台,是做英文站的极好选择，但也有些用WordPress习惯了的童鞋直接就用英文版的WordPress。 最近也在国外的一个免费空间上试用英文的WordPress做英文站，后台的英文界面不大习惯，于是琢磨着改中文后台了！ WordPress的语言文件存在wp-content/languages目录下，而英文版的WordPress默认没有这个languages文件夹的，那么我们就在wp-content目录下面新建一个languages文件夹。 接着就是把WordPress中文语言包上传到languages目录。什么？不知道去哪里弄中文语言包？去找个中文版的WordPress，在它的languages目录下就是中文语言包！分别是zh_CN.mo，zh_CN.po，zh_CN.php这三个文件。 然后修改WordPress根目录下的wp-config.php。找到 define(&#34;WPLANG&#34;, &#34;&#34;);&#160;&#160; 复制代码改成 define(&#34;WPLANG&#34;, &#34;zh_CN&#34;);//注意大小写。 不出现什么意外的话，刷新英文后台，是不是变成熟悉的中文界面啦？]]></description>
			<content:encoded><![CDATA[<p>很多做网络的童鞋因为国内的广告单价很低，转去做单价高的英文站，DEDE等CMS也针对英文站出中文后台,是做英文站的极好选择，但也有些用WordPress习惯了的童鞋直接就用英文版的WordPress。</p>
<p>最近也在国外的一个免费空间上试用英文的WordPress做英文站，后台的英文界面不大习惯，于是琢磨着改中文后台了！</p>
<ol>
<li>WordPress的语言文件存在wp-content/languages目录下，而英文版的WordPress默认没有这个languages文件夹的，那么我们就在wp-content目录下面新建一个languages文件夹。 </li>
<li>接着就是把WordPress中文语言包上传到languages目录。什么？不知道去哪里弄中文语言包？去找个中文版的WordPress，在它的languages目录下就是中文语言包！分别是zh_CN.mo，zh_CN.po，zh_CN.php这三个文件。 </li>
<li>然后修改WordPress根目录下的wp-config.php。找到      <br />define(&quot;WPLANG&quot;, &quot;&quot;);&#160;&#160; <br />复制代码改成       <br />define(&quot;WPLANG&quot;, &quot;zh_CN&quot;);//注意大小写。 </li>
<li>不出现什么意外的话，刷新英文后台，是不是变成熟悉的中文界面啦？</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.huafei117.com/2010/01/26/%e6%80%8e%e4%b9%88%e6%8a%8a%e8%8b%b1%e6%96%87%e7%89%88wordpress%e5%90%8e%e5%8f%b0%e8%ae%be%e7%bd%ae%e6%88%90%e4%b8%ad%e6%96%87/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

