<?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>WheatV Design</title>
	<atom:link href="http://www.wheatv.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wheatv.com</link>
	<description>原创wordpress主题设计</description>
	<lastBuildDate>Sat, 04 Sep 2010 01:07:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>一款跟踪访客的wordpress插件：Stalker Tracker</title>
		<link>http://www.wheatv.com/777.html</link>
		<comments>http://www.wheatv.com/777.html#comments</comments>
		<pubDate>Sat, 04 Sep 2010 01:07:02 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[玩转WP]]></category>
		<category><![CDATA[wordpress跟踪访客插件]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=777</guid>
		<description><![CDATA[当有读者访问的时候，记录下他/她的cookie，然后在后台用数据挖掘的办法判断他们的身份。 这个插件是国内的开发者制作的，不得不推荐，可以很有效的提供访客的行为和信息数据，便于我们深层分析，为网站改进也提供了依据，对于提高网站用户体验和黏性来说，真是不可多得一个插件，感谢这位开发者。]]></description>
			<content:encoded><![CDATA[<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">当有读者访问的时候，记录下他/她的cookie，然后在后台用数据挖掘的办法判断他们的身份。 这个插件是国内的开发者制作的，不得不推荐，可以很有效的提供访客的行为和信息数据，便于我们深层分析，为网站改进也提供了依据，对于提高网站用户体验和黏性来说，真是不可多得一个插件，感谢这位<a style="list-style-type: none; list-style-position: initial; list-style-image: initial; text-decoration: none; color: #336699;" href="http://chifanblog.net/?p=582">开发者</a>。</p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">官网下载：<a style="list-style-type: none; list-style-position: initial; list-style-image: initial; text-decoration: none; color: #336699;" href="http://wordpress.org/extend/plugins/stalker-tracker/">http://wordpress.org/extend/plugins/stalker-tracker/</a></p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;"><strong style="list-style-type: none; list-style-position: initial; list-style-image: initial;">使用流程如下:</strong></p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">读者访问博客，留下一个指纹。<br style="list-style-type: none; list-style-position: initial; list-style-image: initial;" />通过IP地址、留言或其它信息，确定读者身份。<br style="list-style-type: none; list-style-position: initial; list-style-image: initial;" />监视该读者其他行为。<br style="list-style-type: none; list-style-position: initial; list-style-image: initial;" /><strong style="list-style-type: none; list-style-position: initial; list-style-image: initial;">访问</strong></p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">插件激活以后，所有对博客的访问都会留下一个指纹。但有的时候，是搜索引擎的机器人访问博客，一般我们不希望记录这样的信息。 可以通过“设置”页面，添加该搜索引擎的关键词到。把鼠标悬停在表的“客户端”栏上，可以看到客户端的信息。 从中你可以自己提取一个关键词，比如msnbot这样的，添加到设置里。</p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;"><a style="list-style-type: none; list-style-position: initial; list-style-image: initial; text-decoration: none; color: #336699;" href="http://www.wpfair.com/sys/wp-content/uploads/2010/09/help_visits.jpg"><img style="list-style-type: none; list-style-position: initial; list-style-image: initial; max-width: 480px; display: block; padding: 3px; border: 1px solid #eeeeee;" title="help_visits" src="http://www.wpfair.com/sys/wp-content/uploads/2010/09/help_visits-300x53.jpg" alt="" width="300" height="53" /></a></p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">(点击缩略图放大)</p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;"><strong style="list-style-type: none; list-style-position: initial; list-style-image: initial;">确定身份</strong></p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">去“找出潜在读者”页面，这个页面通过数据挖掘，可以查出哪个指纹经常访问你的博客。点击IP地址旁边的问号可以查询IP地址的来源。 然后你可以自己猜猜看这些指纹属于谁。点击指纹，</p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;"><a style="list-style-type: none; list-style-position: initial; list-style-image: initial; text-decoration: none; color: #336699;" href="http://www.wpfair.com/sys/wp-content/uploads/2010/09/help_mining.jpg"><img style="list-style-type: none; list-style-position: initial; list-style-image: initial; max-width: 480px; display: block; padding: 3px; border: 1px solid #eeeeee;" title="help_mining" src="http://www.wpfair.com/sys/wp-content/uploads/2010/09/help_mining-300x53.jpg" alt="" width="300" height="53" /></a></p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">(点击缩略图放大)</p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;"><strong style="list-style-type: none; list-style-position: initial; list-style-image: initial;">监视：</strong></p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">确定了读者身份之后，你可以继续监视这个读者其他的活动，统计信息，还可以给他/她发信息。</p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;"><a style="list-style-type: none; list-style-position: initial; list-style-image: initial; text-decoration: none; color: #336699;" href="http://www.wpfair.com/sys/wp-content/uploads/2010/09/help_stats.jpg"><img style="list-style-type: none; list-style-position: initial; list-style-image: initial; max-width: 480px; display: block; padding: 3px; border: 1px solid #eeeeee;" title="help_stats" src="http://www.wpfair.com/sys/wp-content/uploads/2010/09/help_stats-300x86.jpg" alt="" width="300" height="86" /></a></p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">(点击缩略图放大)</p>
<p style="list-style-type: none; list-style-position: initial; list-style-image: initial;">原文转自：<a href="http://www.wpfair.com/143.html">http://www.wpfair.com/143.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/777.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress同步新浪微博，用wp-tsina推广博客</title>
		<link>http://www.wheatv.com/773.html</link>
		<comments>http://www.wheatv.com/773.html#comments</comments>
		<pubDate>Wed, 01 Sep 2010 03:55:08 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[玩转WP]]></category>
		<category><![CDATA[wordpress同步微博]]></category>
		<category><![CDATA[wp-tsina]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=773</guid>
		<description><![CDATA[推荐一个可以让wordpress和新浪微博同步的插件：wp-tsina，这个插件还是在新浪微博上走马观花看到的，对于推广博客非常实用。可以将你在博客发布的文章，以标题+URL、标题+内容+URL 、标题+标签(tag)+URL的形式同步到sina微博中。
插件安装的办法，简单的不行了，进入后台-添加插件-在搜索框中填写wp-tsina，在搜索结果页里找到wp-tsina，然后安装激活，这时在左边侧栏会出现插件设置页面，填写自己的帐户用户名和密码即可。
]]></description>
			<content:encoded><![CDATA[<p>推荐一个可以让<strong>wordpress和新浪微博同步</strong>的插件：<strong>wp-tsina</strong>，这个插件还是在新浪微博上走马观花看到的，对于推广博客非常实用。可以将你在博客发布的文章，以标题+URL、标题+内容+URL 、标题+标签(tag)+URL的形式同步到sina微博中。</p>
<p>插件安装的办法，简单的不行了，进入后台-添加插件-在搜索框中填写wp-tsina，在搜索结果页里找到wp-tsina，然后安装激活，这时在左边侧栏会出现插件设置页面，填写自己的帐户用户名和密码即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/773.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>终于开通了Bluehost的SSH，分享过程！</title>
		<link>http://www.wheatv.com/768.html</link>
		<comments>http://www.wheatv.com/768.html#comments</comments>
		<pubDate>Tue, 31 Aug 2010 15:00:38 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[BLOG]]></category>
		<category><![CDATA[bluehost SSH]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=768</guid>
		<description><![CDATA[购买<a href="http://www.wheatv.com/links/bluehost" target="_blank" title="bluehost主机代购">Bluehost主机</a>后，一直没有开通SSH，今天尝试着去开了一个TICKET，填写好自己的邮箱，全名，还有密码后四位之后，写了申请开通SSH的正文内容：

Hi bluehost: 
Would you please be kind enough to give me the shell access right? 
My ID is “****”. I have attached my id card. thanks.  ]]></description>
			<content:encoded><![CDATA[<p>购买<a href="http://www.wheatv.com/links/bluehost" target="_blank" title="bluehost主机代购">Bluehost主机</a>后，一直没有开通SSH，今天尝试着去开了一个TICKET，填写好自己的邮箱，全名，还有密码后四位之后，写了申请开通SSH的正文内容：</p>
<p>Hi bluehost:<br />
Would you please be kind enough to give me the shell access right?<br />
My ID is “****”. I have attached my id card. thanks.  </p>
<p>顺便附上了自己的身份证图片，没过多久，bluehost客服就回复到邮箱了：</p>
<p>Firstly we will need the last for characters of the password that would get you into the cpanel on your account(NOT the last four digits on the credit card). Secondly, we will need an ID that shows the same name and the primary account holder on the account.</p>
<p>Thank you,</p>
<p>拒绝了，怎么回事？原来是我把密码后四位填写成了信用卡后四位，我真250啊！同时bluehost客服似乎看不懂身份证上的中文名字，于是我又在身份证图片上，名字旁边增加了英文的注释（就是用拼音写出自己的名字就行了），同时又用我蹩脚的英文强调了一下我名字的英文拼音：</p>
<p>My name is &#8220;我的中文名&#8221; in Chinese, and in English is &#8220;Pin Yin&#8221;;</p>
<p>好了，发出去后没过2分钟，就回复开通了！</p>
<p>I&#8217;ve enabled SSH on your account.  You should be able to use your 8 character username (found in your cPanel) to log in.  Your password will be the normal cPanel password.<br />
Thank you,<br />
Korban</p>
<p>不得不夸的是bluehost客服响应速度真的很快，看来网上大多的正面评论确实说的是啊。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/768.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>六个精美并极具设计感的wordpress主题</title>
		<link>http://www.wheatv.com/765.html</link>
		<comments>http://www.wheatv.com/765.html#comments</comments>
		<pubDate>Tue, 31 Aug 2010 12:53:44 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[网罗酷站]]></category>
		<category><![CDATA[wordpress主题欣赏]]></category>
		<category><![CDATA[wordpress手绘风格主题]]></category>
		<category><![CDATA[wordpress插画风格主题]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=765</guid>
		<description><![CDATA[又网罗了六个基于wordpress的网站，美工设计有相当的水准，美到也许连Wordpress创始人都没想到的惊世骇俗。越来越觉得如果把图形设计、插画、CG融入到主题设计当中，将会让整个网站变得更加别致靓丽。下面收集来的六个设计精美的wordpress主题，其实并没有展现出wordpress3.0的CMS化优势，但从设计角度来说，已经没有理由让我偷懒，所以我急迫的把他们推荐大家欣赏。

<img title="Cafundoe Studio" src="http://reeoo.com/wp-content/uploads/2010/08/cafundoestudio.jpg" alt="Cafundoe Studio" width="600" height="400" />]]></description>
			<content:encoded><![CDATA[<p>又网罗了六个基于wordpress的网站，美工设计有相当的水准，美到也许连Wordpress创始人都没想到的惊世骇俗。越来越觉得如果把图形设计、插画、CG融入到主题设计当中，将会让整个网站变得更加别致靓丽。下面收集来的六个设计精美的wordpress主题，其实并没有展现出wordpress3.0的CMS化优势，但从设计角度来说，已经没有理由让我偷懒，所以我急迫的把他们推荐大家欣赏。</p>
<p><a href="http://www.cafundoestudio.com.br/blog2010/" target="_blank">Cafundoe Studio</a></p>
<p><img title="Cafundoe Studio" src="http://reeoo.com/wp-content/uploads/2010/08/cafundoestudio.jpg" alt="Cafundoe Studio" width="600" height="400" /></p>
<p><a href="http://outlinez.net/" target="_blank">Outlinez</a></p>
<p><img title="Outlinez" src="http://reeoo.com/wp-content/uploads/2010/08/outlinez.jpg" alt="Outlinez" width="600" height="400" /></p>
<p><a href="http://www.dream-design.net/" target="_blank">Bel Koo</a></p>
<p><img title="Bel Koo" src="http://reeoo.com/wp-content/uploads/2010/07/belkoo.jpg" alt="Bel Koo" width="600" height="400" /></p>
<p><a href="http://www.marketingprofesional.net/" target="_blank">marketing profesional</a></p>
<p><img title="marketing profesional" src="http://reeoo.com/wp-content/uploads/2010/08/marketingprofesional.jpg" alt="marketing profesional" width="600" height="400" /></p>
<p><a href="http://hugsformonsters.com/" target="_blank">Hugs For Monsters</a></p>
<p><img title="Hugs For Monsters" src="http://reeoo.com/wp-content/uploads/2010/08/hugsformonsters.jpg" alt="Hugs For Monsters" width="600" height="400" /></p>
<p><a href="http://www.radubotez.com/" target="_blank">Uest Media Design</a></p>
<p><img title="Uest Media Design" src="http://reeoo.com/wp-content/uploads/2010/08/uestmediadesign.jpg" alt="Uest Media Design" width="600" height="400" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/765.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>做英文站网赚前请一定要学会用SSH访问国外网站</title>
		<link>http://www.wheatv.com/760.html</link>
		<comments>http://www.wheatv.com/760.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 14:04:49 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[BLOG]]></category>
		<category><![CDATA[SHH]]></category>
		<category><![CDATA[英文站网赚]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=760</guid>
		<description><![CDATA[众所周知，国外的的很多网站，国内是无法访问的，例如著名的Youtube、Twitter，Facebook、Blogger、Scribd、Squidoo等等，这个列表非常长，而且有不断扩大的趋势。如果这些网站都访问不了，还做个屁的英文站啊，到哪去推广啊？看着这些站一个个的被封，我也曾经十分愤怒，但作为蚁民的我们能奈之何呢？但办法总是有的！那就是利用SSH。]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;">众所周知，国外的的很多网站，国内是无法访问的，例如著名的Youtube、Twitter，Facebook、Blogger、Scribd、Squidoo等等，这个列表非常长，而且有不断扩大的趋势。如果这些网站都访问不了，还做个屁的英文站啊，到哪去推广啊？看着这些站一个个的被封，我也曾经十分愤怒，但作为蚁民的我们能奈之何呢？但办法总是有的！那就是利用SSH。</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;"><strong>什么是SSH</strong></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;">SSH的英文全称是Secure SHell。通过使用SSH，你可以把所有传输的数据进行加密，这样“中间人”这种攻击方式就不可能实现了，而且也能够防止DNS和IP欺骗。另外SSH还有很多强大的功能，例如用wget命令直接下载程序到虚拟主机，传输速度可以达到2M，很快，根本不需要ftp软件慢慢传；利用ssh备份文件和数据库也非常方便，转移整站到另外服务器也只需要几分钟解决。</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;"><strong>如何获得SSH账号</strong></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;">很多国外的虚拟主机都可以开通SSH权限，例如<a style="color: #44a1d0; text-decoration: none;" href="http://www.wheatv.com/links/bluehost" target="_blank"><strong>Bluehos</strong>t</a>(输入优惠码NETMONEYBLOG可优惠50美元)等，以Hbluehost为例，当你购买了之后，向Bluehost直接提交一个Ticket，在Ticket上说要开通SSH，并按他们指示的要求和步骤来做就可以了。</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;"><strong>如何配置</strong></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;">SSH客户端下载，<a style="color: #44a1d0; text-decoration: none;" href="http://putty.very.rulez.org/download.html">点击这里下载SSH 登录工具Putty</a></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;">打开Putty，在session里面，填入你虚拟主机的ip地址，然后配置tunnel，目标设置为Dynamic，添加一个端口7070，再按Add，一个动态转发端口就实现了。</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;"><a style="color: #44a1d0; text-decoration: none;" href="http://www.netmoneyblog.com/wp-content/uploads/2010/06/dynamic_tunnel.png"><img style="border: initial none initial;" title="ssh配置" src="http://www.netmoneyblog.com/wp-content/uploads/2010/06/dynamic_tunnel.png" alt="" width="450" height="410" /></a></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;">为Firefox下载一个插件foxyproxy（在firefox的获取附加组件那里搜索安装就行了），然后在设置里面添加代理，设置socks代理通过本地的127.0.0.1:7070 进行传输。foxyproxy功能很多，可以配置模板，设定哪些网站用代理，哪些直接访问。也可以在Firefox的右下角手动选择。<br />
<a style="color: #44a1d0; text-decoration: none;" href="http://www.netmoneyblog.com/wp-content/uploads/2010/06/foxyproxy.png"><img style="border: initial none initial;" title="foxyproxy" src="http://www.netmoneyblog.com/wp-content/uploads/2010/06/foxyproxy.png" alt="" width="523" height="304" /></a></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;">网上流传很多代理访问国外网站的方法，但我觉得这种方法才是最稳定，最快速的，如果你要做国外的营销联盟，上英文网站，那当然要有自己的私人通道，在国内这个环境下，这应该是必备的了，以后想上什么网就上什么网，哈哈。</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px;"><strong>几点需要提醒的是：</strong></p>
<ul style="vertical-align: middle; padding: 0px; margin: 0px;">
<li style="vertical-align: middle; padding: 0px; margin: 0px;">购买国外主机时，其ip是随机分配共享的，运气不好，说不定哪天也被封了（可能同一ip地址上有其他网站触墙）。所以最好购买一个独立ip，这样保险多了（当然如果真的墙了再买也可以，不过独立ip对网站的SEO也有好处）。我用的是<strong><a style="color: #44a1d0; text-decoration: none;" href="http://www.wheatv.com/links/bluehost" target="_blank"><strong>Bluehos</strong>t</a></strong>，是美国主机中佼佼者，性价比是国内站长公认不错的，价格是5.95美元/月，没有空间和流量限制，可以绑很多个站，还免费送一个国际域名。</li>
<li style="vertical-align: middle; padding: 0px; margin: 0px;"></li>
<li style="vertical-align: middle; padding: 0px; margin: 0px;">登陆putty输入密码的时候，密码是不显示的，由于背景是黑色的，所以很多人犯晕以为无法输入，照输确认就行了。</li>
<li style="vertical-align: middle; padding: 0px; margin: 0px;">登陆联盟账号，例如Google Adsense，Clickbank，Cj等的时候别忘了取消代理，否则，别人当你作弊，ban了你的账号就冤枉了。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/760.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress不用插件实现限制内容显示字数</title>
		<link>http://www.wheatv.com/751.html</link>
		<comments>http://www.wheatv.com/751.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 06:32:19 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[玩转WP]]></category>
		<category><![CDATA[wordpress限制字数]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=751</guid>
		<description><![CDATA[我们经常希望文章在首页或者其他地方只显示一个摘要或者少数文字，截断输出一般可以用<!--more-->标签或者摘要来输出一部分内容，不过有时我们也会忘记加入一个more标记，或者是从其他地方将博客转移到wordpress中，所有文章在存档页全部显示的是全文，我们不可能每一篇文章都要去逐一的增加more标记或者说输入摘要吧，所以有了下面这个内容自动截断的函数，这样，在没有人工干预的情况下，就能完美的输出摘要了，相当的方便。]]></description>
			<content:encoded><![CDATA[<p>我们经常希望文章在首页或者其他地方只显示一个摘要或者少数文字，截断输出一般可以用<span id="more-751"></span>标签或者摘要来输出一部分内容，不过有时我们也会忘记加入一个more标记，或者是从其他地方将博客转移到wordpress中，所有文章在存档页全部显示的是全文，我们不可能每一篇文章都要去逐一的增加more标记或者说输入摘要吧，所以有了下面这个内容自动截断的函数，这样，在没有人工干预的情况下，就能完美的输出摘要了，相当的方便。</p>
<p>先将下面的函数放进functions.php中，</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> the_content_limit<span style="color: #009900;">&#40;</span><span style="color: #000088;">$max_char</span><span style="color: #339933;">,</span> <span style="color: #000088;">$more_link_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(more...)'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$stripteaser</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$more_file</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> get_the_content<span style="color: #009900;">&#40;</span><span style="color: #000088;">$more_link_text</span><span style="color: #339933;">,</span> <span style="color: #000088;">$stripteaser</span><span style="color: #339933;">,</span> <span style="color: #000088;">$more_file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">']]&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">']]&amp;gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'p'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;div&gt;&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #000088;">$max_char</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$espacio</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$max_char</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$espacio</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;div&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;...&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;div&gt;&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>如何调用呢？很简单，在需要显示的地方添加如下代码即可：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content_limit<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">120</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'更多...'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/751.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress.com的博客在中国大陆可以访问了？</title>
		<link>http://www.wheatv.com/749.html</link>
		<comments>http://www.wheatv.com/749.html#comments</comments>
		<pubDate>Sun, 29 Aug 2010 17:01:47 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[BLOG]]></category>
		<category><![CDATA[wordpress.com]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=749</guid>
		<description><![CDATA[刚才正准备翻墙登录wordpress.com的博客，忘了开VPN，结果照样打开了，蒙了一下，没想到wordpress.com博客居然可以直接访问了！还是不怎么相信，于是又用google搜索了一下site:*.wordpress.com，试着打开了几个博客，统统可以访问，哈哈，这猛一下开恩，还真不习惯，这算是个暂时好消息，不知道能保持访问多久，可怜可怜我们这些勤奋热爱wordpress的孩子们吧！]]></description>
			<content:encoded><![CDATA[<p>刚才正准备翻墙登录wordpress.com的博客，忘了开VPN，结果照样打开了，蒙了一下，没想到wordpress.com博客居然可以直接访问了！还是不怎么相信，于是又用google搜索了一下site:*.wordpress.com，试着打开了几个博客，统统可以访问，哈哈，这猛一下开恩，还真不习惯，这算是个暂时好消息，不知道能保持访问多久，可怜可怜我们这些勤奋热爱wordpress的孩子们吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/749.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress跨站聊天插件-SNS</title>
		<link>http://www.wheatv.com/746.html</link>
		<comments>http://www.wheatv.com/746.html#comments</comments>
		<pubDate>Wed, 25 Aug 2010 16:42:25 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[玩转WP]]></category>
		<category><![CDATA[wordpress聊天插件]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=746</guid>
		<description><![CDATA[SNS这款跨站聊天插件只要一分钟，迅速让你的wordpress具备sns功能，而一点也不增加你的资源负担。你不但可以通过它和别的膊主聊天，到你站里的游客也可以把你的博客当作sns社区，自由的和其它所有博客上的游客聊天，当然给他们提供了注册功能，加强你和其它所有访客的关系。本插件的安装每办法更加简单了，上传到你plugin里，激活它就可以，所以也不多说了。]]></description>
			<content:encoded><![CDATA[<p>SNS这款跨站聊天插件只要一分钟，迅速让你的wordpress具备sns功能，而一点也不增加你的资源负担。你不但可以通过它和别的膊主聊天，到你站里的游客也可以把你的博客当作sns社区，自由的和其它所有博客上的游客聊天，当然给他们提供了注册功能，加强你和其它所有访客的关系。本插件的安装每办法更加简单了，上传到你plugin里，激活它就可以，所以也不多说了。</p>
<p>下载地址：<a href="http://wordpress.org/extend/plugins/sns/">http://wordpress.org/extend/plugins/sns/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/746.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress简单强大的论坛插件-Mingle</title>
		<link>http://www.wheatv.com/741.html</link>
		<comments>http://www.wheatv.com/741.html#comments</comments>
		<pubDate>Wed, 25 Aug 2010 16:33:54 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[玩转WP]]></category>
		<category><![CDATA[Mingle]]></category>
		<category><![CDATA[wordpress论坛插件]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=741</guid>
		<description><![CDATA[你可能想给你的wordpress网站外挂一个论坛以聚集人气和保留用户数据，也不需要像discuz那样庞大的，你会首先想到wordpress一系列的产品bbpress，这是个不错的选择，不过除此之外好像告诉你另一个选择，是一款同样轻量级的论坛插件-Mingle。

Mingle论坛是一个简洁的、可靠地、安全的、容易安装、使用方便的论坛程序，最让人兴奋地是Mingle论坛作为wordpress的一个插件，可以跟wordpress实现无缝整合。Mingle论坛的设计原则是“保持简单”！现在有很多的wordpress论坛插件，但是它们要么bug太多、安装困难，要么功能和设置是如此的繁杂，把它们建立起来是一件如此恐怖的事情。不必给自己找麻烦！！！使用Mingle论坛插件，您可以在短短的5分钟之内将论坛建成，是不是很酷呢？]]></description>
			<content:encoded><![CDATA[<p>你可能想给你的wordpress网站外挂一个论坛以聚集人气和保留用户数据，也不需要像discuz那样庞大的，你会首先想到wordpress一系列的产品bbpress，这是个不错的选择，不过除此之外好像告诉你另一个选择，是一款同样轻量级的论坛插件-Mingle。</p>
<p>Mingle论坛是一个简洁的、可靠地、安全的、容易安装、使用方便的论坛程序，最让人兴奋地是Mingle论坛作为wordpress的一个插件，可以跟wordpress实现无缝整合。Mingle论坛的设计原则是“保持简单”！现在有很多的wordpress论坛插件，但是它们要么bug太多、安装困难，要么功能和设置是如此的繁杂，把它们建立起来是一件如此恐怖的事情。不必给自己找麻烦！！！使用Mingle论坛插件，您可以在短短的5分钟之内将论坛建成，是不是很酷呢？</p>
<p><strong>程序特色：</strong></p>
<blockquote><p>•最新!可以与Mingle插件整合（Mingle插件由Blair Williams开发）。请注意，没有安装Mingle插件论坛也可以工作。<br />
•个性图像<br />
•个人资料<br />
•论坛活动显示在Mingle活动里面（帮助增加论坛和社区内的讨论）<br />
•删除论坛主题可以同步删除Mingle板块内相应的帖子<br />
•最新！在论坛帖子里面可以嵌入多媒体（比如Youtube, Flickr, Photobucket…）<br />
•支持wordpress 3.0<br />
•分类和子论坛<br />
•用户组<br />
•最新！用户等级（比如：新手、初级、高级……)<br />
•最新！私人消息，论坛可以与Cartpauj PM Plugin整合（需要安装Cartpauj PM 1.0.09或者更高的版本）<br />
•版主<br />
•最新！皮肤<br />
•Captcha<br />
•BB 代码<br />
•表情<br />
•自定义论坛搜索<br />
•游客发帖（可以禁用）<br />
•最新！热门主题、非常热门主题<br />
•最新！主题置顶<br />
•最新！移动、编辑、删除和关闭主题<br />
•主题回复邮件通知<br />
•最新主题边栏（或者是用于主题的PHP代码）<br />
•可以与大多数主题完美整合（少数主题可能需要稍微修改）<br />
•允许/拒绝其他用户查看自己的个人资料<br />
•最新！多语言支持</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/741.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress获取显示指定分类下的文章总数</title>
		<link>http://www.wheatv.com/738.html</link>
		<comments>http://www.wheatv.com/738.html#comments</comments>
		<pubDate>Wed, 25 Aug 2010 06:32:35 +0000</pubDate>
		<dc:creator>BadJohnny</dc:creator>
				<category><![CDATA[玩转WP]]></category>
		<category><![CDATA[wordpress文章数]]></category>

		<guid isPermaLink="false">http://www.wheatv.com/?p=738</guid>
		<description><![CDATA[有时候我们想获取某个分类(category)下的文章数目，以便在博客的某个地方显示出来，但是并没有找到提供这个功能的WordPress内置函数（不知道你有没有找到？）。那只能自己编写函数，直接从数据库中读取信息了，下面就提供一个获取特定分类的文章数的函数，你可以将其放置在主题目functions.php中……]]></description>
			<content:encoded><![CDATA[<p>有时候我们想获取某个分类(category)下的文章数目，以便在博客的某个地方显示出来，但是并没有找到提供这个功能的WordPress内置函数（不知道你有没有找到？）。那只能自己编写函数，直接从数据库中读取信息了，下面就提供一个获取特定分类的文章数的函数，你可以将其放置在主题目functions.php中：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wt_get_category_count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> get_the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$category</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category_count</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_numeric</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$SQL</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT <span style="color: #006699; font-weight: bold;">$wpdb-&gt;term_taxonomy</span>.count FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;terms</span>, <span style="color: #006699; font-weight: bold;">$wpdb-&gt;term_taxonomy</span> WHERE <span style="color: #006699; font-weight: bold;">$wpdb-&gt;terms</span>.term_id=<span style="color: #006699; font-weight: bold;">$wpdb-&gt;term_taxonomy</span>.term_id AND <span style="color: #006699; font-weight: bold;">$wpdb-&gt;term_taxonomy</span>.term_id=<span style="color: #006699; font-weight: bold;">$input</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_var</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$SQL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$SQL</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT <span style="color: #006699; font-weight: bold;">$wpdb-&gt;term_taxonomy</span>.count FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;terms</span>, <span style="color: #006699; font-weight: bold;">$wpdb-&gt;term_taxonomy</span> WHERE <span style="color: #006699; font-weight: bold;">$wpdb-&gt;terms</span>.term_id=<span style="color: #006699; font-weight: bold;">$wpdb-&gt;term_taxonomy</span>.term_id AND <span style="color: #006699; font-weight: bold;">$wpdb-&gt;terms</span>.slug='<span style="color: #006699; font-weight: bold;">$input</span>'&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_var</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$SQL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>该函数提供三种调用方式：</p>
<p>1、在主循环中调出该函数，且不提供参数，则返回第一个分类的文章数：<br />
<?php echo wt_get_category_count(); ?></p>
<p>2、提供的参数为数字，且该数字为分类的ID号，则返回对应ID的分类的文章数：<br />
<?php echo wt_get_category_count(1); ?></p>
<p>3、提供分类的缩略名，则返回对应缩略名的分类文章数：<br />
<?php echo wt_get_category_count('hello-world'); ?></p>
<p>     以上函数以及调出在 WordPress 3.0 中测试成功。另外，该函数对于含有子分类的分类，文章数统计上会有稍许误差。对于分类文章数为0的情况统计得也不是很好。</p>
<p><strong>方法二：</strong></p>
<p>     其实我们可以直接使用WordPress的内置函数wp_list_categories()，只是传递函数的时候注意一下就行了：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span>wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include=3&amp;hide_empty=0&amp;use_desc_for_title =0&amp;echo=0&amp;show_count=1&amp;style=none&amp;hierarchical =0&amp;title_li='</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p> 参数include的等号后面填上你想要统计文章数的分类ID即可，最终输出形式为 分类名称(文章数) 。</p>
<p>转自：http://www.ludou.org/wordpress-get-category-count.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wheatv.com/738.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
