<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>一杯茶 &#187; WordPress</title>
	<atom:link href="http://cha.xuexibbs.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://cha.xuexibbs.com</link>
	<description>记录生活点滴，品味人生百味，经验分享，知识学习</description>
	<lastBuildDate>Thu, 15 Jul 2010 14:08:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>在Wordpress中，插入Js文件/Javascript脚本的方法</title>
		<link>http://cha.xuexibbs.com/1069.html</link>
		<comments>http://cha.xuexibbs.com/1069.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 14:16:54 +0000</pubDate>
		<dc:creator>茶大哥</dc:creator>
				<category><![CDATA[网站建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://cha.xuexibbs.com/?p=1069</guid>
		<description><![CDATA[有时我们需要在wordpress中调用js文件，或者在wordpress正文中，插入一段javascript脚本 并运行，在多数情况下，是不行的。因为发布的过程中，wordpress会自动转义一些特殊字符，造成javascript代码不可识别，从而不能运行了。
要想实现可以运行的功能，通常是两种方式：
1. 采用引入外部文件的方式，就是在wordpress的正文中，加入：
&#60;script type=&#8221;text/javascript&#8221; src=&#8221;xxx.js&#8221;&#62;&#60;/script&#62;
然后，在wordpress的正文里，调用里面的功能，
采用
&#60;script type=&#8221;text/javascript&#8221;&#62;
//dosomething();
&#60;/script&#62;
但是，这种方法，不灵活，需要将js文件，每次都上传到服务器上去
2. 将Js代码编码一下，转成非特殊字符，从而避免被wp自动转义
请在下面输入你要转义的javascript代码：
将上面编码过的内容，拷贝到你的 wordpress 正文中，即可
]]></description>
		<wfw:commentRss>http://cha.xuexibbs.com/1069.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress不能登录，路由器升级问题？</title>
		<link>http://cha.xuexibbs.com/883.html</link>
		<comments>http://cha.xuexibbs.com/883.html#comments</comments>
		<pubDate>Sat, 31 Oct 2009 02:49:39 +0000</pubDate>
		<dc:creator>茶大哥</dc:creator>
				<category><![CDATA[网站建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://cha.xuexibbs.com/?p=883</guid>
		<description><![CDATA[用的水星MR804路由器被联通封了，不能正常上网，下载了一个最新版本的升级文件，升级路由器后，wordpress博客前台能正常访问，但博客后台不能登录，没有提示密码错误，也没有其他错误提示。
因为昨天还能正常访问博客后，所以我感觉是路由器升级有问题。后来又找到另外一个版本的升级文件，重新升级了路由器后，wordpress后台能正常登录了。
其他网友对此问题的分析：
wordpress博客后台不能登录，没有任何错误提示的解决方法：
wp-admin/includes/update.php页面里面有两个函数叫wp_plugins_update、wp2_version_check,将Update.php里面的这两个函数屏蔽掉就好了。
1.修改函数function wp2_version_check() {}为空函数；
2.修改函数function wp_update_plugins() {}为空函数；
个人分析一下原因，可能是因为使用代理服务器上网，WordPress还没有智能到能侦测我的上网方式，所以当检查版本以及升级插件时就始终连接不上网络，导致程序无法执行。
]]></description>
		<wfw:commentRss>http://cha.xuexibbs.com/883.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>wp用cos-html-cache静态化后wp-postviews不能统计阅读次数的问题</title>
		<link>http://cha.xuexibbs.com/674.html</link>
		<comments>http://cha.xuexibbs.com/674.html#comments</comments>
		<pubDate>Mon, 10 Aug 2009 13:15:42 +0000</pubDate>
		<dc:creator>茶大哥</dc:creator>
				<category><![CDATA[网站建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://cha.xuexibbs.com/?p=674</guid>
		<description><![CDATA[wordpress使用静态插件COS-HTML-CACHE后,发现WP-PostViews这个统计浏览次数的插件,不工作了,不能统计阅读次数.
怎样让wordpress静态化插件与WP-PostViews兼容?
解决方法:(测试有效)
用cos-html-cache后，文件虽可以显示浏览数，但浏览数不能更新，其实解决问题很简单，看看wp-postviews是怎么处理wp-cache/wp-supercache就知道了，打开wp-postviews.php这个文件，找到以下代码：
if(defined(&#8217;WP_CACHE&#8217;) &#38;&#38; WP_CACHE)
替换成：
if((defined(&#8217;WP_CACHE&#8217;) &#38;&#38; WP_CACHE) &#124;&#124; (defined(&#8217;COSMETA&#8217;) &#38;&#38; COSMETA))
这样就可以了，再看看生成的文章页源文件，可以看到wp-postviews添加一段ajax代码来更新浏览次数。
wp-postviews Version: 1.40下载
]]></description>
		<wfw:commentRss>http://cha.xuexibbs.com/674.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>最新版本的wordpress中文版下载</title>
		<link>http://cha.xuexibbs.com/444.html</link>
		<comments>http://cha.xuexibbs.com/444.html#comments</comments>
		<pubDate>Fri, 20 Feb 2009 12:01:19 +0000</pubDate>
		<dc:creator>茶大哥</dc:creator>
				<category><![CDATA[网站建设]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[中文版]]></category>

		<guid isPermaLink="false">http://cha.xuexibbs.com/?p=444</guid>
		<description><![CDATA[wordpress博客程序经常更新，一般都是直接下载最新版本的wp程序，然后传到空间上升级。后来，在朋友的建议下，找到官方wordpress中文版的下载网址。]]></description>
		<wfw:commentRss>http://cha.xuexibbs.com/444.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress常用永久链接格式代码</title>
		<link>http://cha.xuexibbs.com/231.html</link>
		<comments>http://cha.xuexibbs.com/231.html#comments</comments>
		<pubDate>Wed, 05 Nov 2008 13:39:48 +0000</pubDate>
		<dc:creator>茶大哥</dc:creator>
				<category><![CDATA[网站建设]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://cha.xuexibbs.com/?p=231</guid>
		<description><![CDATA[wordpress常见的永久链接(permalinks)设置样式代码及写法
样式1 :http://www.yourwebsite.com/123.html
写法: /%post_id%.html
样式2 :http://www.yourwebsite.com/archives/123.html
写法:/archives/%post_id%.html
样式3 :http://www.yourwebsite.com/2007/09/16/post-name.html
写法： /%year%/%monthnum%/%day%/%postname%.html
样式4 :http://www.yourwebsite.com/2007/03/post-name.html
写法: /%year%/%monthnum%/%postname%.html
样式5 :http://www.yourwebsite.com/category/post-name.html
写法: /%category%/%postname%.html
样式6 :http://www.yourwebsite.com/archives/post-name.html
写法: /archive/%postname%.html
样式7 :http://www.yourwebsite.com/post-name.html
写法: /%postname%.html
建议使用样式7的链接结构。
对静态网站有一条SEO建议：“避免目录结构过深，如果能就把所有的网页存放在根目录下。”因为搜索引擎认为/asdf.html的权重大于/abc/asdf.html，该条对于wordpress这样的动态网站同样有效。从seo角度出发，链接应该尽量的短小。数字在链接中，包括日期等，都不具备太多的意义，要尽量排除干扰，除非你要做的关键词是911或者Casio 513D这样的词。再者以.html结尾不用/结尾总是更好。
wordpress永久链接设置格式seo建议：
不要让日期出现在永久链接里面;
不要让分类的链接出现在永久链接里面;
链接不要过深;
不要让中文字符出现在永久链接里面;
好的永久链接形式是:域名/文章名;
wordpress代码说明：
%year%
日志发布年份，一个四位的数字，如2008
%monthnum%
日志发布的月份，两位数字，如08
%day%
日志发布的日期，两位数字，如28
%hour%
日志发布的时间（小时）两位数字，如 15
%minute%
日志发布的分钟数，两位数字，如43
%second%
日志发布的秒数，两位数字，如54
%postname%
这个为你的日志的缩略名，在WP 2.5以后的版本中，如果你在永久链接中使用了这个参数，那你在写日志是，就会在日志标题栏下方出面日志缩略名编辑选项，比如你可以编辑一篇名为“我爱你 中国”的日志的缩略名为“I-Love-You-China”，这样的话，在日志地址中就不会出现“乱码”，因为中文字符在URL中是不能出现的，你可以 只输入“I Love You China”系统会自动为你加上“-”号。而如果在永久链接结构中没有出现这个参数，那么你在日志输入页面将看不到这个参数的设置选项。
%post_id%
日志唯一的ID号，如1、34、231等
%author%
作者名，如“一杯茶”
%category%
日志的分类目录名，在设置分类时，分类可以设置一个别为用以链接地址的使用，比如“中文歌曲”可以使用别为 “Chinese Songs”，这样也是起到上面%post_name%设置时相同的效果，不过我建议最好不要在日志链接中使用分类名，因为这样如果你的一篇日志在发布使 用一个分类，而过了一段时间后，又改为另一个分类，那么你的日志的访问地址也将改变，也就是说所有链接到你这篇日志的链接都将变为无效。
]]></description>
		<wfw:commentRss>http://cha.xuexibbs.com/231.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
