<?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; Wordpress</title>
	<atom:link href="http://www.happyet.org/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.happyet.org</link>
	<description>自娱自乐，不亦乐乎!</description>
	<lastBuildDate>Sun, 29 Jan 2012 10:01:05 +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>WPtouch插件—手机版wp主题</title>
		<link>http://www.happyet.org/679.html</link>
		<comments>http://www.happyet.org/679.html#comments</comments>
		<pubDate>Wed, 28 Sep 2011 02:44:31 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[wptouch]]></category>
		<category><![CDATA[手机主题]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=679</guid>
		<description><![CDATA[以前用装过一个WP-T-Wap插件，给某个文件夹绑定给域名后，用手机访问该域名就会有手机版的wordpress博客，后来搬了几次空间后因为懒得去修改设置和绑定域名，于是就没再用了，刚在mg12博客上看到介绍这个wptouch插件，装起来试了一下，效果非常满意。 如果你用iphone或者android系统手机访问我的博客，你会发现博客是下面这个样子： 装了这个插件后不用另外绑定域名到某文件夹，只要用手机输入博客地址自动判断后直接打开手机版主题。WPtouch 支持 iPod, iPhone, iPad, Android, 黑莓, Palm OS 等常用的触摸设备浏览器. 而且强大如一个网站管理工具, 免费版就可以进行一些常规的页面修改, 如选择是否显示文章 Tags, 分类, 作者信息, view more 链接, 菜单管理, 搜索, 分享按钮等常规的功能. WPtouch Pro 版貌似很犀利, 可以自定义主题, 管理广告, 还支持平板电脑界面。 插件地址：http://wordpress.org/extend/plugins/wptouch/ 赶紧去试一下。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="非插件wp标题个性化字体图片显示" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F381.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271394.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">非插件wp标题个性化字体图片显示</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wp主题切换功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F392.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271369.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wp主题切换功能</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自用简洁主题分享" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F367.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271401.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自用简洁主题分享</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="object-cache缓存与wp-postviews插件的悲剧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F617.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">object-cache缓存与wp-postviews插件的悲剧</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="无觅文章插件有新动作" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F614.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5972717.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">无觅文章插件有新动作</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>以前用装过一个WP-T-Wap插件，给某个文件夹绑定给域名后，用手机访问该域名就会有手机版的wordpress博客，后来搬了几次空间后因为懒得去修改设置和绑定域名，于是就没再用了，刚在mg12博客上看到介绍这个wptouch插件，装起来试了一下，效果非常满意。</p>
<p>如果你用iphone或者android系统手机访问我的博客，你会发现博客是下面这个样子：</p>
<p><a href="http://www.happyet.org/wp-content/uploads/2011/09/wp-touch.jpg"><img src="http://www.happyet.org/wp-content/uploads/2011/09/wp-touch-240x400.jpg" alt="wptouch插件" title="wp-touch" width="240" height="400" class="aligncenter size-medium wp-image-680" /></a></p>
<p>装了这个插件后不用另外绑定域名到某文件夹，只要用手机输入博客地址自动判断后直接打开手机版主题。WPtouch 支持 iPod, iPhone, iPad, Android, 黑莓, Palm OS 等常用的触摸设备浏览器. 而且强大如一个网站管理工具, 免费版就可以进行一些常规的页面修改, 如选择是否显示文章 Tags, 分类, 作者信息, view more 链接, 菜单管理, 搜索, 分享按钮等常规的功能. WPtouch Pro 版貌似很犀利, 可以自定义主题, 管理广告, 还支持平板电脑界面。</p>
<p>插件地址：http://wordpress.org/extend/plugins/wptouch/ 赶紧去试一下。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="非插件wp标题个性化字体图片显示" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F381.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271394.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">非插件wp标题个性化字体图片显示</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wp主题切换功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F392.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271369.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wp主题切换功能</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自用简洁主题分享" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F367.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271401.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自用简洁主题分享</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="object-cache缓存与wp-postviews插件的悲剧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F617.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">object-cache缓存与wp-postviews插件的悲剧</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="无觅文章插件有新动作" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F614.html&from=http%3A%2F%2Fwww.happyet.org%2F679.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5972717.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">无觅文章插件有新动作</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/679.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>禁用wordpress3.0以后版本自动保存和修订功能的方法</title>
		<link>http://www.happyet.org/650.html</link>
		<comments>http://www.happyet.org/650.html#comments</comments>
		<pubDate>Sat, 23 Jul 2011 12:38:43 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[修订]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[禁用]]></category>
		<category><![CDATA[自动保存]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=650</guid>
		<description><![CDATA[升级wordpress3.0以后，发现原来的的禁用自动保存和修订的方法没有效果了，每次动一下文章打开wp-cleaner就发现自动保存了起码一两篇的东西。升级3.2.1后用了木木同学推荐的一个超级开关（英文名称叫什么忘记了）插件，发现仍然没有效果，这会无聊搜索了下，网络上有解决的方法，测试了下，好像有用，分享一下。 1、在 wp-config.php 中添加以下两行代码： 1 2 define&#40;'WP_POST_REVISIONS', false&#41;; define&#40;'AUTOSAVE_INTERVAL', false&#41;; 2、找到wp-admin\post-new.php和wp-admin\post.php文件，把代码wp_enqueue_script('autosave');注释掉； 3、找到wp-admin\includes\post.php文件，在代码if ( $create_in_db ) {前面添加代码：$create_in_db = false;，即让该判断永远为否。 大功告成！ 该手动方法修改后，在以后的wp升级中除了wp-config.php文件不用修改话，其他都要重新修改一遍，直到wordpress升级到不再适用此方法为止。 方法转自：http://seoblog.fen-xiang.com/wordpress-tips/wordpress-revision/195.html 3.2.1问题 wordpress3.2.1修改后可能在发布博客的时候会提示没有权限修改文章，把上面的第三点去掉就好了，好像一样可以禁用。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="禁用wp自动保存与修订历史非插件版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F245.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/01/20/2213115.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">禁用wp自动保存与修订历史非插件版</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress升级3.2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F637.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/07/05/16246808.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress升级3.2</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 3.0五大新特征" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F439.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271231.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0五大新特征</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="自动显示博客版权的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F396.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271364.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">自动显示博客版权的方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress3.1正式版「Reinhardt」和新增的十项功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F566.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/25/2920104.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress3.1正式版「Reinhardt」和新增的十项功能</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>升级wordpress3.0以后，发现原来的的<a href="http://www.happyet.org/245.html" target="_blank">禁用自动保存和修订的方法</a>没有效果了，每次动一下文章打开wp-cleaner就发现自动保存了起码一两篇的东西。升级3.2.1后用了木木同学推荐的一个超级开关（英文名称叫什么忘记了）插件，发现仍然没有效果，这会无聊搜索了下，网络上有解决的方法，测试了下，好像有用，分享一下。</p>
<p>1、在 wp-config.php 中添加以下两行代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_POST_REVISIONS'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AUTOSAVE_INTERVAL'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>2、找到wp-admin\post-new.php和wp-admin\post.php文件，把代码<code>wp_enqueue_script('autosave');</code>注释掉；</p>
<p>3、找到wp-admin\includes\post.php文件，在代码<code>if ( $create_in_db ) {</code><strong>前面</strong>添加代码：<code>$create_in_db = false;</code>，即让该判断永远为否。</p>
<p>大功告成！</p>
<p>该手动方法修改后，在以后的wp升级中除了wp-config.php文件不用修改话，其他都要重新修改一遍，直到wordpress升级到不再适用此方法为止。</p>
<p>方法转自：http://seoblog.fen-xiang.com/wordpress-tips/wordpress-revision/195.html</p>
<h4>3.2.1问题</h4>
<p>wordpress3.2.1修改后可能在发布博客的时候会提示没有权限修改文章，把上面的第三点去掉就好了，好像一样可以禁用。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="禁用wp自动保存与修订历史非插件版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F245.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/01/20/2213115.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">禁用wp自动保存与修订历史非插件版</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress升级3.2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F637.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/07/05/16246808.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress升级3.2</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 3.0五大新特征" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F439.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271231.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0五大新特征</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="自动显示博客版权的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F396.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271364.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">自动显示博客版权的方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress3.1正式版「Reinhardt」和新增的十项功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F566.html&from=http%3A%2F%2Fwww.happyet.org%2F650.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/25/2920104.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress3.1正式版「Reinhardt」和新增的十项功能</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/650.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress升级3.2</title>
		<link>http://www.happyet.org/637.html</link>
		<comments>http://www.happyet.org/637.html#comments</comments>
		<pubDate>Tue, 05 Jul 2011 09:36:57 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress3.2]]></category>
		<category><![CDATA[后台]]></category>
		<category><![CDATA[样式]]></category>
		<category><![CDATA[速度]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=637</guid>
		<description><![CDATA[WordPress又升级了！ 和Wordpress比起来，Typecho简直就像没人管的孩子，人家刷刷的往上升级，她还停留在2010年10月25日的官方新版开发计划。——只是突然想到，做个比较，没有什么特别的感情色彩，一定要说有，那就是感慨wp升级的实在太快了。 不过我看到后台提示后，到官方cn.wordpress.org去看了一下介绍——一个视频——说是400多处修改，但是我不知道都修改了什么。视频里提到后台样式变了，速度提升了，于是我立马就去升级了。 后台样式的改变确实很大，可能以前的看太久了喜新厌旧，反正新的后台看着就是舒服。 编辑文章还可以全屏显示，而且很华丽，有鼠标效果。好像最近全屏编辑框是一个流行趋势。 关于新版的速度，前台没有特殊的感觉，后台的速度确实感觉快了好多，不过后台速度快了的原因很新版本有没有关系还不能确定，因为前段时间原来的空间不知道什么原因给蓝冰换了，换成现在这个空间的速度明显比原来的快好多；然后，后来公司换路由器，说是从原来10m的换成100m的；所以原因很多，不知道和新版本有没有关系。 不过，反正速度是明显感觉快了。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="wordpress升级2.8完毕。" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F226.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271499.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress升级2.8完毕。</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress more标签使用技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F74.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271550.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress more标签使用技巧</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress的自定义域" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F272.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/08/14/22741967.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的自定义域</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 3.0五大新特征" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F439.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271231.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0五大新特征</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress无插件添加表情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F243.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271339.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress无插件添加表情</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>WordPress又升级了！</p>
<p>和Wordpress比起来，Typecho简直就像没人管的孩子，人家刷刷的往上升级，她还停留在2010年10月25日的官方新版开发计划。——只是突然想到，做个比较，没有什么特别的感情色彩，一定要说有，那就是感慨wp升级的实在太快了。</p>
<p>不过我看到后台提示后，到官方cn.wordpress.org去看了一下介绍——一个视频——说是400多处修改，但是我不知道都修改了什么。视频里提到后台样式变了，速度提升了，于是我立马就去升级了。</p>
<p>后台样式的改变确实很大，可能以前的看太久了喜新厌旧，反正新的后台看着就是舒服。</p>
<p><a href="http://www.happyet.org/wp-content/uploads/2011/07/admin1.jpg"><img src="http://www.happyet.org/wp-content/uploads/2011/07/admin1-400x273.jpg" alt="" title="admin1" width="400" height="273" class="aligncenter size-medium wp-image-638" /></a></p>
<p>编辑文章还可以全屏显示，而且很华丽，有鼠标效果。好像最近全屏编辑框是一个流行趋势。</p>
<p><a href="http://www.happyet.org/wp-content/uploads/2011/07/admin2.jpg"><img src="http://www.happyet.org/wp-content/uploads/2011/07/admin2-400x214.jpg" alt="" title="admin2" width="400" height="214" class="aligncenter size-medium wp-image-639" /></a></p>
<p>关于新版的速度，前台没有特殊的感觉，后台的速度确实感觉快了好多，不过后台速度快了的原因很新版本有没有关系还不能确定，因为前段时间原来的空间不知道什么原因给蓝冰换了，换成现在这个空间的速度明显比原来的快好多；然后，后来公司换路由器，说是从原来10m的换成100m的；所以原因很多，不知道和新版本有没有关系。</p>
<p>不过，反正速度是明显感觉快了。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="wordpress升级2.8完毕。" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F226.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271499.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress升级2.8完毕。</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress more标签使用技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F74.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271550.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress more标签使用技巧</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress的自定义域" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F272.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/08/14/22741967.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的自定义域</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 3.0五大新特征" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F439.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271231.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0五大新特征</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress无插件添加表情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F243.html&from=http%3A%2F%2Fwww.happyet.org%2F637.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271339.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress无插件添加表情</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/637.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>wordpress人性化时间优化显示</title>
		<link>http://www.happyet.org/625.html</link>
		<comments>http://www.happyet.org/625.html#comments</comments>
		<pubDate>Wed, 27 Apr 2011 08:49:57 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[时间显示]]></category>
		<category><![CDATA[时间格式]]></category>
		<category><![CDATA[相对时间]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=625</guid>
		<description><![CDATA[之间我从老外转了篇文章，《换个方式显示日志发表时间和回复时间》，并且经过万戈同学加工后，可以让wordpress像论坛那样在24小时内显示相对的时间，24小时后，按默认时间显示。可是好像是从wordpress3.0开始，在模板中添加代码echo human_time_diff(get_the_time('U'), current_time('timestamp')) . '前';就会自动显示人性化的相对时间，但是，这个人性化时间依然不受控制，如果是100天以前的，仍然显示100天以前，这就叫过犹不及，反而不人性化了。 想要让24小时以外的文章和评论时间保持原有的年月日格式，可以通过在function.php文件中加入以下代码来实现： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 function time_diff&#40; $time_type &#41;&#123; switch&#40; $time_type &#41;&#123; case 'comment': //如果是评论的时间 $time_diff = current_time&#40;'timestamp'&#41; - get_comment_time&#40;'U'&#41;; if&#40; $time_diff &#60;= 86400 &#41; //24 小时之内 echo human_time_diff&#40;get_comment_time&#40;'U'&#41;, current_time&#40;'timestamp'&#41;&#41;.' 之前'; //显示格式 OOXX 之前 else printf&#40;__&#40;'%1$s [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="换个方式显示日志发表时间和回复时间" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F357.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">换个方式显示日志发表时间和回复时间</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="非插件wp标题个性化字体图片显示" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F381.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271394.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">非插件wp标题个性化字体图片显示</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="自动显示博客版权的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F396.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271364.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">自动显示博客版权的方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="首页自动调用日志第一张图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F387.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271373.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">首页自动调用日志第一张图片</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress显示当前分类别名、文章别名的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F612.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/06/28572010.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress显示当前分类别名、文章别名的方法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>之间我从老外转了篇文章，<a href="http://www.happyet.org/357.html">《换个方式显示日志发表时间和回复时间》</a>，并且经过万戈同学加工后，可以让wordpress像论坛那样在24小时内显示相对的时间，24小时后，按默认时间显示。可是好像是从wordpress3.0开始，在模板中添加代码<code>echo human_time_diff(get_the_time('U'), current_time('timestamp')) . '前';</code>就会自动显示人性化的相对时间，但是，这个人性化时间依然不受控制，如果是100天以前的，仍然显示100天以前，这就叫过犹不及，反而不人性化了。</p>
<p>想要让24小时以外的文章和评论时间保持原有的年月日格式，可以通过在function.php文件中加入以下代码来实现：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> time_diff<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$time_type</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$time_type</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'comment'</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">//如果是评论的时间</span>
<span style="color: #000088;">$time_diff</span> <span style="color: #339933;">=</span> current_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timestamp'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> get_comment_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'U'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$time_diff</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">86400</span> <span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//24 小时之内</span>
<span style="color: #b1b100;">echo</span> human_time_diff<span style="color: #009900;">&#40;</span>get_comment_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'U'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> current_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timestamp'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' 之前'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//显示格式 OOXX 之前</span>
<span style="color: #b1b100;">else</span>
<span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%1$s at %2$s'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_comment_date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_comment_time<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//显示格式 X年X月X日 OOXX 时</span>
<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//如果是日志的时间</span>
<span style="color: #000088;">$time_diff</span> <span style="color: #339933;">=</span> current_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timestamp'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> get_the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'U'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$time_diff</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">86400</span> <span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">echo</span> human_time_diff<span style="color: #009900;">&#40;</span>get_the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'U'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> current_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timestamp'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span>
the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y.m.d'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>然后再替换你的文章和评论的时间显示函数</p>
<p>以下是显示评论时间函数代码：</p>
<p><code>time_diff( $time_type = 'comment' );</code></p>
<p>以下是显示文章Post或则页面page的时间代码：</p>
<p><code>time_diff( $time_type = 'post' );</code></p>
<p>这样就完美了。</p>
<p>文章代码转自：http://acefav.com/2011/01/20/013502.html</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="换个方式显示日志发表时间和回复时间" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F357.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">换个方式显示日志发表时间和回复时间</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="非插件wp标题个性化字体图片显示" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F381.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271394.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">非插件wp标题个性化字体图片显示</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="自动显示博客版权的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F396.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271364.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">自动显示博客版权的方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="首页自动调用日志第一张图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F387.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271373.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">首页自动调用日志第一张图片</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress显示当前分类别名、文章别名的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F612.html&from=http%3A%2F%2Fwww.happyet.org%2F625.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/06/28572010.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress显示当前分类别名、文章别名的方法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/625.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>自定义wordpress首页的方法</title>
		<link>http://www.happyet.org/623.html</link>
		<comments>http://www.happyet.org/623.html#comments</comments>
		<pubDate>Sat, 23 Apr 2011 12:37:40 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[列表页]]></category>
		<category><![CDATA[页面]]></category>
		<category><![CDATA[首页]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=623</guid>
		<description><![CDATA[以前我给自己做了一个限制高度的日记本样式的博客主题，为了让它更像个日记本我就给它做了个单独的首页。但是因为技术的原因，我一直没办法让博客在其他页面实现原默认首页那种列表翻页的效果，最后想了个下下下策：在wordpress的根目录下做了个index.html文件，然后在这个首页搞个链接连到默认的index.php。本地测试时候一切正常，我心里很愉快——高手不要笑话我！ 悲剧发生在把主题上传到空间后，wordpress根本不认那个index.html，而且访问index.php偶尔也会出错，问过蓝冰，他说linux空间就是这样子，无药可救，后来只好放弃。 前戏有点太长了，现在开始操抄关键内容。。。 方法一：后台阅读选项直接设置 原来我以前一直就在后台【阅读选项】那选择了作为【首页】的页面，而【文章页】根本没有选择（可能是【文章页】这几个字让我和首页联系不到一起，所以碰都没去碰），一直想着通过建立新页面来实现这个功能，又因为没有技术而一直无法成功，搜索也搜不到方法（可能方法太简单了，许多人都不屑介绍吧-_-&#124;&#124;&#124;），刚刚在无冷的博客看到自定义博客首页这篇文章，再结合zww文章后面的qiqiboy的评论，在自己博客上试了一下才发现，在【阅读选项】那选择了作为【首页】的页面后，只要后台【阅读选项】那指定某个页面为【文章页】，这个页面会自动应用index模板。差一步就差了一个世界啊！！！ 方法二：zww的新建页面方法 这个方法也就是我以前一直想通过新建页面来实现的方法，省了上面第一个方法的第二步，不用在后台【阅读选项】设置【文章页】，而只要设置【首页】后，在后台【页面】处【添加新页面】然后套用下面介绍的方法建立的页面模板即可。 方法二相对于方法一虽然有点……多此一举（没有贬义的意思啊，实在是词穷），但两种方法并不矛盾，而且这也是当初我到处找不到的技术活，所以一并转了。原文在这里：某个页面实现博客“原首页”的方法，原来想新建个页面实现首页功能还需要下面最关键的几行代码。 要让复制改名后的index.php列表页在页面实现原首页功能，得在代码： 1 &#60;?php if &#40;have_posts&#40;&#41;&#41; : while &#40;have_posts&#40;&#41;&#41; : the_post&#40;&#41;; ?&#62; 前面加入如下php代码： 1 2 3 4 5 6 &#60;?php $pageblogmore = $more; $more = 0; //保证more截断有效 $page = &#40;get_query_var&#40;'paged'&#41;&#41; ? get_query_var&#40;'paged'&#41; : 1; //获取当前页 query_posts&#40;'showposts='.get_option&#40;'posts_per_page'&#41;.'&#38;paged='.$page&#41;; ?&#62; 另外，zww同学还说了，将复制改名后的index.php文件命名为page-blog.php，WP后台建立别名为“blog”的页面将会自动调用page-blog.php文件。不然，还得乖乖的在复制改名后的index.php开头的地方加入自定义页面模板的代码，这样建立新页面的时候才能找的到这个页面。 OK，我又抄了一篇了，这篇非操抄不可啊。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="非插件实现 WordPress 分页导航" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F386.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271377.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">非插件实现 WordPress 分页导航</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在wordpress列表页（首页）显示各文章评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F603.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5242170.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在wordpress列表页（首页）显示各文章评论</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress中如何对长篇文章进行分页" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F241.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271343.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress中如何对长篇文章进行分页</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress博客内容的首行缩进代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F7.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/02/10706130.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress博客内容的首行缩进代码</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自用简洁主题分享" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F367.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271401.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自用简洁主题分享</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>以前我给自己做了一个限制高度的<a href="http://www.happyet.org/570.html">日记本样式</a>的博客主题，为了让它更像个日记本我就给它做了个单独的首页。但是因为技术的原因，我一直没办法让博客在其他页面实现原默认首页那种列表翻页的效果，最后想了个下下下策：在wordpress的根目录下做了个index.html文件，然后在这个首页搞个链接连到默认的index.php。本地测试时候一切正常，我心里很愉快——高手不要笑话我！</p>
<p>悲剧发生在把主题上传到空间后，wordpress根本不认那个index.html，而且访问index.php偶尔也会出错，问过蓝冰，他说linux空间就是这样子，无药可救，后来只好放弃。</p>
<p>前戏有点太长了，现在开始<del>操</del>抄关键内容。。。</p>
<h3>方法一：后台阅读选项直接设置</h3>
<p>原来我以前一直就在后台【阅读选项】那选择了作为【首页】的页面，而【文章页】根本没有选择（可能是【文章页】这几个字让我和首页联系不到一起，所以碰都没去碰），一直想着通过建立新页面来实现这个功能，又因为没有技术而一直无法成功，搜索也搜不到方法（可能方法太简单了，许多人都不屑介绍吧-_-|||），刚刚在无冷的博客看到<a href="http://meapo.net/custom-blogs-home-page/" target="_blank">自定义博客首页</a>这篇文章，再结合zww文章后面的qiqiboy的评论，在自己博客上试了一下才发现，在【阅读选项】那选择了作为【首页】的页面后，<font color="red"><strong>只要后台【阅读选项】那指定某个页面为【文章页】，这个页面会自动应用index模板。</strong></font>差一步就差了一个世界啊！！！</p>
<h3>方法二：zww的新建页面方法</h3>
<p>这个方法也就是我以前一直想通过新建页面来实现的方法，省了上面第一个方法的第二步，<strong>不用</strong>在后台【阅读选项】设置【文章页】，而只要设置【首页】后，在后台【页面】处【添加新页面】然后套用下面介绍的方法建立的页面模板即可。</p>
<p>方法二相对于方法一虽然有点……多此一举（没有贬义的意思啊，实在是词穷），但两种方法并不矛盾，而且这也是当初我到处找不到的技术活，所以一并转了。原文在这里：<a href="http://zww.me/archives/25444" target="_blank">某个页面实现博客“原首页”的方法</a>，原来想新建个页面实现首页功能还需要下面最关键的几行代码。</p>
<p>要让复制改名后的index.php列表页在页面实现原首页功能，得在代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><strong>前面加入如下php代码：</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$pageblogmore</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//保证more截断有效</span>
<span style="color: #000088;">$page</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> ? get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//获取当前页</span>
query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'showposts='</span><span style="color: #339933;">.</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'posts_per_page'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;paged='</span><span style="color: #339933;">.</span><span style="color: #000088;">$page</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>另外，zww同学还说了，将复制改名后的index.php文件命名为page-blog.php，WP后台建立别名为“blog”的页面将会自动调用page-blog.php文件。不然，还得乖乖的在复制改名后的index.php开头的地方加入自定义页面模板的代码，这样建立新页面的时候才能找的到这个页面。</p>
<p>OK，我又抄了一篇了，这篇非<del>操</del>抄不可啊。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="非插件实现 WordPress 分页导航" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F386.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271377.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">非插件实现 WordPress 分页导航</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在wordpress列表页（首页）显示各文章评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F603.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5242170.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在wordpress列表页（首页）显示各文章评论</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress中如何对长篇文章进行分页" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F241.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271343.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress中如何对长篇文章进行分页</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress博客内容的首行缩进代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F7.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/02/10706130.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress博客内容的首行缩进代码</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自用简洁主题分享" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F367.html&from=http%3A%2F%2Fwww.happyet.org%2F623.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271401.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自用简洁主题分享</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/623.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>读者墙血条之jq版本和php版本</title>
		<link>http://www.happyet.org/621.html</link>
		<comments>http://www.happyet.org/621.html#comments</comments>
		<pubDate>Fri, 22 Apr 2011 10:27:13 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[php版]]></category>
		<category><![CDATA[血条]]></category>
		<category><![CDATA[读者墙]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=621</guid>
		<description><![CDATA[WordPress读者墙应该没人会陌生，简单的概括就是把那个avatar头像根据评论次数降序的排列出来，很多人用这东西。不过在头像下面加一个血条用的人估计不多，这是我在无冷博客上看到的，那个排列出来确实挺壮观的。 关于读者墙血条jQ版本见无冷博客：http://meapo.net/add-readerswall-again/ 下面介绍的是php版本，这个版本是我在冰剑博客上看到《水榜之血条》的Typecho版本php代码上演化而来的，在Wordpress上测试可用，非常感谢冰剑同学的分享精神。 先来看看我的成果： 下面是代码： php部分，我没有做成放在functions.php文件了，而是哪里需要复制到哪里，基本上就一个页面需要，看着越来越长的functions文件我实在是下不了手啊： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 &#60;?php $query=&#34;SELECT COUNT(comment_ID) AS cnt, comment_author, comment_author_url, comment_author_email FROM (SELECT * FROM $wpdb-&#62;comments LEFT OUTER JOIN $wpdb-&#62;posts ON ($wpdb-&#62;posts.ID=$wpdb-&#62;comments.comment_post_ID) WHERE comment_date &#62; date_sub( NOW(), INTERVAL 24 MONTH ) AND user_id='0' AND comment_author_email != [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="去除wordpress3.0以上版本的管理工具条" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F618.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/21/6108746.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">去除wordpress3.0以上版本的管理工具条</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTC安卓手机使用自带VPN直接翻墙方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F656.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/08/01/20382639.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTC安卓手机使用自带VPN直接翻墙方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="电脑版广告发票Excel打印模板下载" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F347.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271258.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">电脑版广告发票Excel打印模板下载</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress3.1正式版「Reinhardt」和新增的十项功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F566.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/25/2920104.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress3.1正式版「Reinhardt」和新增的十项功能</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用上vpn和ssh" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F655.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用上vpn和ssh</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>WordPress读者墙应该没人会陌生，简单的概括就是把那个avatar头像根据评论次数降序的排列出来，很多人用这东西。不过在头像下面加一个血条用的人估计不多，这是我在无冷博客上看到的，那个排列出来确实挺壮观的。</p>
<p>关于读者墙血条jQ版本见无冷博客：<a href="http://meapo.net/add-readerswall-again/" target="_blank">http://meapo.net/add-readerswall-again/</a></p>
<p>下面介绍的是php版本，这个版本是我在冰剑博客上看到<a href="http://www.binjoo.net/2011/04/most-active-life" target="_blank">《水榜之血条》</a>的Typecho版本php代码上演化而来的，在Wordpress上测试可用，非常感谢冰剑同学的分享精神。</p>
<p>先来看看我的成果：</p>
<p><a href="http://www.happyet.org/wp-content/uploads/2011/04/blood.jpg"><img src="http://www.happyet.org/wp-content/uploads/2011/04/blood-400x55.jpg" alt="血条" title="blood" width="400" height="55" class="aligncenter size-medium wp-image-622" /></a></p>
<p><strong>下面是代码：</strong></p>
<p>php部分，我没有做成放在functions.php文件了，而是哪里需要复制到哪里，基本上就一个页面需要，看着越来越长的functions文件我实在是下不了手啊：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #000088;">$query</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;SELECT COUNT(comment_ID) AS cnt, comment_author, comment_author_url, comment_author_email FROM (SELECT * FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;comments</span> LEFT OUTER JOIN <span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span> ON (<span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span>.ID=<span style="color: #006699; font-weight: bold;">$wpdb-&gt;comments</span>.comment_post_ID) WHERE comment_date &gt; date_sub( NOW(), INTERVAL 24 MONTH ) AND user_id='0' AND comment_author_email != '这里填admin的email，不显示该email的头像' AND post_password='' AND comment_approved='1' AND comment_type='') AS tempcmt GROUP BY comment_author_email ORDER BY cnt DESC LIMIT 40&quot;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//最后的这个40是选取多少个头像，我一次让它显示40个。</span>
    <span style="color: #000088;">$wall</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$maxNum</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wall</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cnt</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$wall</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comment</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$width</span> <span style="color: #339933;">=</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">40</span> <span style="color: #339933;">/</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$maxNum</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cnt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//这个40是我设置头像的宽度，和下面&amp;size=40里的40一个概念，如果你头像宽度32，这里就是32了。</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_url</span> <span style="color: #009900;">&#41;</span> 
        <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_url</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">else</span> <span style="color: #000088;">$url</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;li title='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; (&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cnt</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;次重要讲话)' num='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cnt</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;&lt;a href='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' target='_blank'&gt;&lt;img src='http://www.gravatar.com/avatar.php?gravatar_id=&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;size=40&amp;d=identicon&amp;r=G' alt='&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; (&quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cnt</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;层楼)' /&gt;&lt;/a&gt;&lt;div class='active-bg'&gt;&lt;div class='active-degree' style='width:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;px'&gt;&lt;/div&gt;&lt;/li&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$tmp</span><span style="color: #339933;">;</span> 
     <span style="color: #009900;">&#125;</span>
    <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;div id='readerswall'&gt;&lt;h2&gt;Most Active Friends&lt;/h2&gt;&lt;ul class='gavaimg'&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$output</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/ul&gt;&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$output</span> <span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>然后是CSS，css基本无变化，我只是把他的蓝色魔法血条改成了红色的真正的blood：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#readerswall</span> li<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">46px</span><span style="color: #00AA00;">;</span>margin<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>list-style<span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>border<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#DFDFDF</span><span style="color: #00AA00;">;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>-khtml-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#readerswall</span> img<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>display<span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#readerswall</span> <span style="color: #6666ff;">.active-bg</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>_font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>margin-<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>background<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#DFDFDF</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#readerswall</span> <span style="color: #6666ff;">.active-degree</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>width<span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>_font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>无冷的这段jq就不用了（抄下来以备后用）：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="jquery" style="font-family:monospace;"><span style="color: #000066;">$</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> imgNum<span style="color: #339933;">=</span><span style="color: #000066;">$</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#readerswall li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">//测图片总数，用来循环</span>
	<span style="color: #003366; font-weight: bold;">var</span> maxNum<span style="color: #339933;">=</span><span style="color: #000066;">$</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#readerswall li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">eq</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'num'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">//测出最多的留言数</span>
	<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i <span style="color: #339933;">&lt;=</span> imgNum<span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> num<span style="color: #339933;">=</span><span style="color: #000066;">$</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#readerswall li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">eq</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span>.<span style="color: #000066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'num'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">//测出每个人的评论数</span>
		<span style="color: #003366; font-weight: bold;">var</span> t<span style="color: #339933;">=</span>num<span style="color: #339933;">/</span>maxNum<span style="color: #339933;">*</span><span style="color: #CC0000;">36</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">//评论数对应血条的宽度</span>
		<span style="color: #000066;">$</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#readerswall  .active-degree&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">eq</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span>.<span style="color: #000066;">width</span><span style="color: #009900;">&#40;</span>t<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">//控制血条宽度</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>大功告成，演示看这里：<a href="http://lms.im/friends-say">http://lms.im/friends-say</a></p>
<h4>Update 2011-04-23</h4>
<p>要是能再加一条根据回访次数来做另一个血条那就更好玩了，红的蓝的就齐了。想想而已，没这个技术啊。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="去除wordpress3.0以上版本的管理工具条" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F618.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/21/6108746.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">去除wordpress3.0以上版本的管理工具条</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTC安卓手机使用自带VPN直接翻墙方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F656.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/08/01/20382639.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTC安卓手机使用自带VPN直接翻墙方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="电脑版广告发票Excel打印模板下载" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F347.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271258.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">电脑版广告发票Excel打印模板下载</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress3.1正式版「Reinhardt」和新增的十项功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F566.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/25/2920104.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress3.1正式版「Reinhardt」和新增的十项功能</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用上vpn和ssh" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F655.html&from=http%3A%2F%2Fwww.happyet.org%2F621.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用上vpn和ssh</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/621.html/feed</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>去除wordpress3.0以上版本的管理工具条</title>
		<link>http://www.happyet.org/618.html</link>
		<comments>http://www.happyet.org/618.html#comments</comments>
		<pubDate>Thu, 21 Apr 2011 06:08:03 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[去除]]></category>
		<category><![CDATA[取消]]></category>
		<category><![CDATA[管理工具条]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=618</guid>
		<description><![CDATA[呃~怎么说呢…… 其实我只是在修改自己博客email的时候无意中发现的这个wordpress自带的功能。 自从wordpress版本上了3.0后登录博客就会在顶部出现一条黑黑的、长长的、固定的管理工具条，虽然刚开始时觉得不习惯，也曾想过怎么把它给删除了，可是一直没有付诸行动，久而久之好像也没什么特别的了。 可是，就是从来没想过wordpress后台有开关这个管理工具栏的选项，今天偶然发现，而且关的还那么彻底，真实习惯思维害死人啊。 如下图红色框框内的部分，这个东西在后台的用户选项下的我的资料里面，这地方，谁没事会去看呢？ 你可以选择在前台或者后台或者都不显示，只要点击打勾或者去掉勾勾就ok了。 另外，里面还有一个启用评论审核键盘快捷键的选项，按字面意思不知道是不是可以直接用键盘快捷键审核评论，不用到后台。有一个说明的链接指向http://codex.wordpress.org/Keyboard_Shortcuts，哥哥我英文差不知道啥用途，有谁给解释解释啊！<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="A-Z 26条WordPress.htaccess技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F240.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271489.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">A-Z 26条WordPress.htaccess技巧</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 3.0五大新特征" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F439.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271231.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0五大新特征</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress升级3.2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F637.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/07/05/16246808.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress升级3.2</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress3.1正式版「Reinhardt」和新增的十项功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F566.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/25/2920104.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress3.1正式版「Reinhardt」和新增的十项功能</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自用简洁主题分享" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F367.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271401.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自用简洁主题分享</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>呃~怎么说呢……</p>
<p>其实我只是在修改自己博客email的时候无意中发现的这个wordpress自带的功能。</p>
<p>自从wordpress版本上了3.0后登录博客就会在顶部出现一条黑黑的、长长的、固定的管理工具条，虽然刚开始时觉得不习惯，也曾想过怎么把它给删除了，可是一直没有付诸行动，久而久之好像也没什么特别的了。</p>
<p>可是，就是从来没想过wordpress后台有开关这个管理工具栏的选项，今天偶然发现，而且关的还那么彻底，真实习惯思维害死人啊。</p>
<p>如下图红色框框内的部分，这个东西在后台的<strong>用户</strong>选项下的<strong>我的资料</strong>里面，这地方，谁没事会去看呢？</p>
<p>你可以选择在前台或者后台或者都不显示，只要点击打勾或者去掉勾勾就ok了。</p>
<p><a href="http://www.happyet.org/wp-content/uploads/2011/04/adminbar.jpg"><img src="http://www.happyet.org/wp-content/uploads/2011/04/adminbar-400x279.jpg" alt="管理工具栏" title="adminbar" width="400" height="279" class="aligncenter size-medium wp-image-619" /></a></p>
<p>另外，里面还有一个<strong>启用评论审核键盘快捷键</strong>的选项，按字面意思不知道是不是可以直接用键盘快捷键审核评论，不用到后台。有一个说明的链接指向http://codex.wordpress.org/Keyboard_Shortcuts，哥哥我英文差不知道啥用途，有谁给解释解释啊！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="A-Z 26条WordPress.htaccess技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F240.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271489.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">A-Z 26条WordPress.htaccess技巧</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 3.0五大新特征" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F439.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271231.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0五大新特征</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress升级3.2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F637.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/07/05/16246808.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress升级3.2</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress3.1正式版「Reinhardt」和新增的十项功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F566.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/25/2920104.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress3.1正式版「Reinhardt」和新增的十项功能</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自用简洁主题分享" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F367.html&from=http%3A%2F%2Fwww.happyet.org%2F618.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271401.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自用简洁主题分享</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/618.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>object-cache缓存与wp-postviews插件的悲剧</title>
		<link>http://www.happyet.org/617.html</link>
		<comments>http://www.happyet.org/617.html#comments</comments>
		<pubDate>Wed, 20 Apr 2011 15:20:12 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[object cache]]></category>
		<category><![CDATA[postviews]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[缓存]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=617</guid>
		<description><![CDATA[我一直用willin kan介绍的这个object cache给博客设置缓存，然后用的是wp-postviews插件统计博客文章访问量，曾经willin大师说这两个东西有冲突的时候我都没有发现自己的博客有什么问题，当时用的是bluehost。 自从转到衡天这边来后，经常在发布一篇新文章后，或者在有人发布评论后，突然首页的所有postviews统计数都清零了，然后点击进入单篇博客时就出错了，只能看到这句：Fatal error: Cannot use string offset as an array in ...../public_html/wp-content/plugins/wp-postviews/wp-postviews.php on line 70。 wp-postviews.php第70行代码是：$post_views = intval($post_views['views'][0]);，我不知道这句到底哪里有问题。解决问题的方法有两个，1、手动删除缓存文件夹所有内容后就正常了；2、直接停用postviews插件，可以正常访问，但是计数就没了，而且打开插件问题依然存在。 找不到是为什么原因，我也想过会不会是文件夹权限的问题，我也修改了缓存的cache文件夹权限为755了，可是过了一阵子后还是同样出问题，晚上找小张，他给我在后台也是设置了下文件夹权限又解决了问题了，至今不知道究竟是什么问题，也不知道下次还会不会再出现，有路过的大神给指点指点，感激不尽！<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress的object-cache缓存" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F561.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/11/2646694.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的object-cache缓存</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WPtouch插件—手机版wp主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F679.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/28/8231940.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WPtouch插件—手机版wp主题</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress图片插件Thumbnails Anywhere" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F403.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/24/2916193.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress图片插件Thumbnails Anywhere</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 推荐插件分类" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F257.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/09/2627646.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 推荐插件分类</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="让你链接得瑟功能的JQ插件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F585.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5163916.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">让你链接得瑟功能的JQ插件</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>我一直用willin kan介绍的这个object cache给博客设置缓存，然后用的是wp-postviews插件统计博客文章访问量，曾经willin大师说<a href="http://kan.willin.org/?p=1334" target="_blank">这两个东西有冲突</a>的时候我都没有发现自己的博客有什么问题，当时用的是bluehost。</p>
<p>自从转到衡天这边来后，经常在发布一篇新文章后，或者在有人发布评论后，突然首页的所有postviews统计数都清零了，然后点击进入单篇博客时就出错了，只能看到这句：<code>Fatal error: Cannot use string offset as an array in ...../public_html/wp-content/plugins/wp-postviews/wp-postviews.php on line 70</code>。</p>
<p>wp-postviews.php第70行代码是：<code>$post_views = intval($post_views['views'][0]);</code>，我不知道这句到底哪里有问题。解决问题的方法有两个，1、手动删除缓存文件夹所有内容后就正常了；2、直接停用postviews插件，可以正常访问，但是计数就没了，而且打开插件问题依然存在。</p>
<p>找不到是为什么原因，我也想过会不会是文件夹权限的问题，我也修改了缓存的cache文件夹权限为755了，可是过了一阵子后还是同样出问题，晚上找小张，他给我在后台也是设置了下文件夹权限又解决了问题了，至今不知道究竟是什么问题，也不知道下次还会不会再出现，有路过的大神给指点指点，感激不尽！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress的object-cache缓存" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F561.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/11/2646694.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的object-cache缓存</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WPtouch插件—手机版wp主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F679.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/28/8231940.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WPtouch插件—手机版wp主题</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress图片插件Thumbnails Anywhere" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F403.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/24/2916193.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress图片插件Thumbnails Anywhere</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 推荐插件分类" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F257.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/09/2627646.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 推荐插件分类</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="让你链接得瑟功能的JQ插件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F585.html&from=http%3A%2F%2Fwww.happyet.org%2F617.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5163916.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">让你链接得瑟功能的JQ插件</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/617.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>无觅文章插件有新动作</title>
		<link>http://www.happyet.org/614.html</link>
		<comments>http://www.happyet.org/614.html#comments</comments>
		<pubDate>Wed, 20 Apr 2011 05:13:58 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[喜欢]]></category>
		<category><![CDATA[推荐]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[无觅]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=614</guid>
		<description><![CDATA[中午打开博客，发现文章下面多了两个按钮，一个喜欢，一个推荐，我一度以为自己进错博客了，因为我从来没装过这样的插件啊。确认完是自己的博客，右键打开页面代码一看，原来是无觅文章插件的新功能。 其实明白是无觅插件搞的鬼后，第一感觉是：博客被人强奸了。在我不知道的情况下，突然多了一个功能，不管功能好坏，总是觉得不爽的。不过在明白了这两个按钮的作用后，我表示接受。 使用方法： 在文章页面下点喜欢按钮后，再点旁边的推荐按钮，会跳出博客上和你喜欢的这篇文章相关的文章，其实也就是个相关文章的功能了。还好跳出的推荐文章是自己博客的。 必须得先有喜欢过的文章，点推荐才会有用。 设置方法： 这个插件在无觅管理系统后台的应用下，好久没登录我都不知道什么时候多了个应用，我也是第一次才发现，名字就叫喜欢&#038;推荐按钮，点进去后有三种按钮颜色可供选择。另外，应用下除了这个喜欢&#038;推荐按钮还有一个个性化推荐Widget的应用。 总体上，该功能还是可以接受的，要是在增加之前能通知一下更好。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 推荐插件分类" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F257.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/09/2627646.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 推荐插件分类</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WPtouch插件—手机版wp主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F679.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/28/8231940.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WPtouch插件—手机版wp主题</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress图片插件Thumbnails Anywhere" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F403.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/24/2916193.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress图片插件Thumbnails Anywhere</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress中如何对长篇文章进行分页" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F241.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271343.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress中如何对长篇文章进行分页</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="让你链接得瑟功能的JQ插件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F585.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5163916.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">让你链接得瑟功能的JQ插件</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>中午打开博客，发现文章下面多了两个按钮，一个喜欢，一个推荐，我一度以为自己进错博客了，因为我从来没装过这样的插件啊。确认完是自己的博客，右键打开页面代码一看，原来是无觅文章插件的新功能。</p>
<p><a href="http://www.happyet.org/wp-content/uploads/2011/04/like.jpg"><img src="http://www.happyet.org/wp-content/uploads/2011/04/like.jpg" alt="" title="like" width="170" height="49" class="aligncenter size-full wp-image-615" /></a></p>
<p>其实明白是无觅插件搞的鬼后，第一感觉是：博客被人强奸了。在我不知道的情况下，突然多了一个功能，不管功能好坏，总是觉得不爽的。不过在明白了这两个按钮的作用后，我表示接受。</p>
<h4>使用方法：</h4>
<p>在文章页面下点<strong>喜欢</strong>按钮后，再点旁边的<strong>推荐</strong>按钮，会跳出博客上和你喜欢的这篇文章相关的文章，其实也就是个相关文章的功能了。还好跳出的推荐文章是自己博客的。</p>
<p>必须得先有喜欢过的文章，点推荐才会有用。</p>
<h4>设置方法：</h4>
<p>这个插件在无觅管理系统后台的<strong>应用</strong>下，好久没登录我都不知道什么时候多了个应用，我也是第一次才发现，名字就叫<strong>喜欢&#038;推荐按钮</strong>，点进去后有三种按钮颜色可供选择。另外，应用下除了这个喜欢&#038;推荐按钮还有一个<strong>个性化推荐Widget</strong>的应用。</p>
<p>总体上，该功能还是可以接受的，要是在增加之前能通知一下更好。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 推荐插件分类" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F257.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/09/2627646.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 推荐插件分类</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WPtouch插件—手机版wp主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F679.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/28/8231940.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WPtouch插件—手机版wp主题</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress图片插件Thumbnails Anywhere" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F403.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/24/2916193.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress图片插件Thumbnails Anywhere</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress中如何对长篇文章进行分页" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F241.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271343.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress中如何对长篇文章进行分页</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="让你链接得瑟功能的JQ插件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F585.html&from=http%3A%2F%2Fwww.happyet.org%2F614.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5163916.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">让你链接得瑟功能的JQ插件</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/614.html/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>WordPress显示当前分类别名、文章别名的方法</title>
		<link>http://www.happyet.org/612.html</link>
		<comments>http://www.happyet.org/612.html#comments</comments>
		<pubDate>Mon, 18 Apr 2011 09:54:18 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[slug]]></category>
		<category><![CDATA[分类别名]]></category>
		<category><![CDATA[文章别名]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=612</guid>
		<description><![CDATA[因为不懂php，所以需要函数的时候我很少去找wordpress的codex，看着很累，又是英文，找半天，所以一般都直接google。 这次找这个显示分类别名的方法，在codex里游弋了半天没有结果，最后问谷歌，给我指了一条路到zww.me。可是很悲剧的不懂得怎么用，粘帖代码后没反应，哪个大佬给我解释解释为啥吧！ 功夫不负有心人，还是让我找到了。 这个办法是通过functions文件来实现的，先在functions文件中添加以下代码： 1 2 3 4 5 6 7 8 9 10 11 /* 获取当前文章或页面别名的函数*/ function the_slug&#40;&#41; &#123; $post_data = get_post&#40;$post-&#62;ID, ARRAY_A&#41;; $slug = $post_data&#91;'post_name'&#93;; return $slug; &#125; /* 获取当前文章所属第一个分类别名的函数*/ function the_category_slug&#40;&#41;&#123; $category = get_the_category&#40;&#41;; return &#40;$category ? $category&#91;0&#93;-&#62;slug : &#34;&#34;&#41;; &#125; 然后在需要的地方黏贴： 1 2 3 4 5 6 &#60;?php // 输出文章别名 echo [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress显示单一分类和分类下文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F410.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/21/32505081.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress显示单一分类和分类下文章</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress文章分类的横排修改方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F83.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271289.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress文章分类的横排修改方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章ID不连续的处理方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F194.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271514.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章ID不连续的处理方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress中如何对长篇文章进行分页" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F241.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271343.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress中如何对长篇文章进行分页</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在wordpress列表页（首页）显示各文章评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F603.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5242170.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在wordpress列表页（首页）显示各文章评论</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>因为不懂php，所以需要函数的时候我很少去找wordpress的codex，看着很累，又是英文，找半天，所以一般都直接google。</p>
<p>这次找这个显示分类别名的方法，在codex里游弋了半天没有结果，最后问谷歌，给我指了一条路到<a href="http://zww.me/archives/25379" target="_blank">zww.me</a>。可是很悲剧的不懂得怎么用，粘帖代码后没反应，哪个大佬给我解释解释为啥吧！</p>
<p>功夫不负有心人，还是让我找到了。</p>
<p>这个办法是通过functions文件来实现的，先在functions文件中添加以下代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/* 获取当前文章或页面别名的函数*/</span>
<span style="color: #000000; font-weight: bold;">function</span> the_slug<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$post_data</span> <span style="color: #339933;">=</span> get_post<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> ARRAY_A<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$slug</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post_data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$slug</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">/* 获取当前文章所属第一个分类别名的函数*/</span>
<span style="color: #000000; font-weight: bold;">function</span> the_category_slug<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 <span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> get_the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span> ? <span style="color: #000088;">$category</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">slug</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>然后在需要的地方黏贴：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// 输出文章别名</span>
<span style="color: #b1b100;">echo</span> the_slug<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// 输出文章分类的别名</span>
<span style="color: #b1b100;">echo</span> the_category_slug<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>搞定，分类别名终于显示了！</p>
<p>文中方法转自：<a href="http://witmax.cn/wordpress-post-slug-and-category-slug-functions.html" target="_blank">枫芸志</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress显示单一分类和分类下文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F410.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/21/32505081.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress显示单一分类和分类下文章</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress文章分类的横排修改方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F83.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271289.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress文章分类的横排修改方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章ID不连续的处理方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F194.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271514.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章ID不连续的处理方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress中如何对长篇文章进行分页" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F241.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271343.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress中如何对长篇文章进行分页</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="在wordpress列表页（首页）显示各文章评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F603.html&from=http%3A%2F%2Fwww.happyet.org%2F612.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/04/20/5242170.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在wordpress列表页（首页）显示各文章评论</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/612.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在wordpress列表页（首页）显示各文章评论</title>
		<link>http://www.happyet.org/603.html</link>
		<comments>http://www.happyet.org/603.html#comments</comments>
		<pubDate>Fri, 08 Apr 2011 06:41:50 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[评论]]></category>
		<category><![CDATA[轻博客]]></category>
		<category><![CDATA[首页]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=603</guid>
		<description><![CDATA[好像一夜之间介于博客和微博之间的轻博（此轻博非彼轻薄）突然就冒了出来了，昨天我还在看蓝冰同学用Typecho程序做的轻博客，那简洁的主题让我眼馋，今天早上沙师弟就在群里发了条地址，说他在新开的点点注册了个轻薄（这会在升级服务中不能访问了），在那里炫耀，我说给你的博客换个皮肤也能和他那一样，你要是能画个你想要的主题出来我免费给你做一个。 为防止万一沙师弟真的去学画画叫我做主题，我稍微看了一下轻博客，暂时没发现什么特别的，功能上wordpress都可以实现，唯一一点区别的是在首页文章下面有列出该篇文章的评论，而wordpress一般都是点进single页面才列评论的，用默认的评论模板肯定是不行的，所以网络上找了一下解决方法，只找到下面一种： 解决方法是在WordPress主题文件夹下的index.php文件的文章调用循环内，即while (have_posts()) : the_post();和endwhile;之间适当位置，添加以下代码： 1 2 3 4 5 6 7 &#60;?php global $withcomments; $withcomments = true; &#160; // 包含评论模板文件， comments_template&#40;&#34;/inline-comments.php&#34;&#41;; ?&#62; 使用全局变量$withcomments，并将其值改成true（或者$withcomments = 1;）第6行的inline-comments.php文件是为首页特制的评论模板，默认的模板在id什么的上面会有冲突，不适合首页使用。下面是个首页评论模板的例子。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="自定义wordpress首页的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F623.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">自定义wordpress首页的方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress中如何对长篇文章进行分页" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F241.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271343.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress中如何对长篇文章进行分页</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="给wordpress添加Ctrl+Enter快捷发表评论功能的两种方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F244.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/07/19/18082827.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">给wordpress添加Ctrl+Enter快捷发表评论功能的两种方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress博客内容的首行缩进代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F7.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/02/10706130.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress博客内容的首行缩进代码</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="非插件实现 WordPress 分页导航" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F386.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271377.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">非插件实现 WordPress 分页导航</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>好像一夜之间介于博客和微博之间的轻博（此轻博非彼轻薄）突然就冒了出来了，昨天我还在看蓝冰同学用Typecho程序做的轻博客，那简洁的主题让我眼馋，今天早上沙师弟就在群里发了条地址，说他在新开的点点注册了个轻薄（这会在升级服务中不能访问了），在那里炫耀，我说给你的博客换个皮肤也能和他那一样，你要是能画个你想要的主题出来我免费给你做一个。</p>
<p>为防止万一沙师弟真的去学画画叫我做主题，我稍微看了一下轻博客，暂时没发现什么特别的，功能上wordpress都可以实现，唯一一点区别的是在首页文章下面有列出该篇文章的评论，而wordpress一般都是点进single页面才列评论的，用默认的评论模板肯定是不行的，所以网络上找了一下解决方法，只找到下面一种：</p>
<p>解决方法是在WordPress主题文件夹下的index.php文件的文章调用循环内，即<code>while (have_posts()) : the_post();</code>和<code>endwhile;</code>之间适当位置，添加以下代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$withcomments</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$withcomments</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// 包含评论模板文件，</span>
    comments_template<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/inline-comments.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>使用全局变量$withcomments，并将其值改成true（或者<code>$withcomments = 1;</code>）第6行的<code>inline-comments.php</code>文件是为首页特制的评论模板，默认的模板在id什么的上面会有冲突，不适合首页使用。下面是个首页评论模板的例子。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'id=&quot;comments&quot;'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> class=&quot;entry-comments&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> post_password_required<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* Count the number of comments and trackbacks (or pings) */</span>
<span style="color: #000088;">$ping_count</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$comment_count</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comment</span> <span style="color: #009900;">&#41;</span>
 get_comment_type<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;comment&quot;</span> ? <span style="color: #339933;">++</span><span style="color: #000088;">$comment_count</span> <span style="color: #339933;">:</span> <span style="color: #339933;">++</span><span style="color: #000088;">$ping_count</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;inline-comments-list&quot;&gt;
&lt;ul class=&quot;commentslist inlinecomments&quot;&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=comment&amp;callback=stf_comment_inline'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$pc</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> stf_show_comment_form<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$pc</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span> post_password_required<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$pc</span><span style="color: #339933;">++;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;div class=&quot;respond-wrap&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> is_singular<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> style=&quot;display: none; &quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span>
                        <span style="color: #000088;">$p2_comment_args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                                <span style="color: #0000ff;">'title_reply'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Reply'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'p2'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                                <span style="color: #0000ff;">'comment_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;div class=&quot;form&quot;&gt;&lt;textarea id=&quot;comment&quot; class=&quot;expand50-100&quot; name=&quot;comment&quot; cols=&quot;45&quot; rows=&quot;3&quot;&gt;&lt;/textarea&gt;&lt;/div&gt; &lt;label class=&quot;post-error&quot; for=&quot;comment&quot; id=&quot;commenttext_error&quot;&gt;&lt;/label&gt;'</span><span style="color: #339933;">,</span>
                                <span style="color: #0000ff;">'comment_notes_before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;p class=&quot;comment-notes&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'require_name_email'</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Required fields are marked %s'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;span class=&quot;required&quot;&gt;*&lt;/span&gt;'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">,</span>
                                <span style="color: #0000ff;">'comment_notes_after'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
                                <span style="color: #0000ff;">'label_submit'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Reply'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'p2'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                                <span style="color: #0000ff;">'id_submit'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'comment-submit'</span><span style="color: #339933;">,</span>
                        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        comment_form<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$p2_comment_args</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;</pre></td></tr></table></div>

<p>这个方法适用于分类页、标签页、日期归档页等文章列表页！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="自定义wordpress首页的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F623.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">自定义wordpress首页的方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress中如何对长篇文章进行分页" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F241.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271343.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress中如何对长篇文章进行分页</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="给wordpress添加Ctrl+Enter快捷发表评论功能的两种方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F244.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/07/19/18082827.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">给wordpress添加Ctrl+Enter快捷发表评论功能的两种方法</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress博客内容的首行缩进代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F7.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/02/10706130.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress博客内容的首行缩进代码</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="非插件实现 WordPress 分页导航" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F386.html&from=http%3A%2F%2Fwww.happyet.org%2F603.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271377.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">非插件实现 WordPress 分页导航</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/603.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>不改变地址，将站点wordpress程序放到子目录中去</title>
		<link>http://www.happyet.org/602.html</link>
		<comments>http://www.happyet.org/602.html#comments</comments>
		<pubDate>Fri, 08 Apr 2011 05:48:03 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[子目录]]></category>
		<category><![CDATA[根目录]]></category>

		<guid isPermaLink="false">http://www.happyet.org/?p=602</guid>
		<description><![CDATA[这个功能暂时不知道有什么用，可能仅仅是为了让你空间的根目录看起来不至于那么凌乱吧。 通常我们安装完wordpress程序后，直接打开就可以访问了，比如我们绑定的域名是www.happyet.org，程序上传到空间根目录public_html文件夹下解压缩，然后安装完后用上面的域名就直接可以访问了。唯一的问题是public_html文件夹下都是wordpress的程序文件，可以通过以下方法，将程序文件放到子文件夹下，然后仍然通过www.happyet.org来访问博客。 1、建立子目录文件夹，比如我们在根目录public_html文件夹下建一个文件夹blog； 2、然后把除了index.php以外的所有wordpress程序文件都放到blog文件夹下； 3、修改index.php文件内容require('./wp-blog-header.php');为require('./blog/wp-blog-header.php');； 4、登录后台，在【设置】->【常规】选项下，修改【WordPress 地址（URL）】为http://www.happyet.org/blog，【站点地址（URL）】为：http://www.happyet.org，点保存更改。 全部搞定！这样子，你的博客就从根目录被放到子目录中了，当然，这个时候后台地址就变成http://www.happyet.org/blog/wp-admin/了。另外，如果你设置过自定义连接地址permallink，得到后台重新设置一下，一定要记住！ 现在，根目录下看起来就干净许多了，你可以在根目录下再添加其他的文件夹如BBS绑定个2级域名做论坛什么的。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress显示单一分类和分类下文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F410.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/21/32505081.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress显示单一分类和分类下文章</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress无插件添加表情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F243.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271339.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress无插件添加表情</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress升级2.8完毕。" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F226.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271499.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress升级2.8完毕。</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress的object-cache缓存" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F561.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/11/2646694.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的object-cache缓存</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 自带表情代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F239.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271490.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 自带表情代码</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这个功能暂时不知道有什么用，可能仅仅是为了让你空间的根目录看起来不至于那么凌乱吧。</p>
<p>通常我们安装完wordpress程序后，直接打开就可以访问了，比如我们绑定的域名是www.happyet.org，程序上传到空间根目录public_html文件夹下解压缩，然后安装完后用上面的域名就直接可以访问了。唯一的问题是public_html文件夹下都是wordpress的程序文件，可以通过以下方法，将程序文件放到子文件夹下，然后仍然通过www.happyet.org来访问博客。</p>
<p>1、建立子目录文件夹，比如我们在根目录public_html文件夹下建一个文件夹blog；<br />
2、然后把<strong>除了index.php以外</strong>的所有wordpress程序文件都放到blog文件夹下；<br />
3、修改index.php文件内容<code>require('./wp-blog-header.php');</code>为<code>require('./<strong>blog</strong>/wp-blog-header.php');</code>；<br />
4、登录后台，在【设置】->【常规】选项下，修改【WordPress 地址（URL）】为http://www.happyet.org/blog，【站点地址（URL）】为：http://www.happyet.org，点保存更改。</p>
<p>全部搞定！这样子，你的博客就从根目录被放到子目录中了，当然，这个时候<strong>后台地址就变成</strong><u>http://www.happyet.org/blog/wp-admin/</u>了。另外，如果你设置过自定义连接地址permallink，得到后台重新设置一下，一定要记住！</p>
<p>现在，根目录下看起来就干净许多了，你可以在根目录下再添加其他的文件夹如BBS绑定个2级域名做论坛什么的。</p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://www.happyet.org";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=5&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress显示单一分类和分类下文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F410.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/09/21/32505081.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress显示单一分类和分类下文章</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress无插件添加表情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F243.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271339.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress无插件添加表情</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress升级2.8完毕。" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F226.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271499.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress升级2.8完毕。</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress的object-cache缓存" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F561.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/11/2646694.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的object-cache缓存</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 自带表情代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F239.html&from=http%3A%2F%2Fwww.happyet.org%2F602.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271490.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 自带表情代码</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/602.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

