<?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://laomao.info/teg/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://laomao.info</link>
	<description>,Zen Cart,Magento&#124;外贸建站技术支持-http://laomao.info</description>
	<lastBuildDate>Fri, 30 Jul 2010 11:09:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>老猫博客-zen-cart wordpress 文章调用只显示首页</title>
		<link>http://laomao.info/archives/1113.html</link>
		<comments>http://laomao.info/archives/1113.html#comments</comments>
		<pubDate>Sun, 11 Apr 2010 10:31:36 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[Zen cart]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[woz]]></category>
		<category><![CDATA[zen-cart]]></category>
		<category><![CDATA[博客调用]]></category>
		<category><![CDATA[文章调用]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=1113</guid>
		<description><![CDATA[安装woz失败之后，在自己的网站了 代码，以让网站首页能调用wordpress文章， 以下为代码内容,自己的学习记录！ 其中黑色部分，是定义让文章连接只显示在首页，如果你想让他不在首页显示，可以这样写this_is_home_page ！=  1,这样就是只让他显示在除了首页的部分！ 以下让文章连接只显示在首页为原代码 &#60;code&#62;&#60;?php if ($this_is_home_page) { ?&#62; &#60;div&#62;&#60;?php require(&#8216;./博客文件夹的名字/wp-blog-header.php&#8217;); ?&#62; &#60;?php $rand_posts = get_posts(&#8216;numberposts=8&#38;orderby=rand&#8217;); foreach( $rand_posts as $post ) : ?&#62; &#60;li align=&#8221;left&#8221;&#62;&#60;a href=&#8221;&#60;?php the_permalink(); ?&#62;&#8221;&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/li&#62; &#60;?php endforeach; ?&#62; &#60;/div&#62; &#60;? } ?&#62; &#60;/code&#62; 老猫博客：http://laomao.info]]></description>
		<wfw:commentRss>http://laomao.info/archives/1113.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>老猫博客-zen-cart的WOZ插件能用么？</title>
		<link>http://laomao.info/archives/1111.html</link>
		<comments>http://laomao.info/archives/1111.html#comments</comments>
		<pubDate>Tue, 06 Apr 2010 17:00:14 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[Zen cart]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[woz]]></category>
		<category><![CDATA[zen-cart]]></category>
		<category><![CDATA[老猫]]></category>
		<category><![CDATA[老猫博客]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=1111</guid>
		<description><![CDATA[woz比较直白的是：wordpress on zen-cart 非常好的一个概念 但是我安装了这几天发现，网络上发布的一些安装教程，没有一个能用的，非常纳闷的不知为何！ 不知道哪位高手，能指教一下么？ 老猫博客：http://laomao.info]]></description>
		<wfw:commentRss>http://laomao.info/archives/1111.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen-cart 调用WordPress文章方法</title>
		<link>http://laomao.info/archives/1083.html</link>
		<comments>http://laomao.info/archives/1083.html#comments</comments>
		<pubDate>Tue, 23 Mar 2010 13:29:50 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[woz]]></category>
		<category><![CDATA[zen-cart]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=1083</guid>
		<description><![CDATA[Zen-cart 有个WOZ的插件，作用就是调用WordPress 的文章，将这个作为新闻系统来用。 其实，通过WordPress自带的函数调 用，完全可以达到同样的作用，下面介绍两种方法，一种是调用最新的文章；另一种是随机调用Blog文章。 首先，把WordPress安装到zen-cart一个子目录里，设置好固定连接等 一、调 用最新文章 在合适的地方加入下面两行代码,一般会放在产品页面(/includes/templates/你使用的模板文件名 /templates/tpl_product_info_display.php &#60;?php require(&#8216;./wordpress所在目录 /wp-blog-header.php&#8217;); ?&#62; 这行调用WordPress自 带函数，目录地址要随着WordPress安装目录变化而变化.如果你的Zen- cart不是根目录，那么前面就要打两个.['../wordpress所在目录 /wp-blog-header.php'] &#60;?php get_archives(&#8216;postbypost&#8217;, 10); ?&#62; 这里的10指调用的最新文章数量 二、随机 调用Blog文章 随机调用4篇Blog文章 &#60;?php require(&#8216;./wordpress所在目录/wp-blog- header.php&#8217;); ?&#62; &#60;?php $rand_posts = get_posts(&#8216;numberposts=4&#38;orderby=rand&#8217;); foreach( $rand_posts as $post ) : ?&#62; &#60;li&#62;&#60;a href=&#8221;&#60;?php the_permalink(); ?&#62;&#8221;&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/li&#62; &#60;?php endforeach; ?&#62; 原博地址：Zen-cart 调用WordPress文章方法]]></description>
		<wfw:commentRss>http://laomao.info/archives/1083.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DEDECMS果然很猛很强大</title>
		<link>http://laomao.info/archives/1072.html</link>
		<comments>http://laomao.info/archives/1072.html#comments</comments>
		<pubDate>Sun, 07 Mar 2010 08:24:36 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[dedecms]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=1072</guid>
		<description><![CDATA[最近要帮哥哥整一个企业演示站，发布一些企业图片之类的东西，企业介绍，偶尔再发点新闻！ 虽然，不难，但是想找个合适的模板实在是有点纠结！ 先是使用joomla，模板有点少，或者适合中文的少！ 后来使用wordpress，发现，现成的模板也不多！ 最后听群里的朋友说 使用DEDECMS，后来查了一下，模板挺多，试着研究了几天，发现着实强大， 不过上手有点慢！官方给的教程太含蓄，不明不白的，有点含糊其辞！ 不过 等一上手，就发现挺简单的了！呵呵！ 有兴趣的试试，目前的演示是http://fm365.net.ru/dede/]]></description>
		<wfw:commentRss>http://laomao.info/archives/1072.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Akismet：Byebye!spam!</title>
		<link>http://laomao.info/archives/1060.html</link>
		<comments>http://laomao.info/archives/1060.html#comments</comments>
		<pubDate>Wed, 10 Feb 2010 06:49:32 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[Akismet]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[垃圾评论]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=1060</guid>
		<description><![CDATA[spam!goodbye!I never want to see you again 推荐大家开启：Akismet，这个插件，目前版本的wordpress已经自带此插件，开启只需要简单注册一下 就行了！基本上可以拦截大部分的垃圾评论]]></description>
		<wfw:commentRss>http://laomao.info/archives/1060.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最近wordpress的后台怎么这么慢滴？</title>
		<link>http://laomao.info/archives/746.html</link>
		<comments>http://laomao.info/archives/746.html#comments</comments>
		<pubDate>Tue, 03 Nov 2009 07:34:00 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=746</guid>
		<description><![CDATA[难道服务器慢了么？一直使用温州地平线的空间还是不错滴，不知道最近为何？ 打开后台出奇的慢！ 打开博客到是很快！研究来研究去也不知道为何？纳闷中]]></description>
		<wfw:commentRss>http://laomao.info/archives/746.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 随机日志调用代码</title>
		<link>http://laomao.info/archives/529.html</link>
		<comments>http://laomao.info/archives/529.html#comments</comments>
		<pubDate>Thu, 20 Aug 2009 06:59:52 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[随机日志]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=529</guid>
		<description><![CDATA[Google 首页有“手气不错”按钮，如果需要为 WordPress 添加随机文章链接，简单的代码就能实现，并不需要插件支持。每次刷新页面，链接会自动更新，演示效果请点击芒果首页的蓝色按钮。 随机文章代码如下： &#60;?php $rand_post=get_posts('numberposts=1&#38;orderby=rand'); foreach($rand_post as $post) : ?&#62;&#60;a href="&#60;?php the_permalink(); ?&#62;"&#62;随机&#60;/a&#62;&#60;?php endforeach; ?&#62; 以上代码使用 WordPress 默认函数 get_posts 中的 orderby=rand 属性来随机选取文章链接。但如果需要调用多篇文章并以列表形式展示，则代码如下： &#60;?php $rand_post = get_posts('numberposts=10&#38;orderby=rand'); foreach( $rand_post as $post ) : ?&#62; &#60;li&#62;&#60;a href="&#60;?php the_permalink(); ?&#62;" title="&#60;?php the_title(); ?&#62;"&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/li&#62; &#60;?php endforeach; ?&#62; 以上代码随机选择 10 篇文章，列表样式可以根据需要自定义。 转载自 &#60;a href=&#8221;http://www.mangguo.org/wordpress-random-post-call-code/&#8221; title=&#8221;WordPress 随机日志调用代码&#8221; [...]]]></description>
		<wfw:commentRss>http://laomao.info/archives/529.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>一段JS代码,让你的WordPress支持简繁转换</title>
		<link>http://laomao.info/archives/525.html</link>
		<comments>http://laomao.info/archives/525.html#comments</comments>
		<pubDate>Thu, 20 Aug 2009 05:58:18 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[繁简转换]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=525</guid>
		<description><![CDATA[上网的时候我们会发现很多网站都有繁体版本，通过导航栏上的一个按钮就可以把网页上的文字从简体中文变成繁体中文。很多主机商也提供类似于“简繁通”之类的产品，当然，是需要收费的。那么，怎么让我们的博客不用花钱也能支持简繁转换呢？ 我们看到国内的很多博客用户都在自己的主页上添加了Google的翻译挂件，通过简单的设置让Google来为我们把网页从简体中文翻译成繁体中文或英语。而我介绍的这个简繁转换，是通过js的方式实现的。下面我就以WordPress为例说明一下： 1、下载文件tw_cn.js，下载方式：右键另存为；备用地址 2、修改变量。拥记事本打开文件，对前几行有标注的变量进行更改； 3、上传文件tw_cn.js到网站根目录； 4、修改主题，在你想要显示简繁转换按钮的地方加上代码： &#60;a id=&#8221;translateLink&#8221;&#62;繁體&#60;/a&#62; 5、然后在footer里加上如下代码： &#60;script type=&#8221;text/javascript&#8221; src=&#8221;http://yourdomainname.com/tw_cn.js&#8221; mce_src=&#8221;http://yourdomainname.com/tw_cn.js&#8221;&#62;&#60;/script&#62; &#60;script type=&#8221;text/javascript&#8221;&#62; var defaultEncoding = 0; //默认是否繁体，0-简体，1-繁体 var translateDelay = 0; //延迟时间,若不在前, 要设定延迟翻译时间, 如100表示100ms,默认为0 var cookieDomain = &#8220;http://yourdomainname.com&#8221;; //Cookie地址, 一定要设定, 通常为你的网址 var msgToTraditionalChinese = &#8220;繁體&#8221;; //默认切换为繁体时显示的中文字符 var msgToSimplifiedChinese = &#8220;简体&#8221;; //默认切换为简体时显示的中文字符 var translateButtonId = &#8220;translateLink&#8221;; //默认互换id translateInitilization(); &#60;/script&#62;]]></description>
		<wfw:commentRss>http://laomao.info/archives/525.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 固定连接设置的参数与技巧</title>
		<link>http://laomao.info/archives/352.html</link>
		<comments>http://laomao.info/archives/352.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 11:19:50 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[固定链接]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=352</guid>
		<description><![CDATA[都是在使用的时候才会去寻找解决方法，习惯把学习的点滴都记录下来，下来就来学习一下设置固定链接的方法和技巧吧。 什么是固定链接，打个比方，如果说域名是一个博客在互联网上的代表一个人的话，那么固定链接地址就是门牌号码。只有通过固定链接，你才能找到找个人。由此可见，固定链接在博客中的重要性。对于wordpress 用户而言，掌握一下一些固定连接的设置参数和技巧，则能够让别人更好的找到你的博客。 参数 参数不多说，很死的东西，按照WordPress官方文档列表如下： %year% 基于文章发布年份，比如2007； %monthnum% 基于文章发布月份，比如05； %day% 基于文章发布当日，比如28； %hour% 基于文章发布小时数，比如15； %minute% 基于文章发布分钟数，比如43； %second% 基于文章发布秒数，比如33； %postname% 基于文章的postname，其值为撰写时指定的缩略名，不指定缩略名时是文章标题； %post_id% 基于文章post_id，比如423； %category% 基于文章分类，子分类会处理成“分类/子分类”这种形式； %author% 基于文章作者名。 将上述参数进行组合，即可得到wordpress的固定链接形式。网上常见的几种设置方法： /%year%/%monthnum%/%day%/%postname%/ /%year%/%monthnum%/%postname%/ /%year%/%monthnum%/%day%/%postname%.html /%year%/%monthnum%/%postname%.html /%category%/%postname%.html /%post_id%.html 技巧 一、不要让日期出现在固定连接链接里面 这基于两个方面的考虑。一是如果数字出现在固定链接里面，等于提醒搜索引擎，这是很旧的内容了，没必要再爬一遍了。另外一个原因是，假如你要修改文章的日期重新发布的话，链接地址就变了，也就是意味着你的反向链接，PR 等等都没有了。 二、不要让分类的链接出现在固定链接里面 这一点是很多人都会忽略的地方。让分类出现在固定链接里面有两个缺陷：一是一篇文章如果选择了多个分类的话，则会出现多个链接地址，这很容易造成因为重复内容而被搜索引擎惩罚；二是有可能会造成关键词堆砌而被搜索引擎惩罚。 三、链接不要过深 这一点经常看到。很多wordpress 用户的固定链接是年/月/日/分类名/文章名。这种过于深的固定链接对搜索引擎是非常不友好的。 四、不要让中文字符出现在固定链接里面 虽然现在的搜索引擎已经能识别URL地址里面的中文字符，但无论是从美观上，还是从wordpress 优化的角度来看，都是非常差的。 总结 最好的wordpress固定链接形式是：域名/文章名（参数为/%postname%.html）。]]></description>
		<wfw:commentRss>http://laomao.info/archives/352.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress解决中文标签失效的问题</title>
		<link>http://laomao.info/archives/349.html</link>
		<comments>http://laomao.info/archives/349.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 10:42:38 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[中文标签失效]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=349</guid>
		<description><![CDATA[修改wp_includes里的rewrite.php 这是网上最常见的方法，原理是，让WordPress在对其他内容使用Permalink的时候，对tag不使用，而使用链接2的QueryString模式发送中文编码： function get_tag_permastruct() { if (isset($this-&#62;tag_structure)) { return $this-&#62;tag_structure; } if (empty($this-&#62;permalink_structure)) { //—–this line need change—— $this-&#62;tag_structure = ”; return false; } 把第5行改为 if (!empty($this-&#62;permalink_structure)) { 局限：没有起到Permalink的“漂亮”作用，如果不能自己修改WP的文件就没办法了。]]></description>
		<wfw:commentRss>http://laomao.info/archives/349.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
