<?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://witmax.cn/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://witmax.cn</link>
	<description>记录成长路途上的点滴总结</description>
	<lastBuildDate>Sat, 12 May 2012 04:45:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>【WordPress】“SMTP Error: Could not connect to SMTP host.”的解决办法</title>
		<link>http://witmax.cn/could-not-connect-to-smtp-host.html</link>
		<comments>http://witmax.cn/could-not-connect-to-smtp-host.html#comments</comments>
		<pubDate>Thu, 16 Jun 2011 08:07:52 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=1664</guid>
		<description><![CDATA[这两天换了空间，发现评论邮件通知收不到了，来查一查。 因为借助Configure SMTP插件利用QQ域名邮箱来实现的发送留言提醒邮件功能， 进控制台》设置》SMTP，点了一下发送测试邮件，出错了 SMTP Error: Could not connect to SMTP host. 意思是无法连接到SMTP服务器，可能是网络原因，也可能是配置原因。 搜索一下，有说是需要再php.ini中增加以下设置： 建了个info.php上传到服务器上，内容如下： 在浏览器里访问一下info.php，确认了一下openssl和sockets模块都已启用。 进QQ邮箱的设置界面查看，SMTP功能也还保持开启着，点了下帮助，看到QQ邮箱的SMTP有465和587两个端口，于是在WP的后台敬爱那个SMTP从465改成了587，再测试一下竟然就好了。那么就搞定了。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html&from=http%3A%2F%2Fwitmax.cn%2Fcould-not-connect-to-smtp-host.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3900129.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】在页面或文章中显示某分类下的文章列表</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fcould-not-connect-to-smtp-host.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.1.1修正版：优化外部链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar.html&from=http%3A%2F%2Fwitmax.cn%2Fcould-not-connect-to-smtp-host.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.1.1修正版：优化外部链接</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fcould-not-connect-to-smtp-host.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>因为借助Configure SMTP插件<a href="http://witmax.cn/send-mail-using-qq-domain-mail.html">利用QQ域名邮箱来实现的发送留言提醒邮件</a>功能， 进控制台》设置》SMTP，点了一下发送测试邮件，出错了</p>
<blockquote><p>SMTP Error: Could not connect to SMTP host.</p></blockquote>
<p>意思是无法连接到SMTP服务器，可能是网络原因，也可能是配置原因。</p>
<p><span id="more-1664"></span></p>
<p>搜索一下，有说是需要再php.ini中增加以下设置：</p>
<pre class="brush: plain; title: ; notranslate">extension=php_openssl.dll
extension=php_sockets.dll</pre>
<p>建了个info.php上传到服务器上，内容如下：</p>
<pre class="brush: php; title: ; notranslate">&lt;?php phpinfo(); ?&gt;</pre>
<p>在浏览器里访问一下info.php，确认了一下openssl和sockets模块都已启用。</p>
<p>进QQ邮箱的设置界面查看，SMTP功能也还保持开启着，点了下帮助，看到QQ邮箱的SMTP有465和587两个端口，于是在WP的后台敬爱那个SMTP从465改成了587，再测试一下竟然就好了。那么就搞定了。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html&from=http%3A%2F%2Fwitmax.cn%2Fcould-not-connect-to-smtp-host.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3900129.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】在页面或文章中显示某分类下的文章列表</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fcould-not-connect-to-smtp-host.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.1.1修正版：优化外部链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar.html&from=http%3A%2F%2Fwitmax.cn%2Fcould-not-connect-to-smtp-host.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.1.1修正版：优化外部链接</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fcould-not-connect-to-smtp-host.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/could-not-connect-to-smtp-host.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>【WordPress】关于自动删除段首空格的问题</title>
		<link>http://witmax.cn/wordpress-auto-delete-space.html</link>
		<comments>http://witmax.cn/wordpress-auto-delete-space.html#comments</comments>
		<pubDate>Mon, 11 Apr 2011 12:59:00 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=1520</guid>
		<description><![CDATA[在Firefox/Chrome下，编辑器在可视化模式时保存或更新文章的话，段首的全角和半角空格都会被自动删除掉。这个对于在某些情况下确实需要空格的场合是个头疼的问题。 测试了一下IE和Firefox，结果如下：   半角空格 全角空格 IE 可视化模式 保留、显示 保留、显示 IE HTML模式 保留、不显示 保留、显示 FF 可视化模式 不保留 不保留 FF HTML模式 保留、不显示 保留、显示 从这个测试结果来看，问题应该是出在WordPress自带的富文本编辑器上，在可视化模式下由于Javascript脚本兼容的问题导致了在IE和FF下有不同的表现。 那么针对性的解决办法可以有以下两种： 使用IE（IE核心）浏览器来编辑文章 使用FF时在HTML模式下加入全角空格 另有一种是通过增加CSS样式来为每个段落前面增加两个空格的留白，在主题目录下的style.css中增加以下样式： 具体的样式根据主题会有所不同，各位对应着修改。这个方法不好的地方是，有些段落前面并不希望增加空格的时候就比较无奈。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-auto-delete-space.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-auto-delete-space.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-auto-delete-space.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-auto-delete-space.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3900129.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】在页面或文章中显示某分类下的文章列表</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>在Firefox/Chrome下，编辑器在可视化模式时保存或更新文章的话，段首的全角和半角空格都会被自动删除掉。这个对于在某些情况下确实需要空格的场合是个头疼的问题。</p>
<p>测试了一下IE和Firefox，结果如下：</p>
<table>
<tbody>
<tr>
<td> </td>
<td>半角空格</td>
<td>全角空格</td>
</tr>
<tr>
<td>IE 可视化模式</td>
<td>保留、显示</td>
<td>保留、显示</td>
</tr>
<tr>
<td>IE HTML模式</td>
<td>保留、不显示</td>
<td>保留、显示</td>
</tr>
<tr>
<td>FF 可视化模式</td>
<td>不保留</td>
<td>不保留</td>
</tr>
<tr>
<td>FF HTML模式</td>
<td>保留、不显示</td>
<td>保留、显示</td>
</tr>
</tbody>
</table>
<p>从这个测试结果来看，问题应该是出在WordPress自带的富文本编辑器上，在可视化模式下由于Javascript脚本兼容的问题导致了在IE和FF下有不同的表现。</p>
<p><span id="more-1520"></span></p>
<p>那么针对性的解决办法可以有以下两种：</p>
<ol>
<li>使用IE（IE核心）浏览器来编辑文章</li>
<li>使用FF时在HTML模式下加入全角空格</li>
</ol>
<p>另有一种是通过增加CSS样式来为每个段落前面增加两个空格的留白，在主题目录下的style.css中增加以下样式：</p>
<pre class="brush: css; title: ; notranslate">.content p{text-indent:2em;}</pre>
<p>具体的样式根据主题会有所不同，各位对应着修改。这个方法不好的地方是，有些段落前面并不希望增加空格的时候就比较无奈。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-auto-delete-space.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-auto-delete-space.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-auto-delete-space.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-auto-delete-space.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3900129.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】在页面或文章中显示某分类下的文章列表</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/wordpress-auto-delete-space.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【WordPress】获取当前文章别名、分类别名的函数</title>
		<link>http://witmax.cn/wordpress-post-slug-and-category-slug-functions.html</link>
		<comments>http://witmax.cn/wordpress-post-slug-and-category-slug-functions.html#comments</comments>
		<pubDate>Wed, 30 Mar 2011 06:35:40 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=1479</guid>
		<description><![CDATA[出于SEO的考虑，很多使用WordPress搭建的博客都会使用文章别名来作为固定链接，如本博客的固定链接格式为http://witmax.cn/%postname%.html。文章的别名可以在文章编辑页面进行设置。 对于WordPress主题设计来说，希望针对不同的文章别名或是文章所属的分类别名来显示不同的效果，就需要再模板文件在获取到当前文章的别名、分类别名。 使用方法如下： 本文文章别名为wordpress-post-slug-and-category-slug-functions，文章所属分类“网站建设”别名为website。 参考文章：WordPress Post Slug and Page Slug Function<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-post-slug-and-category-slug-functions.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3900129.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】在页面或文章中显示某分类下的文章列表</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-post-slug-and-category-slug-functions.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-post-slug-and-category-slug-functions.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.1.1修正版：优化外部链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-post-slug-and-category-slug-functions.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.1.1修正版：优化外部链接</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>出于SEO的考虑，很多使用WordPress搭建的博客都会使用文章别名来作为固定链接，如本博客的固定链接格式为<code>http://witmax.cn/%postname%.html</code>。文章的别名可以在文章编辑页面进行设置。</p>
<p>对于WordPress主题设计来说，希望针对不同的文章别名或是文章所属的分类别名来显示不同的效果，就需要再模板文件在获取到当前文章的别名、分类别名。</p>
<p><span id="more-1479"></span></p>
<p><code>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
* 获取当前文章或页面别名的函数
*/
function the_slug() {
    $post_data = get_post($post-&gt;ID, ARRAY_A);
    $slug = $post_data['post_name'];
    return $slug;
}
/*
* 获取当前文章所属第一个分类别名的函数
*/
function the_category_slug(){
 $category = get_the_category();
 return ($category ? $category[0]-&gt;slug : &quot;&quot;);
}
?&gt;</pre>
<p>使用方法如下：</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
// 输出文章别名
echo the_slug();
// 输出文章分类的别名
echo the_category_slug();
?&gt;</pre>
<p>本文文章别名为wordpress-post-slug-and-category-slug-functions，文章所属分类“网站建设”别名为website。</p>
<p>参考文章：<a href="http://www.insitewebsitedesign.com/wordpress-post-slug-and-page-slug-function" target="_blank">WordPress Post Slug and Page Slug Function</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-post-slug-and-category-slug-functions.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3900129.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】在页面或文章中显示某分类下的文章列表</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-post-slug-and-category-slug-functions.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-post-slug-and-category-slug-functions.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.1.1修正版：优化外部链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-post-slug-and-category-slug-functions.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.1.1修正版：优化外部链接</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/wordpress-post-slug-and-category-slug-functions.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>【WordPress】定制后台管理界面的修改方法</title>
		<link>http://witmax.cn/wordpress-modify-controlpanel.html</link>
		<comments>http://witmax.cn/wordpress-modify-controlpanel.html#comments</comments>
		<pubDate>Sun, 20 Mar 2011 08:44:04 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=1444</guid>
		<description><![CDATA[WordPress后台管理很强大，拿来做一个简单的CMS足够了，但某些功能并不常用，于是就想到了来自己定制修改一下后台的管理界面，让管理后台更加简洁、易用。 这里再次感叹一下WordPress可定制性的强大，提供了一系列的filter和action来实现各个方面的定制（很多wordpress插件也是通过这些hook实现的）。 特别说明：以下的修改都是在主题文件夹下的functions.php中进行的，将代码加入此文件即可。 1、去除控制台Widget 控制台就是我们登陆wordpress后台后看到的那个界面，包括了概况、近期评论、引入链接等Widget的界面，如下图 去除所有Widget的代码如下： 如果希望保留其中的某些Widget，只要注释掉或删除到代码中的某些unset就可以了。 2、增加控制台Widget 去除了原有的，那么自然也就想到加入自己的Widget来显得更加个性化，比如增加一个欢迎提示或是常用任务等。代码如下; 代码的效果如下 3、修改常用任务下拉菜单 在管理界面的右上角有一个常用任务下拉菜单，但其中不是所有项都是我们常用到的，甚至是根本不会用到的，那么就来把它们去掉吧，当然另外可以加上自己常用的菜单。 代码如下： 至于删除$actions变量中的哪一项，查看一下这个变量值就知道了 修改后的效果如下： 4、修改左侧的导航功能菜单 某些功能根本用不到的话，不如直接在导航菜单中隐藏掉，代码如下： 以上代码隐藏了所有的功能菜单，各位可以根据自己的实际需要将需要显示出来的在上面的代码中删除即可。隐藏了一部分菜单后的修改效果如下 5、修改页脚提示信息 代码如下： 6、隐藏自动升级提示 代码如下： 参考资料 定制WordPress后台 让你的博客简单化 如何隐藏WordPress后台侧边栏菜单项 WordPress Plugin API<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-language-package-tool.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668146.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题插件语言包制作工具</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.1.1修正版：优化外部链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.1.1修正版：优化外部链接</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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后台管理很强大，拿来做一个简单的CMS足够了，但某些功能并不常用，于是就想到了来自己定制修改一下后台的管理界面，让管理后台更加简洁、易用。</p>
<p>这里再次感叹一下WordPress可定制性的强大，提供了一系列的filter和action来实现各个方面的定制（很多wordpress插件也是通过这些hook实现的）。</p>
<p><em>特别说明：以下的修改都是在主题文件夹下的functions.php中进行的，将代码加入此文件即可。</em></p>
<p><strong>1、去除控制台Widget</strong></p>
<p>控制台就是我们登陆wordpress后台后看到的那个界面，包括了概况、近期评论、引入链接等Widget的界面，如下图</p>
<p><span id="more-1444"></span></p>
<p><div class="wp-caption aligncenter" style="width: 570px"><a title="WordPress控制台" rel="lightbox[controlpanel]" href="http://witmax.cn/img/wordpress-modify-controlpanel-1.png"><img title="WordPress控制台" src="http://witmax.cn/img/wordpress-modify-controlpanel-1.png" alt="WordPress控制台" width="560" /></a><p class="wp-caption-text">WordPress控制台</p></div>去除所有Widget的代码如下：</p>
<pre class="brush: php; title: ; notranslate">if ( ! function_exists( 'remove_dashboard_widgets' ) ) :
/**
 * Remove dashboard widgets
 */
function remove_dashboard_widgets(){
 global $wp_meta_boxes;
 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
 unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
 unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);
 unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
 unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
}
add_action('wp_dashboard_setup', 'remove_dashboard_widgets');

endif;</pre>
<p>如果希望保留其中的某些Widget，只要注释掉或删除到代码中的某些unset就可以了。</p>
<p><strong>2、增加控制台Widget</strong></p>
<p>去除了原有的，那么自然也就想到加入自己的Widget来显得更加个性化，比如增加一个欢迎提示或是常用任务等。代码如下;</p>
<pre class="brush: php; title: ; notranslate">if ( ! function_exists( 'add_dashboard_widgets' ) ) :
/**
 * Add dashboard widgets
 */
function welcome_dashboard_widget_function() {
 // Display whatever it is you want to show
 echo &quot;&lt;ul&gt;&lt;li&gt;&lt;a href='post-new.php'&gt;添加新文章&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='edit.php'&gt;修改文章&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&quot;;
}

// Create the function use in the action hook

function add_dashboard_widgets() {
 wp_add_dashboard_widget('welcome_dashboard_widget', '常用任务', 'welcome_dashboard_widget_function');
}

// Hook into the 'wp_dashboard_setup' action to register our other functions

add_action('wp_dashboard_setup', 'add_dashboard_widgets' );

endif;</pre>
<p>代码的效果如下</p>
<div class="wp-caption aligncenter" style="width: 310px"><a title="修改后的WordPress控制台" rel="lightbox[controlpanel]" href="http://witmax.cn/img/wordpress-modify-controlpanel-2.png"><img title="修改后的WordPress控制台" src="http://witmax.cn/img/wordpress-modify-controlpanel-2.png" alt="修改后的WordPress控制台" width="300" /></a><p class="wp-caption-text">修改后的WordPress控制台</p></div>
<p>3、修改常用任务下拉菜单</p>
<p>在管理界面的右上角有一个常用任务下拉菜单，但其中不是所有项都是我们常用到的，甚至是根本不会用到的，那么就来把它们去掉吧，当然另外可以加上自己常用的菜单。</p>
<p><div class="wp-caption aligncenter" style="width: 152px"><a title="常用任务下拉菜单" rel="lightbox[controlpanel]" href="http://witmax.cn/img/wordpress-modify-controlpanel-3.png"><img title="常用任务下拉菜单" src="http://witmax.cn/img/wordpress-modify-controlpanel-3.png" alt="常用任务下拉菜单" width="142" /></a><p class="wp-caption-text">常用任务下拉菜单</p></div>代码如下：</p>
<pre class="brush: php; title: ; notranslate">if ( ! function_exists( 'custom_favorite_actions' ) ) :
/**
 * modify favorite actions
 */
function custom_favorite_actions($actions) {
// remove menus
 unset($actions['edit-comments.php']);
 unset($actions['media-new.php']);
// add a menu link to profile.php
$actions['profile.php'] = array('My Profile', &quot;edit_posts&quot;);
 return $actions;
}

add_filter('favorite_actions', 'custom_favorite_actions');

endif;</pre>
<p>至于删除$actions变量中的哪一项，查看一下这个变量值就知道了</p>
<pre class="brush: plain; title: ; notranslate">Array
(
    [edit.php?post_type=post] =&gt; Array
        (
            [0] =&gt; Posts
            [1] =&gt; edit_posts
        )    [post-new.php] =&gt; Array
        (
            [0] =&gt; New Post
            [1] =&gt; edit_posts
        )

    [edit.php?post_status=draft] =&gt; Array
        (
            [0] =&gt; Drafts
            [1] =&gt; edit_posts
        )

    [post-new.php?post_type=page] =&gt; Array
        (
            [0] =&gt; New Page
            [1] =&gt; edit_pages
        )

    [media-new.php] =&gt; Array
        (
            [0] =&gt; Upload
            [1] =&gt; upload_files
        )

    [edit-comments.php] =&gt; Array
        (
            [0] =&gt; Comments
            [1] =&gt; moderate_comments
        )

)</pre>
<p>修改后的效果如下：</p>
<div class="wp-caption aligncenter" style="width: 150px"><a title="修改后的常用任务下拉菜单" rel="lightbox[controlpanel]" href="http://witmax.cn/img/wordpress-modify-controlpanel-4.png"><img title="修改后的常用任务下拉菜单" src="http://witmax.cn/img/wordpress-modify-controlpanel-4.png" alt="修改后的常用任务下拉菜单" width="140" /></a><p class="wp-caption-text">修改后的常用任务下拉菜单</p></div>
<p><strong>4、修改左侧的导航功能菜单</strong></p>
<p>某些功能根本用不到的话，不如直接在导航菜单中隐藏掉，代码如下：</p>
<pre class="brush: plain; title: ; notranslate">

if ( ! function_exists( 'remove_menus' ) ) :
/**
 * Remove dashboard menus
 */
function remove_menus () {
global $menu;
    $restricted = array(__('Dashboard'),  __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins'));
    end ($menu);
    while (prev($menu)){
        $value = explode(' ',$menu[key($menu)][0]);
        if(in_array($value[0] != NULL?$value[0]:&quot;&quot; , $restricted)){unset($menu[key($menu)]);}
    }
}
add_action('admin_menu', 'remove_menus');

endif;</pre>
<p>以上代码隐藏了所有的功能菜单，各位可以根据自己的实际需要将需要显示出来的在上面的代码中删除即可。隐藏了一部分菜单后的修改效果如下</p>
<p><div class="wp-caption aligncenter" style="width: 170px"><a title="修改后的导航功能菜单" rel="lightbox[controlpanel]" href="http://witmax.cn/img/wordpress-modify-controlpanel-5.png"><img title="修改后的导航功能菜单" src="http://witmax.cn/img/wordpress-modify-controlpanel-5.png" alt="修改后的导航功能菜单" width="160" /></a><p class="wp-caption-text">修改后的导航功能菜单</p></div><strong>5、修改页脚提示信息</strong></p>
<p>代码如下：</p>
<pre class="brush: php; title: ; notranslate">if ( ! function_exists( 'modify_footer_admin' ) ) :
/**
 * modify dashboard footer
 */
function modify_footer_admin () {
echo 'Modified by Maple Nan';
}

add_filter('admin_footer_text', 'modify_footer_admin');

endif;</pre>
<p><strong>6、隐藏自动升级提示</strong></p>
<p>代码如下：</p>
<pre class="brush: php; title: ; notranslate">/**
 * hide wordpress update
 */
add_filter( 'pre_site_transient_update_core', create_function( '$a', &quot;return null;&quot; ) );</pre>
<p><strong>参考资料</strong></p>
<ol>
<li><a href="http://www.qiuqie.com/%E5%AE%9A%E5%88%B6wordpress%E5%90%8E%E5%8F%B0-%E8%AE%A9%E4%BD%A0%E7%9A%84%E5%8D%9A%E5%AE%A2%E7%AE%80%E5%8D%95%E5%8C%96/" target="_blank">定制WordPress后台 让你的博客简单化</a></li>
<li><a href="http://neolee.com/wordpress/how-to-remove-menus-in-wordpress-dashboard/" target="_blank">如何隐藏WordPress后台侧边栏菜单项</a></li>
<li><a href="http://codex.wordpress.org/Plugin_API" target="_blank">WordPress Plugin API</a></li>
</ol>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-language-package-tool.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668146.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题插件语言包制作工具</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.1.1修正版：优化外部链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.1.1修正版：优化外部链接</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/wordpress-modify-controlpanel.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>【WordPress】在页面或文章中显示某分类下的文章列表</title>
		<link>http://witmax.cn/wordpress-show-category.html</link>
		<comments>http://witmax.cn/wordpress-show-category.html#comments</comments>
		<pubDate>Sun, 20 Mar 2011 07:26:32 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=1442</guid>
		<description><![CDATA[实际wordpress应用中碰到的一个问题，需要在页面和文章中显示某些分类下的文章列表，找了两种实现方法。 方法一、Category Show插件法 从WordPress插件中心下载Category Show插件，在后台安装启用，在 管理面板》设置》Category Show 中选择分类，选择排序依据，点击Generate，将产生的Generated tag复制到文章或页面的内容区中即可。在文章或页面的显示页面上就会看到那些代码被替换为文章列表了。 此法的好处操作简单，不好的地方就是可定制性差，希望更多的定制可以使用方法二。 方法二、修改主题模板法 在主题模板的适当位置加入以下代码： 上述代码中query函数内的cat为分类编号，showposts为希望显示的文章条数，此法的好处是操作灵活，可以自由的选取文章列表，可以参考WP_Query函数用法，输出样式也更为灵活，可以自由控制输出的内容样式。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-language-package-tool.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668146.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题插件语言包制作工具</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3903556.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】定制后台管理界面的修改方法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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><strong>方法一、Category Show插件法</strong></p>
<p>从WordPress插件中心下载<a title="Category Show插件" href="http://wordpress.org/extend/plugins/wp-catergory-show/" target="_blank">Category Show插件</a>，在后台安装启用，在 管理面板》设置》Category Show 中选择分类，选择排序依据，点击Generate，将产生的Generated tag复制到文章或页面的内容区中即可。在文章或页面的显示页面上就会看到那些代码被替换为文章列表了。</p>
<p>此法的好处操作简单，不好的地方就是可定制性差，希望更多的定制可以使用方法二。</p>
<p><span id="more-1442"></span></p>
<p><div class="wp-caption aligncenter" style="width: 295px"><a title="Category Show插件用法" rel="lightbox[arcword]" href="http://witmax.cn/img/category-show.png"><img title="Category Show插件用法" src="http://witmax.cn/img/category-show.png" alt="Category Show插件用法" width="285" /></a><p class="wp-caption-text">Category Show插件用法</p></div><strong>方法二、修改主题模板法</strong></p>
<p>在主题模板的适当位置加入以下代码：</p>
<pre class="brush: php; title: ; notranslate">&lt;?php $recent = new WP_Query(); ?&gt;
&lt;?php $recent-&gt;query('cat=1&amp;showposts=5'); ?&gt;
&lt;?php while($recent-&gt;have_posts()) : $recent-&gt;the_post(); ?&gt;
&lt;ul&gt;
&lt;li&gt;
            &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;
            &lt;?php the_title(); ?&gt;
            &lt;/a&gt;
       &lt;/li&gt;
&lt;/ul&gt;
&lt;?php endwhile; ?&gt;
</pre>
<p>上述代码中query函数内的cat为分类编号，showposts为希望显示的文章条数，此法的好处是操作灵活，可以自由的选取文章列表，可以参考<a href="http://codex.wordpress.org/Function_Reference/WP_Query" target="_blank">WP_Query函数用法</a>，输出样式也更为灵活，可以自由控制输出的内容样式。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-language-package-tool.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668146.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题插件语言包制作工具</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3903556.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】定制后台管理界面的修改方法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/wordpress-show-category.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【WordPress】博客首页打不开的解决办法</title>
		<link>http://witmax.cn/wordpress-homepage-not-open.html</link>
		<comments>http://witmax.cn/wordpress-homepage-not-open.html#comments</comments>
		<pubDate>Sat, 26 Feb 2011 16:57:06 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=1426</guid>
		<description><![CDATA[有同学碰到升级到wordpress 3.1后，博客首页打不开了，但其他页面包括后台管理都能正常打开。帮着调试了一下，发现是wp-include/template-loader.php文件头部的如下代码导致的。 解决办法就是将这段的代码注释掉，首页可以正常访问了。 补充说明： 为什么wordpress要加以上代码让所有页面都做一次模板判断跳转？Turn Off WordPress Homepage URL Redirection给出了答案，是wordpress针对一个页面存在多个网址的SEO优化。比如 http://witmax.cn http://witmax.cn/index.php http://www.witmax.cn http://www.witmax.cn/index.php 上面这几个网址都是指向我的博客首页，但对于搜索引擎来说是存在相同页面内容的多个URL，不利于SEO。于是wordpress引入了Canonical URL Redirection技术，将多个网址重定向到其中一个网址上，也便是上面所看到代码的功能。实际起作用的代码位于wp-includes/canonical.php的redirect_canonical()函数中，有兴趣的同学可认真研究一下。 但奇怪的是同样的主题、同样的wordpress版本，我的博客就没有这个问题，猜测与redirect_canonical()函数实现有关，此处未作细究。知道答案的同学烦请告知。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.1.1修正版：优化外部链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-homepage-not-open.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.1.1修正版：优化外部链接</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-homepage-not-open.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-homepage-not-open.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-homepage-not-open.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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 3.1后，博客首页打不开了，但其他页面包括后台管理都能正常打开。帮着调试了一下，发现是wp-include/template-loader.php文件头部的如下代码导致的。</p>
<pre class="brush: php; title: ; notranslate">if ( defined('WP_USE_THEMES') &amp;&amp; WP_USE_THEMES )
 do_action('template_redirect');</pre>
<p>解决办法就是将这段的代码注释掉，首页可以正常访问了。</p>
<p>补充说明：</p>
<p>为什么wordpress要加以上代码让所有页面都做一次模板判断跳转？<a href="http://www.velvetblues.com/web-development-blog/turn-off-wordpress-homepage-url-redirection/" target="_blank">Turn Off WordPress Homepage URL Redirection</a>给出了答案，是wordpress针对一个页面存在多个网址的SEO优化。比如</p>
<p><span id="more-1426"></span></p>
<ul>
<li>http://witmax.cn</li>
<li>http://witmax.cn/index.php</li>
<li>http://www.witmax.cn</li>
<li>http://www.witmax.cn/index.php</li>
</ul>
<p>上面这几个网址都是指向我的博客首页，但对于搜索引擎来说是存在相同页面内容的多个URL，不利于SEO。于是wordpress引入了Canonical <acronym title="Uniform Resource Locator">URL</acronym> Redirection技术，将多个网址重定向到其中一个网址上，也便是上面所看到代码的功能。实际起作用的代码位于wp-includes/canonical.php的redirect_canonical()函数中，有兴趣的同学可认真研究一下。</p>
<p>但奇怪的是同样的主题、同样的wordpress版本，我的博客就没有这个问题，猜测与redirect_canonical()函数实现有关，此处未作细究。知道答案的同学烦请告知。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.1.1修正版：优化外部链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-homepage-not-open.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.1.1修正版：优化外部链接</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-homepage-not-open.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2667466.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】开启维护模式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-homepage-not-open.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-homepage-not-open.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/wordpress-homepage-not-open.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>【WordPress】为Inove主题增加自定义菜单功能的支持</title>
		<link>http://witmax.cn/wordpress-theme-menus.html</link>
		<comments>http://witmax.cn/wordpress-theme-menus.html#comments</comments>
		<pubDate>Fri, 10 Sep 2010 13:54:51 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[Inove]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=1007</guid>
		<description><![CDATA[Inove主题晴枫修改版已增加了对自定义菜单功能的支持，点击这里查看。 WordPress 3.0推出已有三个多月了，关于给博客主题增加3.0新功能——自定义菜单支持的文章也已经很多了，按着操作下来感觉还是有一些地方没有写得很清楚，于是也来整理一笔。 这两天无意中，看到后台管理》外观》目录界面有如下提示： 当前的主题不提供原生的自定义目录支持。您可以用“自定义目录”小工具将您在这里创建的目录添加至主题的侧边栏。 英文版提示是 The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar. 想想还是给博客主题增加这个功能的支持。 记录下修改步骤： 1、修改主题的functions.php文件，末尾增加如下代码： 说明：此段代码意为注册菜单位置。menubar为位置标识，自定义，对应到菜单设置界面的主题位置，如下图；Inove Menubar是显示的描述文字。array数组便是在主题中使用的菜单位置，可以指定多个元素来使得主题中同时使用多个自定义菜单。更多关于 register_nav_menus 函数的使用可参看官网说明文档。 2、增加主题配置项（即后台管理》外观》当前主题选项）对自定义菜单功能的可选的支持，各个主题修改方法会有不同；当然如果主题没有配置项，可略过此步。 iNove主题配置项修改位于functions.php文件中，涉及修改代码较多，不细细罗列，有兴趣修改的同学模仿原有的配置项进行添加。只是中间如有中文的话需要用__()或_e()函数替换下，然后在languages下的对应语言文件中增加条目，语言文件的编辑用到WordPress主题插件语言包制作工具。 3、修改主题菜单项的输出代码 Inove主题菜单项对应代码位于templates/header.php第30行处，如下，根据自己的需要进行修改或替换： 自定义菜单的输出使用如下代码 ： 说明：以上函数是将menubar对应的菜单项转换为菜单列表输出，输出代码类似如下： 由于Inove主题菜单设计原因，不希望输出菜单代码中的div标签和ul标签，于是采用了如下代码： 即通过正则表达式的替换，去掉div标签和ul标签，只留下li标签。 更多关于 wp_nav_menu 函数的使用请参考官方说明文档。 4、添加、配置菜单 在WordPress后台管理》外观》目录中进行设置，如前面的图所示，增加菜单、添加菜单项、将菜单选定到主题的菜单位置上。如菜单位置处不选择任何菜单，主题输出时会将页面列表作为默认菜单列表输出。 p.s. 自定义菜单虽然灵活，但就效率而言不及直接输出页面列表或是分类列表，各位看官自己选择。 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress主题inove v1.4.6修改版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-inove-modified.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-menus.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题inove v1.4.6修改版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-menus.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-summary.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-menus.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】优化、修改技巧集锦</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-language-package-tool.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-menus.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668146.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题插件语言包制作工具</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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><strong>Inove主题晴枫修改版已增加了对自定义菜单功能的支持，点击<a href="http://witmax.cn/wordpress-theme-inove-modified.html" target="_blank">这里</a>查看。</strong></p>
<p>WordPress 3.0推出已有三个多月了，关于给博客主题增加3.0新功能——自定义菜单支持的文章也已经很多了，按着操作下来感觉还是有一些地方没有写得很清楚，于是也来整理一笔。</p>
<p>这两天无意中，看到后台管理》外观》目录界面有如下提示：</p>
<blockquote><p>当前的主题不提供原生的自定义目录支持。您可以用“自定义目录”小工具将您在这里创建的目录添加至主题的侧边栏。</p></blockquote>
<p>英文版提示是</p>
<blockquote><p>The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.</p></blockquote>
<p>想想还是给博客主题增加这个功能的支持。</p>
<p>记录下修改步骤：</p>
<p><span id="more-1007"></span> 1、修改主题的functions.php文件，末尾增加如下代码：</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
if (function_exists('register_nav_menus')){
register_nav_menus( array(
'menubar' =&gt; __('Inove Menubar', 'inove')
) );
}
?&gt;</pre>
<p>说明：此段代码意为注册菜单位置。menubar为位置标识，自定义，对应到菜单设置界面的主题位置，如下图；Inove Menubar是显示的描述文字。array数组便是在主题中使用的菜单位置，可以指定多个元素来使得主题中同时使用多个自定义菜单。更多关于 register_nav_menus 函数的使用可参看<a href="http://codex.wordpress.org/Function_Reference/register_nav_menus" target="_blank">官网说明文档</a>。</p>
<div class="wp-caption aligncenter" style="width: 570px"><a title="自定义菜单设置" rel="lightbox[menubar]" href="http://witmax.cn/img/wordpress-menus.png"><img title="自定义菜单设置" src="http://witmax.cn/img/wordpress-menus.png" alt="自定义菜单设置" width="560" /></a><p class="wp-caption-text">自定义菜单设置</p></div>
<p>2、增加主题配置项（即后台管理》外观》当前主题选项）对自定义菜单功能的可选的支持，各个主题修改方法会有不同；当然如果主题没有配置项，可略过此步。</p>
<p>iNove主题配置项修改位于functions.php文件中，涉及修改代码较多，不细细罗列，有兴趣修改的同学模仿原有的配置项进行添加。只是中间如有中文的话需要用__()或_e()函数替换下，然后在languages下的对应语言文件中增加条目，语言文件的编辑用到<a href="http://witmax.cn/wordpress-language-package-tool.html">WordPress主题插件语言包制作工具</a>。</p>
<p>3、修改主题菜单项的输出代码</p>
<p>Inove主题菜单项对应代码位于templates/header.php第30行处，如下，根据自己的需要进行修改或替换：</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
if($options['menu_type'] == 'categories') {
wp_list_categories('title_li=0&amp;orderby=name&amp;show_count=0');
} else {
wp_list_pages('title_li=0&amp;sort_column=menu_order');
}
?&gt;</pre>
<p>自定义菜单的输出使用如下代码 ：</p>
<pre class="brush: php; title: ; notranslate">wp_nav_menu(array('theme_location' =&gt; 'menubar'));</pre>
<p>说明：以上函数是将menubar对应的菜单项转换为菜单列表输出，输出代码类似如下：</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;menu-xxx-container&quot;&gt;&lt;ul id=&quot;menu-xxx&quot; class=&quot;menu&quot;&gt;&lt;li id=&quot;menu-item-xxx&quot; class=&quot;menu-item menu-item-type-custom menu-item-xxx&quot;&gt;&lt;a href=&quot;xxx&quot;&gt;xxx&lt;/a&gt;&lt;/li&gt;
&lt;li id=&quot;menu-item-xxx&quot; class=&quot;menu-item menu-item-type-post_type menu-item-xxx&quot;&gt;&lt;a href=&quot;xxx&quot;&gt;xxx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</pre>
<p>由于Inove主题菜单设计原因，不希望输出菜单代码中的div标签和ul标签，于是采用了如下代码：</p>
<pre class="brush: php; title: ; notranslate">echo str_replace(&quot;&lt;/ul&gt;&lt;/div&gt;&quot;, &quot;&quot;, ereg_replace(&quot;&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;&quot;, &quot;&quot;, wp_nav_menu(array('theme_location' =&gt; 'menubar', 'echo' =&gt; false)) ));</pre>
<p>即通过正则表达式的替换，去掉div标签和ul标签，只留下li标签。</p>
<p>更多关于 wp_nav_menu 函数的使用请参考<a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu" target="_blank">官方说明文档</a>。</p>
<p>4、添加、配置菜单</p>
<p>在WordPress后台管理》外观》目录中进行设置，如前面的图所示，增加菜单、添加菜单项、将菜单选定到主题的菜单位置上。如菜单位置处不选择任何菜单，主题输出时会将页面列表作为默认菜单列表输出。</p>
<p>p.s. 自定义菜单虽然灵活，但就效率而言不及直接输出页面列表或是分类列表，各位看官自己选择。</p>
<p>[完毕]</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress主题inove v1.4.6修改版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-inove-modified.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-menus.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题inove v1.4.6修改版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-menus.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-summary.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-menus.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】优化、修改技巧集锦</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-language-package-tool.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-theme-menus.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668146.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题插件语言包制作工具</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/wordpress-theme-menus.html/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>博客总算和谐了</title>
		<link>http://witmax.cn/blog-harmony.html</link>
		<comments>http://witmax.cn/blog-harmony.html#comments</comments>
		<pubDate>Wed, 07 Jul 2010 17:04:49 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[心情随笔]]></category>
		<category><![CDATA[Feed]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=919</guid>
		<description><![CDATA[从六月底开始到七月初，博客一直不安宁，现在终于和谐了…… 六月底，FeedBurner被墙，因为我的博客把所有RSS都用FeedBurner Smith跳转到了FeedBurner的订阅地址，结果用FeedDemon打不开了。后知后觉了下，之后总结Feed发布方式的选择：FeedBurner、FeedSky、原始Feed、子域名Feed，把博客的RSS订阅地址，调整到feed.witmax.cn，子域名绑定到feedsky，至此Feed和谐了…… 6月29日下午，博客打不开了，收到空间流量超标邮件，第一次感受到流量这东西的存在。幸好cpanel流量分析工具丰富，仔细打量一下各种数据，没有发现异常，爬虫所在流量很低，都是正常访问，流量的大头是网页HTML（19%）主题、插件的图片（45%）、JS（20%）。于是乎精简用处不大的插件，干掉了占流量的WordPress Toolbar和External Link。再次修改了inove主题，增加了多个设置项来减少插件使用，修改项见WordPress主题inove v1.4.6修改版，干掉了Shockingly Simple Favicon插件和All in One SEO插件（受赶紧了，抛弃 All in One SEO这篇启发）。至此对于插件的态度改变，意义不大的插件不用，能通过简单修改主题实现不去安装可能功能强大的插件。流量问题和谐了一些…… 6月30日凌晨，觉得博客一直error不太好，于是拿shy9000送的免费空间临时挂个博客撑一下，结果没搞定，永久链接失效，博客真能看首页，其他页皆是404错误，无奈，挂起了维护页面。30日白天，查了一下wordpress维护页面的做法，做了个总结——【WordPress】开启维护模式。后来上鼠我论坛，老鼠提示给临时升流量了，感谢下~于是把博客转回鼠我，空间问题和谐了…… 7月1日开始，博客突然出现大量垃圾留言，全是一堆字母，邮箱则是一堆数字，虽然被Akismet统计拦截了，但还是很不爽，没隔三五分钟一条，还变换IP。看来Math Comment Spam Protection插件被无视了。持续了四天，看不下去了，上博客联盟推荐的Some Chinese Please!插件替换到了Math Comment Spam Protection插件，观测了几天，效果明显，垃圾留言不见了。恩，垃圾留言和谐了…… 感叹下，独立博客真折腾！回过来说，后面的文章继续技术性质，会写两篇关于ExtJs应用的，有兴趣的同学可以期待下。 博客和谐了，我也出去天堂和谐和谐……出行杭州，哈哈，被你发现了<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-mu.html&from=http%3A%2F%2Fwitmax.cn%2Fblog-harmony.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP多用户博客系统WordPress MU</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fchange-links.html&from=http%3A%2F%2Fwitmax.cn%2Fblog-harmony.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">博客友情链接调整</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwindows-live-spaces-backup.html&from=http%3A%2F%2Fwitmax.cn%2Fblog-harmony.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows Live Spaces六个月后关闭，大家做好博客备份或转移</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fblog-purpose.html&from=http%3A%2F%2Fwitmax.cn%2Fblog-harmony.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">说说博客的目的</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>六月底，FeedBurner被墙，因为我的博客把所有RSS都用FeedBurner Smith跳转到了FeedBurner的订阅地址，结果用FeedDemon打不开了。后知后觉了下，之后总结<a rel="bookmark" href="http://witmax.cn/feed-release-mode.html">Feed发布方式的选择：FeedBurner、FeedSky、原始Feed、子域名Feed</a>，把博客的RSS订阅地址，调整到feed.witmax.cn，子域名绑定到feedsky，至此Feed和谐了……</p>
<p><span id="more-919"></span></p>
<p>6月29日下午，博客打不开了，收到空间流量超标邮件，第一次感受到流量这东西的存在。幸好cpanel流量分析工具丰富，仔细打量一下各种数据，没有发现异常，爬虫所在流量很低，都是正常访问，流量的大头是网页HTML（19%）主题、插件的图片（45%）、JS（20%）。于是乎精简用处不大的插件，干掉了占流量的WordPress Toolbar和External Link。再次修改了inove主题，增加了多个设置项来减少插件使用，修改项见<a href="http://witmax.cn/wordpress-theme-inove-modified.html">WordPress主题inove v1.4.6修改版</a>，干掉了Shockingly Simple Favicon插件和All in One SEO插件（受<a href="http://jandan.net/2008/12/02/byebye-all-in-one-seo.html" target="_blank">赶紧了，抛弃 All in One SEO</a>这篇启发）。至此对于插件的态度改变，意义不大的插件不用，能通过简单修改主题实现不去安装可能功能强大的插件。流量问题和谐了一些……</p>
<p>6月30日凌晨，觉得博客一直error不太好，于是拿shy9000送的免费空间临时挂个博客撑一下，结果没搞定，永久链接失效，博客真能看首页，其他页皆是404错误，无奈，挂起了维护页面。30日白天，查了一下wordpress维护页面的做法，做了个总结——<a rel="bookmark" href="http://witmax.cn/wordpress-maintenance-mode.html">【WordPress】开启维护模式</a>。后来上鼠我论坛，老鼠提示给临时升流量了，感谢下~于是把博客转回鼠我，空间问题和谐了……</p>
<p>7月1日开始，博客突然出现大量垃圾留言，全是一堆字母，邮箱则是一堆数字，虽然被Akismet统计拦截了，但还是很不爽，没隔三五分钟一条，还变换IP。看来Math Comment Spam Protection插件被无视了。持续了四天，看不下去了，上博客联盟推荐的Some Chinese Please!插件替换到了Math Comment Spam Protection插件，观测了几天，效果明显，垃圾留言不见了。恩，垃圾留言和谐了……</p>
<p>感叹下，独立博客真折腾！回过来说，后面的文章继续技术性质，会写两篇关于ExtJs应用的，有兴趣的同学可以期待下。</p>
<p>博客和谐了，我也出去天堂和谐和谐……<span style="color: #ffffff;">出行杭州，哈哈，被你发现了</span></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-mu.html&from=http%3A%2F%2Fwitmax.cn%2Fblog-harmony.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP多用户博客系统WordPress MU</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fchange-links.html&from=http%3A%2F%2Fwitmax.cn%2Fblog-harmony.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">博客友情链接调整</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwindows-live-spaces-backup.html&from=http%3A%2F%2Fwitmax.cn%2Fblog-harmony.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows Live Spaces六个月后关闭，大家做好博客备份或转移</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fblog-purpose.html&from=http%3A%2F%2Fwitmax.cn%2Fblog-harmony.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">说说博客的目的</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/blog-harmony.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>【WordPress】开启维护模式</title>
		<link>http://witmax.cn/wordpress-maintenance-mode.html</link>
		<comments>http://witmax.cn/wordpress-maintenance-mode.html#comments</comments>
		<pubDate>Fri, 02 Jul 2010 12:31:38 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=913</guid>
		<description><![CDATA[在某些情况下，可能由于各种原因导致博客访问出错的情况，这时候开启维护模式，给出一个维护提示的页面或是一个较好的做法。 1、最简洁的做法——.maintenance法 在WordPress根目录下新建一个名为.maintenance的文件，内容为： 其中的数字为Unix时间戳，可以通过PHP函数time()或strtotime()获得，在这个时间戳所指定的时间以及之后的600秒钟之前，WP将处于“维护模式”，访问全站的所有页面都会显示“Briefly unavailable for scheduled maintenance. Check back in a minute”，同样无法进入后台管理系统。 如果不确定维护时间，希望手动来切换到非维护模式的话，可以修改.maintenance文件内容为： 停止维护模式，只需要删除.maintenance文件就可以了。 不喜欢那句提示的话可以对其进行修改，WP2.9位于wp-settings.php 139行附件，WP3.0位于wp-includes/load.php 164行附近，原始提示页面内容如下： 另，以上情况在升级插件失败的情况下也可能会出现，可以通过删除.maintenance文件来解除。 2、简便易行的方法————maintenance mode插件 可以在官网上下到maintenance插件，上传后启用即可，可设置维护时间和维护页面显示的用户级别，可以保证管理员能在后台和前台进行正常的操作和浏览，而普通用户只会看到维护提示页面。 插件使用不说明了，看看就知道怎么用了，直接看维护界面，默认效果如下 换个WP登陆界面的风格 另一个同功能的插件，效果华丽，看Custom Coming Soon Pages。 3、劳民伤财的做法——自己DIY个维护页 可参考有效的维护页面：实例与最佳实践，不说啥了 [完毕]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3903556.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】定制后台管理界面的修改方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress添加链接与版权声明插件Add Post URL" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-add-post-url.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668192.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress添加链接与版权声明插件Add Post URL</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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><strong>1、最简洁的做法——.maintenance法</strong></p>
<p>在WordPress根目录下新建一个名为.maintenance的文件，内容为：</p>
<p><span id="more-913"></span></p>
<pre class="brush: php; title: ; notranslate">&lt;?php $upgrading = 1234567890; ?&gt;</pre>
<p>其中的数字为Unix时间戳，可以通过PHP函数time()或strtotime()获得，在这个时间戳所指定的时间以及之后的600秒钟之前，WP将处于“维护模式”，访问全站的所有页面都会显示“Briefly  unavailable for scheduled maintenance. Check back in a minute”，同样无法进入后台管理系统。</p>
<p>如果不确定维护时间，希望手动来切换到非维护模式的话，可以修改.maintenance文件内容为：</p>
<pre class="brush: php; title: ; notranslate">&lt;?php $upgrading = time(); ?&gt;</pre>
<p>停止维护模式，只需要删除.maintenance文件就可以了。</p>
<p>不喜欢那句提示的话可以对其进行修改，WP2.9位于wp-settings.php 139行附件，WP3.0位于wp-includes/load.php 164行附近，原始提示页面内容如下：</p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
    &lt;title&gt;&lt;?php echo /*WP_I18N_MAINTENANCE*/'Maintenance'/*/WP_I18N_MAINTENANCE*/; ?&gt;&lt;/title&gt;

&lt;/head&gt;
&lt;body&gt;
    &lt;h1&gt;&lt;?php echo /*WP_I18N_MAINT_MSG*/'Briefly unavailable for scheduled maintenance. Check back in a minute.'/*/WP_I18N_MAINT_MSG*/; ?&gt;&lt;/h1&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>另，以上情况在升级插件失败的情况下也可能会出现，可以通过删除.maintenance文件来解除。</p>
<p><strong>2、简便易行的方法————maintenance mode插件</strong></p>
<p>可以在官网上下到maintenance插件，上传后启用即可，可设置维护时间和维护页面显示的用户级别，可以保证管理员能在后台和前台进行正常的操作和浏览，而普通用户只会看到维护提示页面。</p>
<p>插件使用不说明了，看看就知道怎么用了，直接看维护界面，默认效果如下</p>
<p><div class="wp-caption aligncenter" style="width: 570px"><a title="Maintenance Mode" rel="lightbox[maintenance]" href="http://witmax.cn/img/maintenance-mode-1.png"><img title="Maintenance Mode" src="http://witmax.cn/img/maintenance-mode-1.png" alt="Maintenance Mode" width="560" /></a><p class="wp-caption-text">Maintenance Mode</p></div>换个WP登陆界面的风格</p>
<p><div class="wp-caption aligncenter" style="width: 570px"><a title="Maintenance Mode" rel="lightbox[maintenance]" href="http://witmax.cn/img/maintenance-mode-2.png"><img title="Maintenance Mode" src="http://witmax.cn/img/maintenance-mode-2.png" alt="Maintenance Mode" width="560" /></a><p class="wp-caption-text">Maintenance Mode</p></div>另一个同功能的插件，效果华丽，看<a href="http://plugins.wopus.org/content/optimization/294.html" target="_blank">Custom Coming Soon Pages</a>。</p>
<p><strong>3、劳民伤财的做法——自己DIY个维护页</strong></p>
<p>可参考<a href="http://www.qianduan.net/effective-maintenance-pages-examples-and-best-practices.html" target="_blank">有效的维护页面：实例与最佳实践</a>，不说啥了</p>
<p>[完毕]</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-modify-controlpanel.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3903556.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】定制后台管理界面的修改方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress添加链接与版权声明插件Add Post URL" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-add-post-url.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668192.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress添加链接与版权声明插件Add Post URL</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-maintenance-mode.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/wordpress-maintenance-mode.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>WordPress Download Monitor汉化版语言文件下载</title>
		<link>http://witmax.cn/wordpress-download-monitor-lang-cn.html</link>
		<comments>http://witmax.cn/wordpress-download-monitor-lang-cn.html#comments</comments>
		<pubDate>Wed, 14 Apr 2010 12:48:44 +0000</pubDate>
		<dc:creator>晴枫</dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=764</guid>
		<description><![CDATA[Download Monitor是管理文件下载的WordPress插件，可指定文件只允许登陆下载，具有下载统计功能，同时含有一个下载页面（可点击本站顶部导航栏的下载查看效果）。另外单条下载效果如下面的插件下载。 十分不错的插件，曾写过《WordPress Download Monitor插件使用教程基础篇》，如不知道怎么用的可以参考。 一时兴起，花了几个小时来做了下插件文本的汉化，需要就自便吧。 下载地址： 下载包用法：解压后复制语言文件到\wp-content\plugins\download-monitor\languages下即可。 如发现有翻译得不到位的地方，欢迎留言指出。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-download-monitor-lang-cn.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-language-package-tool.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-download-monitor-lang-cn.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668146.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题插件语言包制作工具</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-download-monitor-lang-cn.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-download-monitor-lang-cn.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3900129.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】在页面或文章中显示某分类下的文章列表</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>Download Monitor是管理文件下载的WordPress插件，可指定文件只允许登陆下载，具有下载统计功能，同时含有一个下载页面（可点击本站顶部导航栏的<strong>下载</strong>查看效果）。另外单条下载效果如下面的插件下载。</p>
<p>十分不错的插件，曾写过《<a href="http://witmax.cn/wordpress-download-monitor-basic-usage.html">WordPress Download Monitor插件使用教程基础篇</a>》，如不知道怎么用的可以参考。</p>
<p>一时兴起，花了几个小时来做了下插件文本的汉化，需要就自便吧。</p>
<p><span id="more-764"></span></p>
<p>下载地址：<a class="downloadlink" href="http://witmax.cn/downloads/30" title="版本：v3.3.3.8 已下载251次" target="_blank">WordPress Download Monitor汉化版语言文件</a></p>
<p>下载包用法：解压后复制语言文件到\wp-content\plugins\download-monitor\languages下即可。</p>
<p>如发现有翻译得不到位的地方，欢迎留言指出。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress Toolbar插件v2.2.3汉化版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-toolbar-cn.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-download-monitor-lang-cn.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668245.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Toolbar插件v2.2.3汉化版</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-language-package-tool.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-download-monitor-lang-cn.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2668146.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题插件语言包制作工具</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-guestbook.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-download-monitor-lang-cn.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/24/336104.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.8留言板制作教程</font>
                    </a>
                </td>
                <td width="102" 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?url=http%3A%2F%2Fwitmax.cn%2Fwordpress-show-category.html&from=http%3A%2F%2Fwitmax.cn%2Fwordpress-download-monitor-lang-cn.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/20/3900129.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】在页面或文章中显示某分类下的文章列表</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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://witmax.cn/wordpress-download-monitor-lang-cn.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

