<?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>WordPress教程网 &#187; wordpress中文</title>
	<atom:link href="http://www.wpcourse.com/tag/wordpress%e4%b8%ad%e6%96%87/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpcourse.com</link>
	<description>每个人都学得会的WordPress教程</description>
	<lastBuildDate>Thu, 09 Feb 2012 09:59:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress中文工具箱介绍和总结</title>
		<link>http://www.wpcourse.com/wordpress-chinese-toolkit.html</link>
		<comments>http://www.wpcourse.com/wordpress-chinese-toolkit.html#comments</comments>
		<pubDate>Fri, 28 Aug 2009 02:47:35 +0000</pubDate>
		<dc:creator>ralix</dc:creator>
				<category><![CDATA[Wordpress经验总结]]></category>
		<category><![CDATA[wordpress中文]]></category>
		<category><![CDATA[wordpress插件]]></category>

		<guid isPermaLink="false">http://www.wpcourse.com/?p=881</guid>
		<description><![CDATA[WordPress中文工具箱在国内是一个使用广泛的工具包。它用来解决官方 WordPress 没有照顾到的中文相关问题。 使用这个wordpress插件，你可以显示随机文章，最新留言，留言最多文章，发表评论最多的网友，以及真正的文章摘要（如果你的模板里使用的是the_excerpt()来调用内容的话）等等，真正截断，没有<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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-plugin-pushpress-realtime-web.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress插件介绍-PuSHPress实时推送博客更新</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-editor.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">丰富WordPress编辑器 CKEditor for WordPress</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-thumbnail-plugin.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress缩略图插件推荐 WP-Thumbnails</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-wp-slug.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress插件介绍-wp-slug处理中文URL</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-ozh-admin-drop-down-menu-plugin.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress插件介绍–Ozh’ Admin Drop Down Menu 插件优化博客的后台菜单显示</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.wpcourse.com/wordpress-chinese-toolkit.html"title="WordPress中文工具箱" >WordPress中文工具箱</a></strong>在国内是一个使用广泛的工具包。它用来解决官方 WordPress 没有照顾到的中文相关问题。</p>
<p>使用这个<a href="http://www.wpcourse.com/tag/wordpress插件"title="wordpress插件" >wordpress插件</a>，你可以显示随机文章，最新留言，留言最多文章，发表评论最多的网友，以及真正的文章摘要（如果你的模板里使用的是the_excerpt()来调用内容的话）等等，真正截断，没有乱码。</p>
<p>这个插件的下载地址：<a href="http://yanfeng.org/blog/uploads/mulberrykit.zip">http://yanfeng.org/blog/uploads/mulberrykit.zip</a></p>
<p>本文把这个中文工具箱的各项功能做一个总结和点评。</p>
<p>安装：</p>
<p>解压缩，把 mulberrykit.php 上传至 /wp-content/plugins/<br />
在管理界面里激活 中文 WordPress 工具箱插件（如果你在使用 WordPress 随机文章和 WordPress 评论插件，务必先停用这两个插件。）</p>
<p>使用说明：</p>
<p><strong>1、最新回响</strong></p>
<blockquote><p>&lt;?php get_recent_comments(); ?&gt;</p>
<p>调用方式：get_recent_comments($no_comments = 5, $before = ‘&lt;li&gt; ‘, $after = ‘&lt;/li&gt;’, $show_pass_post = false)</p>
<p>$no_comments：显示回响数，缺省为5条；</p>
<p>$before：每条记录前显示的文字，缺省&lt;li&gt;</p>
<p>$after：每条记录后显示的文字，缺省&lt;/li&gt;</p>
<p>$show_pass_post：是(true)/否(false)显示保护了的文章，缺省否(false)</p>
<p>补充：</p>
<p>kdolphin 在回应里提出，希望在最新回响里不显示自己的回应。这很容易做到。在get_recentcomments() 这个函数里找到这一句</p>
<p>post_status = ‘publish’   在后面 加上  AND comment_author != ‘桑葚’  就可以了。（把上面的桑葚改成你自己的昵称；引号是半角的）</p>
<p>注意：最好在wp的插件编辑窗口下改，以免乱码的问题。</p>
<p>根据网友的建议加上了两个相关的函数：</p>
<p>仅显示留言，不包括引用 &lt;?php get_recent_comments_only (); ?&gt;</p>
<p>仅显示引用（包括trackback和pingback）&lt;?php get_recent_trackbacks(); ?&gt;</p>
<p>调用方式与&lt;?php get_recent_comments(); ?&gt;相同。</p></blockquote>
<p>当你在主题里需要加入最新回复的地方（一般是single.php或index.php），输入&lt;?php get_recent_comments(10); ?&gt; 就是显示10条回复了。您并不需要把$no_comments这个东西也写进去。</p>
<p><strong>2、最新文章</strong></p>
<blockquote><p>&lt;?php get_recent_posts(); ?&gt;</p>
<p>调用方式：get_recent_posts($no_posts = 5, $before = ‘&lt;li&gt;+ ‘, $after = ‘&lt;/li&gt;’, $show_pass_post = false, $skip_posts = 0)</p>
<p>$no_posts：显示文章数，缺省为5条；</p>
<p>$before：每条记录前显示的文字，缺省&lt;li&gt;</p>
<p>$after：每条记录后显示的文字，缺省&lt;/li&gt;</p>
<p>$show_pass_post：是(true)/否(false)显示保护了的文章，缺省否(false)</p>
<p>$skip_posts：跳过多少篇文章，缺省为0；</p></blockquote>
<p>对每一个参数它都有一个默认值，如果您不指定参数的调用get_recent_posts()，则参数都使用默认值。您也可以部分使用参数，或完全使用参数。比如：&lt;?php get_recent_posts(10, &#8216;我在前&#8217;, &#8216;我在后&#8217;, false, 0); ?&gt;<br />
<strong>3、评论最多的帖子</strong></p>
<blockquote><p>&lt;?php get_mostcommented(); ?&gt;</p>
<p>调用方式：get_mostcommented($limit = 5)</p></blockquote>
<p>其实是：get_mostcommented(5)</p>
<p><strong>4、发表评论最多的网友</strong></p>
<p>&lt;?php get_commentmembersstats(); ?&gt;</p>
<p style="padding-left: 30px;">把代码里面的blogmaster改成你自己的名字，可以滤掉你自己的名字。</p>
<p style="padding-left: 30px;">调用方式：get_commentmembersstats($threshhold = 5)</p>
<p>其实是：get_commentmembersstats(5)</p>
<p><strong>5、随机文章</strong></p>
<p style="padding-left: 30px;">由<a href="http://www.w-a-s-a-b-i.com/archives/2004/05/27/wordpress-random-posts-plugin/">这个插件</a>修改而来：</p>
<p style="padding-left: 30px;">a、改了提取excerpt摘要的方式，可适用于中文；</p>
<p style="padding-left: 30px;">b、摘要可显示于文章链接的title里，或者直接在页面上，可选；</p>
<p style="padding-left: 30px;">c、在文章链接的title里显示日期。</p>
<p style="padding-left: 30px;">在模板里调用 &lt;?php random_posts(); ?&gt;</p>
<p style="padding-left: 30px;">调用方式: random_posts ($limit = 5, $length = 400, $before = ‘&lt;li&gt;’, $after = ‘&lt;/li&gt;’, $show_pass_post = false, $show_excerpt_in_title = true)</p>
<p style="padding-left: 30px;">$limit：显示文章数，缺省5篇；</p>
<p style="padding-left: 30px;">$length：摘要长度，缺省400；</p>
<p style="padding-left: 30px;">$before：每条记录前显示的文字，缺省&lt;li&gt;</p>
<p style="padding-left: 30px;">$after：每条记录后显示的文字，缺省&lt;/li&gt;</p>
<p style="padding-left: 30px;">$show_pass_post：是(true)/否(false)显示保护了的文章，缺省否(false)</p>
<p style="padding-left: 30px;">$show_excerpt_in_title：是(true)，摘要显示于文章链接的title；否(false)，直接显示于页面；缺省是(true)</p>
<p><strong>6、显示摘要</strong></p>
<blockquote><p>某些情况下需要输出摘要，比如搜索结果、档案，还有 rss 输出，这样可以节省流量资源。但是，如果你的文章是中文的话，官方 WordPress 输出的其实并不是摘要，它只是把文章里的 html 代码过滤掉了，但所有文字都还是原样输出了。激活这个插件后，输出的就是真正截断的摘要了。</p></blockquote>
<p>显示摘要是插件激活之后自动就生效的了，不需要再去插入什么代码。</p>
<p><strong>wordpress中文工具箱</strong>，就介绍到这里了。</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-plugin-pushpress-realtime-web.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress插件介绍-PuSHPress实时推送博客更新</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-editor.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">丰富WordPress编辑器 CKEditor for WordPress</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-thumbnail-plugin.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress缩略图插件推荐 WP-Thumbnails</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-wp-slug.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress插件介绍-wp-slug处理中文URL</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.htm?url=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-ozh-admin-drop-down-menu-plugin.html&from=http%3A%2F%2Fwww.wpcourse.com%2Fwordpress-chinese-toolkit.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress插件介绍–Ozh’ Admin Drop Down Menu 插件优化博客的后台菜单显示</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.wpcourse.com/wordpress-chinese-toolkit.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

