<?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 插件 &#8211; 九创科技</title>
	<atom:link href="https://www.3code.cn/tag/wordpress-plugin-tags/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.3code.cn</link>
	<description>Wordpress外贸企业主题, Wp企业主题, wordpress企业主题, wordpress主题定制, WORDPRESS外贸网站建设SEO</description>
	<lastBuildDate>Mon, 12 Mar 2012 03:50:55 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Just Custom Fields for WordPress</title>
		<link>https://www.3code.cn/just-custom-fields-for-wordpress/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Mon, 12 Mar 2012 03:50:55 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=3021</guid>

					<description><![CDATA[Installation: Download, unzip and upload to your W<a class="moretag" href="https://www.3code.cn/just-custom-fields-for-wordpress/"> 阅读更多&#8230;</a>]]></description>
										<content:encoded><![CDATA[<h3>Installation:</h3>
<ol>
<li>Download, unzip and upload to your WordPress plugins directory</li>
<li>Activate the plugin within your WordPress Administration Backend</li>
<li>Go to Settings &gt; Just Custom Fields</li>
<li>Choose  Post Type (Standard/Custom)  where you would like to edit custom fields</li>
<li>Create Fieldset</li>
<li>Add fields to the fieldset.</li>
</ol>
<h3>Screenshots:</h3>
<p>On this screenshot you can see settings page for a “Page” post type.  You can create fieldsets and fields inside of it. This page uses <a href="http://codex.wordpress.org/AJAX_in_Plugins" target="_blank">WordPress AJAX API</a>, so it updates without any redirects and editing rather quickly.</p>
<p><a rel="lightbox" href="http://justcoded.com/wp-content/uploads/2011/07/screenshot-1.png"><img fetchpriority="high" decoding="async" title="screenshot-1" src="https://justcoded.com/wp-content/uploads/2011/07/screenshot-1-423x241.png" alt="screenshot 1 423x241 Just Custom Fields for WordPress plugin" width="423" height="241" /></a></p>
<p>You can create field with one of  types below:</p>
<ul>
<li>Input text: usual single-line text box</li>
<li>Select: usual dropdown list</li>
<li>Select Multiple:  area which allow you to select multiple options from the list</li>
<li>Checkbox: you can add one or multiple checkboxes</li>
<li>Textarea: multi-line text field. You can also enable WordPress editor for this field</li>
<li>Datepicker:  input field with calendar popup to choose a date.</li>
<li>Upload media: use this field to create multiple images or files container</li>
<li>Fields Group: using  this field you can create a “table” of fields.  For example you want to attach clients table to a  page – you can create  fields group with client/phone/email fields. And add them without any  HTML</li>
</ul>
<p>Next screenshot illustrates how fieldset will look on a post edit  page. There are usual text box, date picker field and Upload image field  (as you can see you can upload many images here).</p>
<p><a rel="lightbox" href="http://justcoded.com/wp-content/uploads/2011/07/screenshot-2.png"><img decoding="async" title="screenshot-2" src="https://justcoded.com/wp-content/uploads/2011/07/screenshot-2-327x241.png" alt="screenshot 2 327x241 Just Custom Fields for WordPress plugin" width="327" height="241" /></a></p>
<p>Developers also find this plugin very useful. Cause  it’s very easy  to add their own components and custom fields with their own plugins and  even themes using some new hooks. For more details you are welcome to  check readme.txt from the plugin package.</p>
<h3>Templates usage</h3>
<p>To use values from these fields in your theme, you can use usual post meta functions such as:</p>
<ul>
<li><a href="http://codex.wordpress.org/Function_Reference/get_post_meta" target="_blank">get_post_meta()</a></li>
<li><a href="http://codex.wordpress.org/Function_Reference/get_post_custom" target="_blank">get_post_custom()</a></li>
</ul>
<p>Let’s give you some examples. For example we create 3 custom fields  for the Page with such slugs: price (Input Text), features  (Checkboxes/multiple), slide_images (Upload Media / image). To get  values in templates you need to call such lines of code inside the loop  functions:</p>
<div>
<div>
<pre>$price = get_post_meta($post-&gt;ID, 'price', true);   // we get value for input text
$images = get_post_meta($post-&gt;ID, 'slide_images', true);  // we get array of images
$features = get_post_meta($post-&gt;ID, 'features', true);    // we get array of checked checkboxes</pre>
</div>
</div>
<p>Now when you have variables with data you can print them in the template. For example like this:</p>
<div>
<div>
<pre>&lt;p&gt;Price: &lt;?php echo $price; ?&gt;&lt;/p&gt;
&lt;p&gt;Features: &lt;?php foreach($features as $feature) echo $feature.','; ?&gt;&lt;/p&gt;
&lt;p&gt;Images:&lt;/p&gt;
&lt;?php if(!empty($images)) foreach($images as $img) : ?&gt;
	&lt;div&gt;&lt;img src="&lt;?php echo $img['image']; ?&gt;" alt="&lt;?php echo esc_attr($img['title']); ?&gt;" /&gt;&lt;/div&gt;
&lt;?php endforeach; ?&gt;</pre>
</div>
</div>
<p>If you need print single image from custom field you can use such code for this:</p>
<div>
<div>
<pre>&lt;p&gt;Image: &lt;img src="&lt;?php echo $images[0]['image']; ?&gt;" alt="&lt;?php echo esc_attr($images[0]['title']); ?&gt;" /&gt;&lt;/p&gt;</pre>
</div>
</div>
<p>You can read more about using custom fields on codex.WordPress.org: <a href="http://codex.wordpress.org/Custom_Fields" target="_blank">Custom Fields</a> or search more information in google. There are a lot of example on  different sites how to use WordPress custom fields. Our plugin just make  easy interface to edit them in administration panel, and you can use  all build-in WordPress functions for custom fields.</p>
<h3>Template functions for Upload Media type “Image”</h3>
<p>Since i’ve posted my plugin i had a lot of comments about “How to use  Upload Media field in templates”. When I develop this plugin I wanted  make life easier for developers. But a lot of people with pure PHP  knowledge found it useful. So I decide to make few templates functions  for people who are not familiar with PHP.<br />
These functions are available <strong>since version 1.3</strong>:</p>
<ul>
<li>just_custom_image( $post_id, $field_slug, [$args_single] );</li>
<li>just_custom_images_list( $post_id, $field_slug, [$args_multiple] );</li>
</ul>
<p>These functions take care about PHP routine and just print image or images list. Function params are:<br />
<strong>$post_id</strong> – your post ID<br />
<strong>$field_slug</strong> – your meta field slug<br />
<strong>$args_single</strong> – array of additional params you may want to use. Available keys are:<br />
* ‘before’ (html to insert before image tag, default: none),<br />
* ‘after’ (html to insert after image tag, default: none),<br />
* ‘width’ (image width attribute value, default: none),<br />
* ‘height’ (image height attribute value, default: none),<br />
* ‘echo’ (print html or just return, default: true)<br />
<strong>$args_multiple</strong> – array of additional params you may want to use. Available keys are:<br />
* ‘before’ (html to insert before images list, default: ‘&lt;ul&gt;’),<br />
* ‘after’ (html to insert after images list, default: ‘&lt;/ul&gt;’),<br />
* ‘before_item’ (html to insert before images list item, default: ‘&lt;li&gt;’),<br />
* ‘after_item’ (html to insert after images list item, default: ‘&lt;/li&gt;’),<br />
* ‘width’ (image width attribute value, default: none),<br />
* ‘height’ (image height attribute value, default: none),<br />
* ‘echo’ (print html or just return, default: true)</p>
<p>Let’s try few examples.<br />
<strong>Example 1:</strong> print single image:</p>
<div>
<div>
<pre>	just_custom_image($post-&gt;ID, 'slide_images');</pre>
</div>
</div>
<p><strong>Example 2:</strong> print single image wrapped with &lt;div&gt; tag and has width/height set to 100px:</p>
<div>
<div>
<pre>	just_custom_image($post-&gt;ID, 'slide_images', array(
		'before' =&gt; '&lt;div&gt;',
		'after' =&gt; '&lt;/div&gt;',
		'width' =&gt; 100,
		'height' =&gt; 100,
	));</pre>
</div>
</div>
<p><strong>Example 3:</strong> print list of images</p>
<div>
<div>
<pre>	just_custom_images_list($post-&gt;ID, 'slide_images');</pre>
</div>
</div>
<p><strong>Example 3:</strong> print list of images based on DIV tags</p>
<div>
<div>
<pre>	just_custom_images_list($post-&gt;ID, 'slide_images', array(
		'before' =&gt; '&lt;div&gt;',
		'after' =&gt; '&lt;/div&gt;',
		'before_item' =&gt; '&lt;div&gt;',
		'after_item' =&gt; '&lt;/div&gt;',
	));</pre>
</div>
</div>
<h3>Download</h3>
<p>Our plugin is available for download:</p>
<p><a href="http://dl.dropbox.com/u/5307536/develop/wordpress/just-custom-fields.zip">download Just Custom Fields for WordPress</a><br />
or<br />
<a href="http://wordpress.org/extend/plugins/just-custom-fields/" target="_blank">download from WordPress.org repository</a></p>
<h3>DONATION</h3>
<p>The script is free for use, but if you want to support the script  author by donating some $$$ please use the form below, thanks in  advance.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Multiple content blocks后台多编辑器插件</title>
		<link>https://www.3code.cn/multiple-content-blocks%e5%90%8e%e5%8f%b0%e5%a4%9a%e7%bc%96%e8%be%91%e5%99%a8%e6%8f%92%e4%bb%b6/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Sat, 11 Feb 2012 12:01:08 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=3006</guid>

					<description><![CDATA[Multiple content blocks后台多编辑器插件]]></description>
										<content:encoded><![CDATA[<div>
<div id="outputText">
<div>
<p>这个插件,你可以使用超过一个内容“块”,在一个模板。你只需要在模板内插入一个标签,所以它使用方便。</p>
<p>我做了这个插件,因为我认为这是必要的,任何CMS能够使用更多的内容块在一个模板。我真的错过了这次的功能,在评论,我没有找到一个像样的插件,那么我做了一个有钱人。</p>
<p><strong>什么是“多重内容块&#8221;?</strong></p>
<p>当你用一个WordPress模板,你可以显示当前页面的内容用代码the_content(),但是当你有几列内容时,你不能分开这些不同的“块”。</p>
<p>你想让你的客户编辑不同块的内容,就用这个插件。</p>
<p><strong>使用与安装：</strong></p>
<div>
<ol>
<li>Extract the contents to the <code>/wp-content/plugins/multiple-content/</code> directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>Place <code>&lt;?php the_block('blockname'); ?&gt;</code> in your template where you want a content block</li>
<li>Edit this content on the page editing page</li>
</ol>
</div>
<p><strong>给变量：</strong></p>
<p>&lt;?php $content_to_edit = get_the_block(&#8216;blockname&#8217;); ?&gt;</p>
</div>
</div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress插件Category SEO Meta Tags</title>
		<link>https://www.3code.cn/wordpress%e5%88%86%e7%b1%bb%e6%8f%92%e4%bb%b6category-seo-meta-tags/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Fri, 25 Nov 2011 05:22:31 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2910</guid>

					<description><![CDATA[Category SEO Meta Tags是一款SEO优化类插件，从名字你不难看出，它是帮助你为博<a class="moretag" href="https://www.3code.cn/wordpress%e5%88%86%e7%b1%bb%e6%8f%92%e4%bb%b6category-seo-meta-tags/"> 阅读更多&#8230;</a>]]></description>
										<content:encoded><![CDATA[<p>Category SEO Meta Tags是一款SEO优化类插件，从名字你不难看出，它是帮助你为博客中的分类添加title、Description、Tag标记，让你的博客更加的有利于SEO优化。</p>
<p>Category SEO Meta Tags插件安装：<br />
1、下载Category SEO Meta Tags插件，将压缩包解压后，把文件夹上传到wp-content/plugins/目录下，登录WordPress管理后台，点击“Plugins”找到上传的插件，激活该插件。<br />
2、插件激活后，在后台的左侧栏中“Appearacne” -&gt; “Theme Editor ”，找到Header.php文件，然后，用下面的代码：</p>
<p>&lt;title&gt;<br />
&lt;?php if (function_exists(&#8216;cat_seo_title_tag&#8217;)) { cat_seo_title_tag(); } else { if (is_category()) { single_cat_title(); wp_title(); } else {wp_title(); } } ?&gt;<br />
&lt;/title&gt;</p>
<p>取代模版中原有的代码：</p>
<p>&lt;title&gt;&lt;?php bloginfo(&#8216;name&#8217;); wp_title(); ?&gt;&lt;/title&gt;</p>
<p>3、设置好后，在后台的左侧栏中“Categories”中，为你的分类添加相关属性，如下图：</p>
<p>WordPress博客SEO优化插件Category SEO Meta Tags</p>
<p>设置成功后，点击“Update Category”即可，如果你正在使用All In One SEO Pack插件，你也可以把这两个插件有些的结合起来，不过需要修改下代码，找到All In One SEO Pack插件文件中的aioseop.class.php，</p>
<p>打开文件，大概在105行的位置，找到代码</p>
<p>&#8220;if ($aioseop_options[&#8216;aiosp_rewrite_titles&#8217;]) {&#8221;</p>
<p>替换为:</p>
<p>&#8220;if ($aioseop_options[&#8216;aiosp_rewrite_titles&#8217;] &amp;&amp; !is_category()) {&#8221;</p>
<p>替换好之后就OK了，这样这两款插件就可以有效的结合起来，相信能为你的博客的SEO优化带来帮助。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>No category parents插件</title>
		<link>https://www.3code.cn/no-category-parents%e6%8f%92%e4%bb%b6/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Sun, 18 Sep 2011 10:13:21 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<category><![CDATA[wordpress分类插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2849</guid>

					<description><![CDATA[No category parents插件是去除wordpress静态化以后所显示的分类路径，就是不管是父类还是子类，路径永远都是你的域名/分类名。
]]></description>
										<content:encoded><![CDATA[<p>No category parents插件是去除wordpress静态化以后所显示的分类路径，就是不管是父类还是子类，路径永远都是你的域名/分类名。</p>
<p>这样子的做法去除了搜索引擎探索的深度，个人认为对SEO效果有很大的帮助，推荐使用！</p>
<p><strong>安装方法：</strong><br />
直接在wordpress的后台搜索 “No category parents” 安装即可。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>wordpress搜索功能的Search Everything插件</title>
		<link>https://www.3code.cn/wordpress%e6%90%9c%e7%b4%a2%e5%8a%9f%e8%83%bd%e7%9a%84search-everything%e6%8f%92%e4%bb%b6/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Sat, 06 Aug 2011 08:03:05 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2778</guid>

					<description><![CDATA[WordPress自带搜索功能并不是很好用，它只能搜索帖子的内容而不能搜索到帖子的评论留言什么的。但有时候读者会从评论留言中得到有效的信息，所以如果你想让你的WordPress搜索功能更强大，更好的为读者服务的话，你可以使用 Search Everything 这个插件。]]></description>
										<content:encoded><![CDATA[<p><strong>Search Everything插件介绍：</strong></p>
<p>WordPress自带搜索功能并不是很好用，它只能搜索帖子的内容而不能搜索到帖子的评论留言什么的。但有时候读者会从评论留言中得到有效的信息，所以如果你想让你的WordPress搜索功能更强大，更好的为读者服务的话，你可以使用 Search Everything 这个插件。</p>
<p><strong>Search Everything插件功能：</strong></p>
<p>Search Everything 是一个增加WordPress默认搜索能力的插件。它可以让你的WordPress 拥有更加高级的搜索功能:</p>
<p>搜索每个页面，标签和分类<br />
只搜索没有密码保护的日志<br />
搜索每条留言，通过审核的留言<br />
搜索草稿，摘要，附件<br />
搜索自定义字段<br />
从搜索结果中排除指定日志或指定分类</p>
<p><strong>Search Everything插件安装:</strong></p>
<p>下载Search Everything插件，将压缩包解压后，把文件夹上传到wp-content/plugins/目录下。<br />
登录WordPress管理后台，点击“Plugins”找到上传的插件，激活该插件,即可。<br />
激活插件后，在&#8221;Setting&#8221;版块下点击“Search Everything”对页面进行管理。</p>
<p>在这个后台页面有丰富的定义，你可以设置能搜索的内容：评论，页面，存档，连草稿和自定义域都能搜索到！不能不说它厉害。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress自定义表单插件cforms</title>
		<link>https://www.3code.cn/wordpress%e8%87%aa%e5%ae%9a%e4%b9%89%e8%a1%a8%e5%8d%95%e6%8f%92%e4%bb%b6cforms/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Tue, 02 Aug 2011 06:06:22 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2774</guid>

					<description><![CDATA[为了更好的互动，更好的与访客朋友们联系，你是否想过为自己的博客添加留言板功能，在自己的博客中添加联系表单功能，如果自己写的话，如果你的 CSS功底比较不错，写过具有这样功能的表单没有什么问题，如果你CSS学的不怎么样的话，费时费力不说，而且写出了的表单是否满足相应的功能，都很难 说。]]></description>
										<content:encoded><![CDATA[<p>为了更好的互动，更好的与访客朋友们联系，你是否想过为自己的博客添加留言板功能，在自己的博客中添加联系表单功能，如果自己写的话，如果你的 CSS功底比较不错，写过具有这样功能的表单没有什么问题，如果你CSS学的不怎么样的话，费时费力不说，而且写出了的表单是否满足相应的功能，都很难 说。</p>
<p>笔者也在一直寻找这样的插件，省时省力，何乐不为呢？功夫不负有心人，笔者终于找的了这样的一款强大的表单插件，它就是cformsII，cforms意思为custom forms，就是自定义表单的意思。</p>
<p><strong>cformsII具有以下功能:</strong></p>
<ul>
<li>设定自定义表单，允许插入到页面，日志中去；</li>
<li>非常强悍的表单定制功能，支持各种表单域，可添加验证码，Ajax提交；<br />
<a href="http://www.wordpress.la/sites/default/files/09052701.gif" target="_blank"><img decoding="async" src="https://www.wordpress.la/sites/default/files/09052701.gif" alt="" width="385" height="192" /></a><br />
<a href="http://www.wordpress.la/sites/default/files/09052702.gif" target="_blank"><img loading="lazy" decoding="async" src="https://www.wordpress.la/sites/default/files/09052702.gif" alt="" width="385" height="301" /></a></li>
<li>可以取代WP的评论表单；</li>
<li>集成了Tell-A-Friend的功能；</li>
<li>强悍方便的后台管理界面；<br />
<a href="http://www.wordpress.la/sites/default/files/09052703.gif" target="_blank"><img loading="lazy" decoding="async" src="https://www.wordpress.la/sites/default/files/09052703.gif" alt="" width="385" height="315" /></a></li>
<li>无比丰富的文档；</li>
</ul>
<p><strong>cformsII插件安装：</strong></p>
<ol>
<li>下载cformsII插件，将压缩包解压后，把文件夹上传到wp-content/plugins/目录下。</li>
<li>登录WordPress管理后台，点击“Plugins”找到上传的插件，激活该插件,即可。</li>
<li>激活插件后，在左侧会出现cformsII版块，点击链接会出现如上图的界面。</li>
<li><a href="https://www.3code.cn/download/cforms105.zip" target="_blank">下载cforms10.5</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress插件开发基本代码结构注释</title>
		<link>https://www.3code.cn/wordpress%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91%e5%9f%ba%e6%9c%ac%e4%bb%a3%e7%a0%81%e7%bb%93%e6%9e%84%e6%b3%a8%e9%87%8a/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Tue, 02 Aug 2011 05:54:04 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[WORDPRESS教程]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2767</guid>

					<description><![CDATA[WordPress插件开发参考]]></description>
										<content:encoded><![CDATA[<p>以下代码根据插件精简所得，通过代码行间的简单注释，可以作为开发WordPress插件的一个查考。类中所有方法的名称不受WordPress约束，均为自行所命之名。</p>
<blockquote>
<pre>
<pre><code>/*
Plugin Name: ShuiFou
Plugin URI: http://www.chibl.com/shuifou
Description: 睡否?
Version: 0.3
Author: Miracle
Author URI: http://www.chibl.com
License: GPLv2
*/

if(!class_exists('ShuiFou')) :
    class ShuiFou {
        var $id;
        var $name;
        var $version;
        var $options;

        //构造方法，可在此初始化插件常量
        function ShuiFou() {
            $this-&gt;id = 'com.chibl.shuifou';
            $this-&gt;name = 'ShuiFou';
            $this-&gt;version = '0.3';
        }

        //插件的入口方法，类实例化后将调用此方法
        function init() {
            $this-&gt;options = get_option($this-&gt;id);

            //如果当前访问的是后台管理页面
            if(is_admin()) {
                //在WordPress后台添加插件管理菜单
                add_action('admin_menu', array(&amp;$this,'menu'));
            } else {
                //根据需要设置钩子
                add_action('init', array(&amp;$this, 'action'));
                add_action('wp_head', array(&amp;$this, 'display'));
            }

            //添加小工具
            add_action('widgets_init', array(&amp;$this, 'widget'));
        }

        //在后台管理 设置 栏添加名为 ShuiFou 的菜单，链向插件配置页
        function menu() {
            add_options_page($this-&gt;id, $this-&gt;name, 'manage_options', __FILE__, array(&amp;$this, 'config'));
        }

        //插件配置页内容
        function config() {
        }

        //爱干嘛干嘛
        function action() {
        }

        //访问指定ID的页面时，修改页面内容
        function display() {
            if(is_page($this-&gt;options['pageid'])) {
                add_filter('the_content', array(&amp;$this,'page'));
            }
        }

        function page($content) {
            $content .= '追加内容……';
            return $content;
        }

        //注册小工具
        function widget() {
            include_once 'widget.php';
            register_widget('ShuiFouWidget');
        }

        //安装插件时将执行此方法，可在此创建或更新插件所需持久化的数据
        function install() {
        }

        //删除插件时将执行此方法，可在此删除安装插件时所创建的数据表及数据
        function uninstall() {
        }

    }
endif;

if(class_exists('ShuiFou')) {
    $sf = new ShuiFou(); //实例化
    register_activation_hook(__FILE__, array(&amp;$sf, 'install')); //指定安装插件时所要执行的方法
    register_deactivation_hook(__FILE__, array(&amp;$sf, 'uninstall')); //指定删除插件时所要执行的方法
    $sf-&gt;init();
}</code></pre>
</blockquote>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>wordpress自动给关键字加链接的插件</title>
		<link>https://www.3code.cn/wordpress%e8%87%aa%e5%8a%a8%e7%bb%99%e5%85%b3%e9%94%ae%e5%ad%97%e5%8a%a0%e9%93%be%e6%8e%a5%e7%9a%84%e6%8f%92%e4%bb%b6/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Mon, 25 Jul 2011 09:38:03 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2762</guid>

					<description><![CDATA[经常写blog的时候会有给关键字加链接的需求，比如，google，就想链接到www.google.com，说道baidu就链接到www.baidu.com这样。
前2天发现了一个。叫Blog Mechanics Keyword Link]]></description>
										<content:encoded><![CDATA[<p>经常写blog的时候会有给关键字加链接的需求，比如，google，就想链接到www.google.com，说道baidu就链接到www.baidu.com这样。<br />
前2天发现了一个。叫Blog Mechanics Keyword Link<br />
可以完成这个功能。<br />
你后台可以定义，维护关键字和对应的链接，还可以定义链接的类型。短小精悍，就一个文件，比较好用。</p>
<p>但是我试用的时候出了问题，没有效果，后来查代码发现，是正则表达式的问题，人家没考虑中文问题，所以在替换的时候，英文的关键字前后是有空格的，我们中文是没有空格的。修改了一点点代码，可以用了。</p>
<p>想省事的可以这里下载。<br />
<a title="blog-mechanics-keyword-link-plugin-v01.zip" href="https://www.3code.cn/download/blog-mechanics-keyword-link-plugin-v01.zip">wordpress给关键字加链接的插件</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress热文排行插件WordPress Popular Posts</title>
		<link>https://www.3code.cn/wordpress%e7%83%ad%e6%96%87%e6%8e%92%e8%a1%8c%e6%8f%92%e4%bb%b6wordpress-popular-posts/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Mon, 25 Jul 2011 09:29:09 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2760</guid>

					<description><![CDATA[为了防止曾经的热文被淹没掉，博主最好添加一个热文排行榜，让博客中的那些流行度比较高的文章，持续它们的价值，所以，很有必要安装热文排行插件，通过这个插件，你可以自定义显示类别、标题、链接数以及显示的评论数。]]></description>
										<content:encoded><![CDATA[<p>为了防止曾经的热文被淹没掉，博主最好添加一个热文排行榜，让博客中的那些流行度比较高的文章，持续它们的价值，所以，很有必要安装热文排行插件，通过这个插件，你可以自定义显示类别、标题、链接数以及显示的评论数。</p>
<p>WordPress Popular Posts插件安装使用也十分的方便，下载Wordpress Popular Posts插件，将压缩包解压后，把文件夹上传到wp-content/plugins/目录下，登录WordPress管理后台，点击“Plugins”找到上传的插件，激活该插件，可以在“Appearance”&#8212;&gt;“Widgets”中把它添加到侧栏中去</p>
<p>WordPress热文排行插件Wordpress Popular Posts</p>
<p>插件的选项，在Time Range中你可以根据自己的情况选择，热文的时间范围，范围如下：<br />
Today：今天</p>
<p>Last 7 days：最近7天<br />
Last 30 days：最近30天<br />
All-times：所有时间的</p>
<p>这些设置可以把我们的热文排行展现的更加全面。</p>
<p>Sort posts by选择中，我们可以选择排序的方式：<br />
Comments：评论<br />
Total views：总浏览量<br />
Avg.daily views：平均日浏览量</p>
<p>出来这些，你还可以选择文章显示的分类、Tag显示的方式等等，也不需特别的设置，只要在前面勾选就OK了。</p>
<p>最后，就是HTML格式的设置了，你可以自定义HTML样式，也可以使用默认的样式，根据自己的选择，设置好后点击Save保存就OK了。</p>
<p>WordPress Popular Posts插件下载地址：点击下载<br />
Wordpress Popular Posts插件作者地址：点击进入</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress插件WP-PostViews使用</title>
		<link>https://www.3code.cn/wordpress%e6%8f%92%e4%bb%b6wp-postviews%e4%bd%bf%e7%94%a8/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Mon, 25 Jul 2011 09:22:44 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<category><![CDATA[wordpress教程]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2756</guid>

					<description><![CDATA[该插件实现的功能是统计某篇文章被阅读次数并且可以实现侧边栏 Widget 以及显示最受欢迎（阅读数最多）文章、某分类下最受欢迎（阅读数最多）文章等功能，支持最新的 WP 2.3 版本。]]></description>
										<content:encoded><![CDATA[<p>一、WP-PostViews介绍</p>
<p>该插件实现的功能是统计某篇文章被阅读次数并且可以实现侧边栏 Widget 以及显示最受欢迎（阅读数最多）文章、某分类下最受欢迎（阅读数最多）文章等功能，支持最新的 WP 2.3 版本。</p>
<p>二、WP-PostViews安装方法</p>
<p>将解压得到的 postviews 文件夹上传到 /wp-content/plugins 文件夹中</p>
<p>激活 WP-PostViews 插件，然后可以去 Options 中设置</p>
<p>三、WP-PostViews使用方法</p>
<p>（一）一般应用</p>
<p>修改 /wp-content/themes/&lt;YOUR THEME NAME&gt;/index.php（single.php, post.php 或 page.php）</p>
<p>如果修改 index.php 找到</p>
<p>PHP代码</p>
<p>&lt;?php while (have_posts()) : the_post(); ?&gt;</p>
<p>将下面的语句添加到如何需要的地方</p>
<p>PHP代码</p>
<p>&lt;?php if(function_exists(’the_views’)) { the_views(); } ?&gt;</p>
<p>登录“WP-Admin -&gt; Options -&gt; Post Views”可以配置该插件</p>
<p>Count Views From 设置被统计的用户群</p>
<p>Views Template 该插件显示样式</p>
<p>（二）侧边栏 Widget 使用</p>
<p>激活 “WP-PostViews Widget” 插件</p>
<p>登录 “’wp-admin -&gt; Presentation -&gt; Widgets”</p>
<p>为了显示“Most Viewed Post（最受欢迎文章）”拖曳（Drag）“Most Viewed Widget”到侧边栏</p>
<p>可以点击配置图标对 “Most Viewed Widget” 进行配置，然后点击“Save changes”保存</p>
<p>（三）调用使用</p>
<p>1、显示最受欢迎（阅读次数最多）文章，使用下面语句</p>
<p>PHP代码</p>
<p>&lt;?php if (function_exists(’get_most_viewed’)): ?&gt;</p>
<p>&lt;?php get_most_viewed(); ?&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>第一个值是你想得到的列表的类型是“文章”或“页面”或“两者都有”，如“’pos”、“page”或者“both”</p>
<p>第二个值是你想得到的列表的对象个数</p>
<p>默认的是这样的：</p>
<p>PHP代码</p>
<p>get_most_viewed(’both’, 10); //获取被阅读次数最多的10篇文章和页面</p>
<p>2、显示某个分类下最受欢迎（阅读次数最多）文章</p>
<p>PHP代码</p>
<p>&lt;?php if (function_exists(’get_most_viewed_category’)): ?&gt;</p>
<p>&lt;?php get_most_viewed_category(); ?&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>第一个值是分类目录的ID</p>
<p>第二个值是列表的类型“文章”或“页面”或“两者都有”，如“post”、“page”、“both’”</p>
<p>第三个值是列表中对象的个数</p>
<p>默认是这样的：</p>
<p>PHP代码</p>
<p>get_most_viewed_category(1, ‘both’, 10); //ID为1的目录下阅读最多的10篇文章和页面</p>
<p>四、WP-PostViews 升级方法</p>
<p>禁用 WP-PostViews 插件</p>
<p>上传并覆盖 /wp-content/plugins 中的 postviews 文件夹</p>
<p>删除 postviews.php 文件</p>
<p>激活 WP-PostViews 插件</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress Category Post Lists插件</title>
		<link>https://www.3code.cn/wordpress-category-post-lists%e6%8f%92%e4%bb%b6/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Mon, 18 Jul 2011 14:32:39 +0000</pubDate>
				<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2754</guid>

					<description><![CDATA[WordPress的分类帖子列表是一个功能强大的WordPress插件，它可以在侧边栏上面显示指定类别下面的最新文章，还可以显示缩略图。功能比较强大推荐使用！]]></description>
										<content:encoded><![CDATA[<p>WordPress的分类帖子列表是一个功能强大的WordPress插件，它可以在侧边栏上面显示指定类别下面的最新文章，还可以显示缩略图。功能比较强大推荐使用！</p>
<p>可以直接在后台插件管理面板里输入Category Post Lists 直接搜索安装。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress插件开发API(Plugin)</title>
		<link>https://www.3code.cn/wordpress%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91apiplugin/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Thu, 07 Jul 2011 09:44:36 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<category><![CDATA[wordpress插件]]></category>
		<category><![CDATA[wordpress教程]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2738</guid>

					<description><![CDATA[WordPress插件开发API(Plugin)]]></description>
										<content:encoded><![CDATA[<h2>Plugin API</h2>
<h3>介绍</h3>
<p>本文当主要介绍<a title="WP" href="http://wordpress.org/">WordPress</a>插件开发者可以使用的API Hook，以及如何使用它们。</p>
<p>本文假设您已经阅读了《<a title="Writing a Plugin" href="http://codex.wordpress.org/Writing_a_Plugin">Writing a Plugin</a>》（这篇文章概览了如何写一个插件）。本文主要介绍API Hook，也称作Filter和Action，<a title="WP" href="http://wordpress.org/">WordPress</a>使用这些函数来使您的插件起作用。</p>
<p>注意：本文的内容适用于WordPress1.2+。</p>
<p>&nbsp;</p>
<h3>Hook，Action和Filter</h3>
<p>Hook是<a title="Becoming Charles-WP" href="http://sexywp.com/cata/wp">WordPress</a>提供的一种机制，帮助您将您的插件加入到<a title="WP" href="http://wordpress.org/">WordPress</a>中；也即，在您的插件中，通过调用一些系统函数，使得您的插件可以运作起来。一共有两种Hook：</p>
<ol>
<li>Action：Action是<a title="WP" href="http://wordpress.org/">WordPress</a>内核在运行到某个特定的点的，或者某个特定的事件发生的时候执行的。您可以通过使用Action API让您的插件中的一个或者多个函数在这些特定的点执行。</li>
<li>Filter：Filter是<a title="Becoming Charles-WP" href="http://sexywp.com/cata/wp">WordPress</a>在将一段文本加入到数据库，或者发送给浏览器之前处理不同种类的文本用的。您的插件可以通过使用Filter API，让一个或者多个函数在这些时刻运行，以处理特定类型的文本。</li>
</ol>
<p>有的时候，您可以使用Action和Filter达到相同的目的。比如说，您希望你的插件可以更改一段日志的文本，您可能会往<code>publish_post</code>中添加一个Action函数（这段文字在被加入到数据库之前被修改了），或者往 <code>the_content</code>中添加一个Filter函数（这段文字在被发送给浏览器显示之前，被更改了）。</p>
<h3>Action</h3>
<p>Action由<a title="Becoming Charles-WP" href="http://sexywp.com/tags/wordpress">WordPress</a>中发生的一些特定的事件所触发，比如发布一篇日志，更改主题，或者在管理面板显示一个页面。您的插件可以通过执行一个PHP函数来响应事件，实现以下几个目的：</p>
<ul>
<li>修改数据库数据</li>
<li>发送Email信息</li>
<li>修改将要在浏览器上呈现的内容（管理员看到的或者访客看到的）</li>
</ul>
<p>要达到上述的目的，需要遵循的步骤为（下文有详细的描述）：</p>
<ol>
<li>在您的插件文件中，创建一个在某个事件发生时，需要运行的PHP函数。</li>
<li>通过调用<code>add_action</code>函数，将您的函数插入到<a title="WP" href="http://wordpress.org/">WordPress</a>中。</li>
<li>将您的插件文件放到插件目录下，然后激活它。</li>
</ol>
<h4>创建一个Action 函数</h4>
<p>在您的插件中创建一个Action的第一个步骤是创建一个能响应Action的函数，并且将它写入到您的插件文件里（您的插件文件最后会被放到<em>content/plugins</em>目录）。举个例子，如果您想要您的朋友在您发表了新文章的时候收到一封邮件，您可以创建下述函数：</p>
<p><code><br />
function email_friends($post_ID) {<br />
$friends = ‘bob@example.org,susie@example.org’;<br />
mail($friends, "sally’s blog updated",<br />
‘I just put something on my blog: http://blog.example.com’);<br />
return $post_ID;<br />
}<br />
</code></p>
<p>对于大多数的Action来说，您的函数要接受一个单一参数（通常是日志或这评论的ID，这要视情况而定）。有些Action接受多于一个的参数， 您可以查看WordPress的Action文档，或者直接查看WordPress源代码来取得第一手资料。除了一个参数外，您还可以访问 WordPress的全局变量，并且调用其他WordPress函数或者您插件中的其他函数（或者其他插件中的函数）。</p>
<p><strong>注意</strong>：您要始终留意，是否WordPress本身或者其他的插件已经使用了您想用的那个函数的名字。关于这点，您可以查看<a title="Avoiding Function Name Collisions" href="http://codex.wordpress.org/Writing_a_Plugin#Avoiding_Function_Name_Collisions">避免函数名冲突</a>这篇文章来获取更详细的信息。</p>
<h4>Hook到WordPress</h4>
<p>当您定义好您的函数后，下一步就是将您的函数Hook或者注册到WordPress中。在您的插件文件中的全局空间中调用函数 add_action()就可以了：</p>
<pre>add_action(’hook_name’, ‘your_filter’, [priority], [accepted_args]);</pre>
<p>该函数中：</p>
<ul>
<li><code>hook_name</code>是WordPress提供的供hook用的函数名，也即您的函数将关联到的事件的名称。</li>
<li><code>your_function_name</code> 是您希望在<code>hook_name</code>指定的事件发生时执行的函数的名称。这可以是一个在WordPress中定义好的标准的函数，也可以是一个您自己定义的函数（比如上面提到的<code>email_friends</code>）</li>
<li><code>priority</code>是一个可选的整型参数，可以指定可以指定关联到某个特定的函数的执行顺序。默认值是10。数字较小的执行较早，如果优先级相同，则按照他们hook进来的顺序先后来执行。</li>
<li><code>accepted_args</code>是一个可选的整型参数，它定义了您的函数可以接受多少个参数，默认是1。这个参数很有用，因为有些事件发生的时候，可能会向您的函数传递多于一个的参数。这个参数是从WordPress 1.5.1后的版本才开始有的。</li>
</ul>
<p>继续前文的例子，我们可以将下面一行代码加入到插件的文件中：</p>
<pre>add_filter(’comment_text’,'filter_profanity’);</pre>
<p>相似的，您也可以将一个函数从Action中移除。你可以参考移除Action来获得详细的信息。</p>
<h4>安装和激活</h4>
<p>让您的插件奏效的最后一个步骤就是安装和激活和插件了。您写好的函数和对add_action的调用，必须放到同一个文件中，插件文件必须被装到wp-content/plugins目录中。一旦插件安装好，您需要访问管理面板来激活您的插件。</p>
<h4>目前已有的Action Hook</h4>
<p>参见<a title="Plugin API Action Reference" href="http://codex.wordpress.org/Plugin_API/Action_Reference">Plugin API/Action Reference</a>来查看WordPress中的当前的Action列表。</p>
<h3>Filter</h3>
<p>Filter是在WordPress执行过程中，传递数据时，在对数据采取某种行动（将数据写入到数据库或者发送给访客的浏览器）之前执行的。（当 WordPress生成页面时）Filter就位于数据库和浏览器之间，（当WordPress向数据库添加日志和评论时）Filter就位于浏览器和数 据库之间。WordPress中的绝大多数的输入和输出过程都要通过至少一个Filter。WordPress自己有一些默认的Filter，您可以在插 件中使用自己的Filter。</p>
<p>将您自己的Filter添加到WordPress中，遵循以下几个步骤：</p>
<ul>
<li>创建一个PHP函数来过滤数据。</li>
<li>通过调用add_filter将这个Filter添加到WordPress中。</li>
<li>将您的PHP函数写入到一个插件文件中，激活它。</li>
</ul>
<h4>创建一个Filter函数</h4>
<p>一个Filter函数把未经修改的数据作为输入，返回修改过的数据（或者有的时候返回的空值，表明这些数据应该被删除）。如果您的Filter没有修改数据，那么原始的数据必须被返回回去，以便于后续的插件可以继续它们的修改工作。</p>
<p>所以，在您的插件中创建一个Filter的第一步，就是创建一个PHP函数来执行过滤动作，并且，将这个函数写入到您的插件文件中去。再举个例子， 如果您需要确定您的日志或者评论中没有出现违禁词汇，您可以定义一个全局变量，里面包含了全部的违禁词汇的列表，然后创建下面的PHP函数：</p>
<p><code><br />
function filter_profanity($content) {<br />
global $profanities;<br />
foreach($profanities as $profanity) {<br />
$content=str_ireplace($profanity,’{censored}’,$content);<br />
}<br />
return $content;<br />
}<br />
</code></p>
<p>注意：同样要小心您的函数的命名，不要和其他的WordPress函数和其他插件的函数冲突。</p>
<h4>将您的Filter Hook到WordPress</h4>
<p>在您的函数定义完毕后，下一步就是将您的函数&#8221;hook&#8221;或者说注册到WordPress中。在您的插件文件中，调用add_filter函数：</p>
<p><code><br />
add_filter(’hook_name’, ‘your_filter’, [priority], [accepted_args]);<br />
</code></p>
<p>其中：</p>
<ul>
<li><code>hook_name</code> 是WordPress提供的供hook的函数的名称，定义了您可以加入您自己的Filter的插入点。</li>
<li><code>your_filter</code>是您的filter函数的名称。这个函数可以是一个WordPress标准PHP函数，也即在WordPress内核中定义的函数，也可以使一个您自己定义的函数。</li>
<li><code>priority</code>是一个可选的整型参数，标明了注册到某个特定的filter中的函数的执行顺序。默认是10。较小的数字执行时较靠前。如果priority值相同，那么按照注册的先后顺序来执行。</li>
<li><code>accepted_args</code>是一个可选参数，用来标明您的函数能够接受的参数的个数，默认是1，某些hook可以像您的函数传递超过一个的参数。</li>
</ul>
<p>继续上面的例子，您可以使用下面的代码，让WordPress过滤您评论中的违禁词汇：</p>
<p><code><br />
add_filter(’comment_text’,'filter_profanity’);<br />
</code></p>
<p>您也可以使用<code>remove_filter()</code>函数来将一个Filter移除。</p>
<h4>安装和激活</h4>
<p>最后一个步骤就是使您的filter运作起来。你需要做的就是将您的插件文件放到<em><a title="标签 WordPress 下的日志" rel="tag" href="http://sexywp.com/tags/wordpress">wordpress</a>/plugins</em>目录，然后到后台管理界面激活。</p>
<h4>目前WordPress中可以注册的Filter</h4>
<p>参见Plugin API/Filter Reference。</p>
<h4>例子</h4>
<p>下面是一个例子，是Ozh曾经在邮件列表中描述过的，该插件修改（或者说覆盖）了默认的<code>bloginfo()</code>函数。这需要修改内核函数的行为。</p>
<p><code><br />
add_filter(’bloginfo’, ‘mybloginfo’, 1, 2);<br />
add_filter(’bloginfo_url’, ‘mybloginfo’, 1, 2);</code></p>
<p><code> </code></p>
<p><code>function mybloginfo($result=”, $show=”) {<br />
switch ($show) {<br />
case ‘wpurl’:<br />
$result = SITE_URL;<br />
break;<br />
case ‘template_directory’:<br />
$result = TEMPL_DIR;<br />
break;<br />
default:<br />
}<br />
return $result;<br />
}<br />
</code></p>
<h3>移除Action和Filter</h3>
<p>在某些情况下，您可能会发现，您的插件需要禁用WordPress中的内建Action或者Filter之一，或者某个其它插件添加的函数。您可以通过调用<code>remove_filter(’filter_hook’,'filter_function’)</code>或者 <code>remove_action(’action_hook’,'action_function’)</code>来达到目的。</p>
<p>比如，<code>remove_action(’publish_post’,'generic_ping’);</code>可以在您发表日志的时候，阻止您的博客向外发送ping。</p>
<p>注意，如果一个hook不是使用默认的优先级（priority）注册到系统中，那么您必须在<code>remove_action()</code>中指定那个hook使用的优先级。一般来说还要注意，除非您很清楚那个函数在干什么并且为什么要那么做，请不要移除任何函数。</p>
<h3>缺省加载的Filter和Action</h3>
<p>最可靠的获知WordPress缺省加载了哪些Filter和Action的方法就是在其源代码中搜索<code>add_filter</code>和<code>add_action</code>函数的调用。</p>
<h4>WordPress 2.1</h4>
<p>在WordPress2.1中，绝大多数的Filter和Action的加载是在<em>wp-include/default-filters.php</em>文件中进行的。其他的在下列的文件中加载：</p>
<ul>
<li><tt>wp-admin/admin-ajax.php</tt></li>
<li><tt>wp-admin/admin-functions.php</tt></li>
<li><tt>wp-admin/custom-header.php</tt></li>
<li><tt>wp-admin/edit.php</tt></li>
<li><tt>wp-admin/index.php</tt></li>
<li><tt>wp-admin/options-permalink.php</tt></li>
<li><tt>wp-admin/upload-functions.php</tt></li>
<li><tt>wp-admin/upload.php</tt></li>
<li><tt>wp-includes/bookmark.php</tt></li>
<li><tt>wp-includes/general-template.php</tt></li>
<li><tt>wp-includes/kses.php</tt></li>
<li><tt>wp-includes/plugin.php</tt></li>
<li><tt>wp-includes/rewrite.php</tt></li>
<li><tt>wp-includes/template-loader.php</tt></li>
<li><tt>wp-includes/theme.php</tt></li>
</ul>
<h4>WordPress 2.5</h4>
<p>(以后我会完善这个部分)</p>
<h3>您可以覆盖的函数</h3>
<p>除了使用hook（action和filter），另一个插件修改Wordpress行为方式是覆盖WordPress的函数。实际上，有一小组函 数，是WordPess希望被插件覆盖的。在所有的插件都已经启动后，如果他们还没有被覆盖的话，WordPress才启动这些函数。</p>
<p>这些函数在<em>wp-include/pluggable.php</em>文件中定义。这里有一个列表（WP2.1）。</p>
<ul>
<li><tt>set_current_user</tt></li>
<li><tt>wp_set_current_user</tt></li>
<li><tt>wp_get_current_user</tt></li>
<li><tt>get_currentuserinfo</tt></li>
<li><tt>get_userdata</tt></li>
<li><tt>update_user_cache</tt></li>
<li><tt>get_userdatabylogin</tt></li>
<li><tt>wp_mail</tt></li>
<li><tt>wp_login</tt></li>
<li><tt>is_user_logged_in</tt></li>
<li><tt>auth_redirect</tt></li>
<li><tt>check_admin_referer</tt></li>
<li><tt>wp_redirect</tt></li>
<li><tt>wp_get_cookie_login</tt></li>
<li><tt>wp_setcookie</tt></li>
<li><tt>wp_clearcookie</tt></li>
<li><tt>wp_notify_postauthor</tt></li>
<li><tt>wp_notify_moderator</tt></li>
<li><tt>wp_new_user_notification</tt></li>
<li><tt>wp_verify_nonce</tt></li>
<li><tt>wp_create_nonce</tt></li>
<li><tt>wp_salt</tt></li>
<li><tt>wp_hash</tt></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>禁用WordPress文章修订版本与自动保存功能</title>
		<link>https://www.3code.cn/%e7%a6%81%e7%94%a8wordpress%e6%96%87%e7%ab%a0%e4%bf%ae%e8%ae%a2%e7%89%88%e6%9c%ac%e4%b8%8e%e8%87%aa%e5%8a%a8%e4%bf%9d%e5%ad%98%e5%8a%9f%e8%83%bd/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Mon, 16 May 2011 05:00:23 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2593</guid>

					<description><![CDATA[我们在发表和编辑文章的时候，可能都不喜欢WordPress 自动保存(AutoSave)和文章历史修订版本(Revisions)的功能。一方面网速不好的时候，它会影响编辑和发表文章页面的加载速度；另一方面 这些文章的历史修订版本都会写入数据库保存，无形中大大增加了数据库的膨胀速度，冗余数据太多也影响数据库的存取查询效率。wp管理后台并没有提供关闭功 能选项。那么如何禁用WordPress自动保存和文章历史修订版本功能呢？这也是WordPress优化数据库第一步要做的内容。]]></description>
										<content:encoded><![CDATA[<p>我们在发表和编辑文章的时候，可能都不喜欢WordPress  自动保存(AutoSave)和文章历史修订版本(Revisions)的功能。一方面网速不好的时候，它会影响编辑和发表文章页面的加载速度；另一方面 这些文章的历史修订版本都会写入数据库保存，无形中大大增加了数据库的膨胀速度，冗余数据太多也影响数据库的存取查询效率。wp管理后台并没有提供关闭功 能选项。那么如何禁用WordPress自动保存和文章历史修订版本功能呢？这也是WordPress优化数据库第一步要做的内容。</p>
<p>首先我们可以使用WordPress插件，禁用自动保存和关闭文章修订版本的插件有很多，本文最后列举了几个供参考。如果你不想安装插件，那也可以手动修改代码关闭和禁用WordPress自动保存和文章修订版本功能。</p>
<p><strong>关闭WordPress 自动保存功能(AutoSave)</strong></p>
<p>个人觉得WordPress自动保存功能对于经常写原创文章的wper来说还是比较实用的。有时候花了很长时间写一篇博客文章，若突然碰到停电，电 脑死机之类的突发情况，没有自动保存那将是很郁闷的事情，所以建议最好还是不要禁用WordPress自动保存功能。如果你是用office  word文档等其他编辑器，那就完全可以用下面的方法关闭WordPress自动保存功能：</p>
<p>找到wordpress/wp-admin/目录下的post-new.php，post.php，page-new.php，page.php这四个文件。找到代码<code>wp_enqueue_script('autosave'); </code>直接删除，或者在前面加上”//”将代码注释掉：<br />
<code>// wp_enqueue_script('autosave');</code> 。</p>
<p>或者打开wp-config.php文件，在<code>require_once(ABSPATH . 'wp-settings.php');</code>前添加这段代码：<code>define('AUTOSAVE_INTERVAL', 3600 ); </code>AUTOSAVE_INTERVAL表示自动保存的时间间隔，3600表示1个小时，时间随意设，1小时差不多也写完了。</p>
<p><strong>禁用WordPress文章历史修订版本(Revisions)</strong></p>
<p>同关闭自动保存功能一样，在wp-config.php中的代码<code>require_once(ABSPATH . 'wp-settings.php');</code>前增加以下代码:<code>define('WP_POST_REVISIONS',false);</code>即可；</p>
<p><strong>清理数据库中以前的文章历史修订版本</strong></p>
<p>另外你也可以通过phpmyadmin定期清理和删除数据库中的冗余文章修订版本，清理以前的文章修订版本也一样。数据库操作前最好先进行备份。在  phpmyadmin  中进行数据库管理，SQL语句命令行中写入以下运行代码执行(若你设置了数据库表名的前缀，需要将数据表名称中wp改成你的前缀)：</p>
<pre> delete from wp_posts where post_type='revision';</pre>
<p>另外还可以再用SQL语句：</p>
<pre>DELETE FROM wp_postmeta WHERE meta_key= '_edit_lock';

DELETE FROM wp_postmeta WHERE meta_key ='_edit_last';</pre>
<p>删除数据库中文章特殊数据表wp_postmeta中meta_key字段为_edit_lock(代表上次修改post的修改时间)和_edit_last(指最后一次编辑时间)的数据，然后全选所有表，下拉列表中选择使用phpmyadmin“优化表”功能。</p>
<p><strong>附：禁用自动保存，修订版本插件</strong></p>
<p>关闭WordPress自动保存：disable-autosave：</p>
<p>http://www.akii.org/wp-content/plugins/download-monitor/download.php?id=22</p>
<p>禁用修订版本插件同时自动删除以前的修订版本：<br />
Disable Revisions:  http://wordpress.org/extend/plugins/disable-revisions</p>
<p>清除修订版本插件：http://wordpress.org/extend/plugins/delete-revision</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>wordpress用了SEO插件标题乱码</title>
		<link>https://www.3code.cn/wordpress%e7%94%a8%e4%ba%86seo%e6%8f%92%e4%bb%b6%e6%a0%87%e9%a2%98%e4%b9%b1%e7%a0%81/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Sat, 05 Mar 2011 15:38:15 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<category><![CDATA[网站优化]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2517</guid>

					<description><![CDATA[导致标题第一个字符乱码的原因是：seo pack总是尝试将标题的第一个字符转化为大写。如果是英文字符，这样做没有问题；但一个中文字符包含两个字节，seo pack会根据一个预设的映射表将第一个字节转化为大写，这样就把这个汉字给破坏了。]]></description>
										<content:encoded><![CDATA[<p>以下方法,本人亲自测试成功,欢迎提出更合理的方法。<br />
在wordpress安装过All In One Seo Pack (SEO插件)之后发现在：标签页、目录页、搜索页等凡是经Seo Pack重写过的标题第一个字符都是乱码。</p>
<p><strong>解决方法：<br />
</strong>1. 最简单的解决办法就是：进入Seo Pack设置，将Rewrite Title选择框取消选择，这样Seo Pack就不会重写标题，标题显示为Wordpress默认标题，就不会出现乱码了。</p>
<p>2. 如果想使用Seo Pack的标题重写功能，那么就需要修改Seo Pack的代码，将其中存在bug的地方修改掉，步骤如下：</p>
<p>进入插件-&gt;编辑，选择编辑All In One Seo Pack (SEO插件), 然后选择编辑文件：aioseop.class.php，</p>
<p>找到函数：<br />
function capitalize($s)<br />
将下面的一行代码删除或注释掉：<br />
$tokens[$key] = strtoupper(substr($tokens[$key], 0, 1)) . substr($tokens[$key], 1);</p>
<p>然后，将此文件中的函数:ucwords全部替换为：$this-&gt;capitalize</p>
<p>导致标题第一个字符乱码的原因是：seo pack总是尝试将标题的第一个字符转化为大写。如果是英文字符，这样做没有问题；但一个中文字符包含两个字节，seo pack会根据一个预设的映射表将第一个字节转化为大写，这样就把这个汉字给破坏了。</p>
<p>其实capitalize函数可以修改的更完善，既保留原有的功能，又不会出现问题。但我不需要它把第一个字符转化成大写，就直接将那一行有问题的代码删除掉了。</p>
<p>以上方法本人亲自测试成功,如有问题可留言.</p>
<p>原文：http://blog.sina.com.cn/s/blog_679738370100ii8a.html</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress插入音频和flash无插件代码</title>
		<link>https://www.3code.cn/wordpress%e6%8f%92%e5%85%a5%e9%9f%b3%e9%a2%91%e5%92%8cflash%e6%97%a0%e6%8f%92%e4%bb%b6%e4%bb%a3%e7%a0%81/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Sat, 22 Jan 2011 17:12:04 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2439</guid>

					<description><![CDATA[在WordPress中，要在文章中插入一段音乐或flash，除了使用相应的FLASH插件和音频插件以外，可以直接使用html代码来实现调用，这样也可避免插件太多影响页面加载速度。]]></description>
										<content:encoded><![CDATA[<p>在WordPress中，要在文章中插入一段音乐或flash，除了使用相应的FLASH插件和音频插件以外，可以直接使用html代码来实现调用，这样也可避免插件太多影响页面加载速度。</p>
<p><strong>插入FLASH：</strong></p>
<p>代码如下：<br />
&lt;object classid=&#8221;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&#8243; width=&#8221;500&#8243; height=&#8221;500&#8243; codebase=&#8221;<a href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot;&gt;&lt;param">http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&#8243;&gt;&lt;param</a> name=&#8221;src&#8221; value=&#8221;FLASH地址&#8221; /&gt;&lt;param name=&#8221;quality&#8221; value=&#8221;high&#8221; /&gt;&lt;embed type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;500&#8243; height=&#8221;500&#8243; src=&#8221;FLASH地址&#8221; quality=&#8221;high&#8221;&gt;&lt;/embed&gt;&lt;/object&gt;</p>
<p>添加新文章时用HTML编辑，将上面的代码复制填入，将“FLASH地址&#8221;换成你要插入的FLASH地址（一般后缀为swf或flv），完成后即可回到可视化编辑继续写内容（可视化编辑时也可采用伸拉的方式对FLASH的宽度和高度进行调整）。</p>
<p><strong>插入音乐：</strong><br />
&lt;object classid=&#8221;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&#8243; width=&#8221;100&#8243; height=&#8221;100&#8243; codebase=&#8221;<a href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot;&gt;&lt;param">http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&#8243;&gt;&lt;param</a> name=&#8221;src&#8221; value=&#8221;音乐地址&#8221; /&gt;&lt;embed type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;100&#8243; height=&#8221;100&#8243; src=&#8221;音乐地址&#8221;&gt;&lt;/embed&gt;&lt;/object&gt;</p>
<p>填入音乐地址，注意代码中的引号应为英文引号，若不是需要修改。</p>
<p><strong>但以上的方式，我在搜狗浏览器是无法自动播放的，我现在正在使用的插入音频的方法是，直接插入以下代码：<br />
</strong><br />
&lt;embed loop=&#8221;true&#8221; autostart=&#8221;true&#8221; controls=&#8221;ImageWindow&#8221; maxwidth=&#8221;500&#8243; src=&#8221;http://音乐地址&#8221;&gt;&lt;/embed&gt;</p>
<p><strong>相关参数使用说明：</strong><br />
src：媒体文件地址。<br />
autostart：是否自动播放，true为自动，false为手动。<br />
loop：是否循环，true为循环，false只播放一次，也可直接设置数字，2表示播放2次，同理。<br />
width：播放界面的宽度，一般在300到500之间最好。<br />
height：播放界面的高度。根据视频、音频来定（音频时此值不必设太大）。<br />
hidden：是否隐藏播放界面，true为不可见，false表示可见。<br />
quality=high表示以高档画质播放。<br />
pluginspage=http://www.macromedia.com/go/getflashplayer表示播放插件调用自该地址，据说可省略。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>all in one seo站点标题重复</title>
		<link>https://www.3code.cn/all-in-one-seo%e7%ab%99%e7%82%b9%e6%a0%87%e9%a2%98%e9%87%8d%e5%a4%8d/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Mon, 03 Jan 2011 03:57:34 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2409</guid>

					<description><![CDATA[启用all in one seo插件后站点标题重复出现两次。]]></description>
										<content:encoded><![CDATA[<p>启用all in one seo 后，我的博客出现的标题是：“真正的titleBLOG名称|博客名称“ 而不是“真正的标题|博客名称。”</p>
<p>我不知道为什么博客的标题是出现了两次，但我真的想解决这个问题，以下是解决方法：</p>
<p>如果你用的是TwentyTen主题，请打开主题目录下的functions.php文件，转到262行：<br />
将<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<code>add_filter( 'wp_title', 'twentyten_filter_wp_title', 10, 2 );</code><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>注解掉即可。即在前面加上&#8221;//&#8221;。注解后的代码如下：<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<code>//add_filter( 'wp_title', 'twentyten_filter_wp_title', 10, 2 );</code><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>wordpress去掉url中category的方法</title>
		<link>https://www.3code.cn/wordpress%e5%8e%bb%e6%8e%89url%e4%b8%adcategory%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Mon, 13 Dec 2010 06:42:37 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2383</guid>

					<description><![CDATA[WP No Category Base这款插件可以强去掉WordPress分类链接中“category”，无需修改wordpress 文件以及完美和sitemap兼容。]]></description>
										<content:encoded><![CDATA[<p><strong>WP No Category Base</strong></p>
<p><strong>使用插件方法:<br />
</strong>WP No Category Base这款插件可以强去掉WordPress分类链接中“category”，无需修改wordpress 文件以及完美和sitemap兼容。</p>
<p>WP No Category Base 插件下载页面</p>
<p>下载后上传至plugins目录，然后到wordpress后台启用插件即可。无需修改任何文件。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>同步到新浪博客的WordPress插件-wp2sinablog</title>
		<link>https://www.3code.cn/wordpress-wp2sinablog/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Fri, 12 Nov 2010 03:51:24 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<category><![CDATA[wp]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2246</guid>

					<description><![CDATA[同步发表 WordPress 博客日志到 新浪博客,初次安装必须设置后才能使用。]]></description>
										<content:encoded><![CDATA[<p>插件下载地址：<a href="http://wordpress.org/extend/plugins/wp2sinablog/">http://wordpress.org/extend/plugins/wp2sinablog/</a></p>
<p>同步发表 WordPress 博客日志到 新浪博客,初次安装必须设置后才能使用。</p>
<p>== Description ==<br />
Version 1.0 支持功能<br />
1。支持自动获取新浪博客的类别<br />
2。支持选择发布到的新浪博客类别。<br />
3。支持选择发布到新浪不同的排行榜。<br />
4。支持选择发布到新浪博客中文章的评论权限。<br />
5。支持投稿到博论坛，让更多论坛网友与您交流。<br />
6。支持投稿到参与的圈子，让您的圈友分享您的文章。</p>
<p>Version 1.0 不支持功能<br />
1。不支持将Wordpress中私密(private)文章发布到新浪博客。<br />
2。不支持将Wordpress中的文章发布成新浪博客中私密博客。</p>
<p>== Installation ==</p>
<p>1. 上传 `wp2sinablog.php` 到 `/wp-content/plugins/` 目录</p>
<p>2. 在Wordpress后台控制面板&#8221;插件(Plugins)&#8221;菜单下激活wp2sinablog插件</p>
<p>3. 在Wordpress后台控制面板&#8221;配置(Settings)-&gt;WP2Sinablog&#8221;菜单下设置插件的必须信息。（只有经过设置，插件才能正常使用）</p>
<p>== Frequently Asked Questions ==</p>
<p>= 为何保存设置后，发布文件目录设置中单选按钮没有选中=</p>
<p>如果你是第一次保存（或更改一个新的）新浪博客的用户名/密码，可能会出现此问题。您只需要选择类别后再按一次保存即可。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>九创WordPress购物车系统</title>
		<link>https://www.3code.cn/wordpress%e8%b4%ad%e7%89%a9%e8%bd%a6%e7%b3%bb%e7%bb%9f/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Sun, 24 Oct 2010 04:42:07 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[外贸SEO]]></category>
		<category><![CDATA[外贸网站建设]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2197</guid>

					<description><![CDATA[以前我介绍了几个wordpress购物车插件，现在我自己做了一款购物车程序，不是插件。直接将程序集成在模板里面的。是一款基于cookie的购物车程序。]]></description>
										<content:encoded><![CDATA[<p>以前我介绍了几个<a href="https://www.3code.cn/wordpress-shopping-cart/">wordpress购物车插件</a>，现在我自己做了一款购物车程序，不是插件。直接将程序集成在模板里面的。是一款基于cookie的购物车程序。<br />
<strong><br />
功能：</strong><br />
像一般的购物车功能一样，可以将产品加入到购物车。<br />
购物车格式：产品图片，产品名称，价格，数量，小计，删除。可以修改购物车里的数量及删除某一个产品。</p>
<p>购物车确定下单后，会将所购买的产品以购物车的形式发送到网站设定的邮箱里。</p>
<p>具体效果请参见：<a href="http://www.sstwatches.com/" target="_blank">http://www.sstwatches.com/</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Global Translator插件介绍</title>
		<link>https://www.3code.cn/global-translator%e6%8f%92%e4%bb%b6%e4%bb%8b%e7%bb%8d/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Sun, 26 Sep 2010 13:18:57 +0000</pubDate>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[wordpress 插件]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=2128</guid>

					<description><![CDATA[Global Translator可以把已经通过翻译服务翻译好的内容生成对应语种的“静态”页面，或者说“缓存”起来，这样在一段时间内（可设置）想访问该语种的这 个页面的访客，就可以在不调用翻译服务的情况下查看现成的内容…当然更重要的是，]]></description>
										<content:encoded><![CDATA[<p>Global Translator可以把已经通过翻译服务翻译好的内容生成对应语种的“静态”页面，或者说“缓存”起来，这样在一段时间内（可设置）想访问该语种的这 个页面的访客，就可以在不调用翻译服务的情况下查看现成的内容…当然更重要的是，这些生成的“缓存”页面对搜索引擎很友好，而且Global Translator插件可以和另一个WordPress必备插件Google XML Sitemaps整合，所有翻译好的页面也可以加入到你的网站的Sitemap中，方便搜索引擎抓取。于是乎…在你使用这个插件一段时间后（搜索引擎抓取 了足够多的其他语种页面后），你的访问量自然会有所提升…来自其他语种其他国家的访客…</p>
<p>Google Translator插件可以把你的Blog翻译成41种语言：Italian, Korean, Chinese (Simplified &amp; Traditional), Portuguese, English, German, French, Spanish, Japanese, Arabic, Russian, Greek, Dutch, Bulgarian, Czech, Croatian, Danish, Finnish, Hindi, Polish, Romanian, Swedish, Norwegian, Catalan, Filipino, Hebrew, Indonesian, Latvian, Lithuanian, Serbian, Slovak, Slovenian, Ukrainian, Vietnamese, Albanian, Estonian, Galician, Maltese, Thai, Turkish, Hungarian.</p>
<p>Google Translator插件的主要特性有：</p>
<p>Four different Translation Engines四种翻译引擎任选: Global Translator插件可以使用Google翻译引擎，Babel Fish，Promt还有FreeTranslations.</p>
<p>Search Engine Optimized搜索引擎优化: Global Translator会添加语言代码到你所有URI的开头来创建永久链接。比如你的Blog的地址是<a href="http://www.mydomain.com/mycategory/mypost">www.mydomain.com/mycategory/mypost</a>, Global Translator插件生成的对应英文版地址就是<a href="http://www.domain.com/en/mycategory/mypost">www.domain.com/en/mycategory/mypost</a>。</p>
<p>Fast Caching System快速缓存系统: 全新的快速，智能，优化，自清理和内建的缓存系统。它可以显著减少翻译请求被翻译引擎暂时禁止的风险</p>
<p>Fully configurable layout完全可设置的布局: ，通过选择基于“Table”,&#8221;”DIV”或“IMAGE MAP”布局的旗帜条，和选择翻译语种的数量，你可以很容易地自定义翻译条的显示方式</p>
<p>无数据库修改: Global Translator是“绿色”插件。它并不创建或修改任何数据库表，这个特性可以使其获得更好的性能。</p>
<p><strong>如何使用：</strong></p>
<p>实际上如果你不做更多的调整的话，使用非常简单，只需上传插件，启用，然后从你的“外观”-“Widget”里将Global Translator插件的widget挂到你喜欢的位置就可以了。</p>
<p>如果你不想使用它的Widget，或者想把旗帜条放到任何地方，你也可以使用下面的代码：</p>
<p>&lt;?php if(function_exists(&#8220;gltr_build_flags_bar&#8221;)) { gltr_build_flags_bar(); } ?&gt;</p>
<p><strong><a href="http://wordpress.org/extend/plugins/global-translator/" target=_blank><font color=#004499>插件下载页面</font></a></strong></p>
<p><strong><a href="http://www.nothing2hide.net/wp-plugins/wordpress-global-translator-plugin/" target=_blank><font color=#004499>作者的插件页</font></a></strong></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
