﻿<?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://www.99xunle.com/archives/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.99xunle.com</link>
	<description>把博客当作一种投资,时间久了就会看到她价值的所在.</description>
	<lastBuildDate>Thu, 24 Jun 2010 09:09:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>利用 SyntaxHighlighter 高亮显示自己的代码</title>
		<link>http://www.99xunle.com/archives/800</link>
		<comments>http://www.99xunle.com/archives/800#comments</comments>
		<pubDate>Mon, 22 Mar 2010 10:25:00 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[SyntaxHighlighter]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[语法高亮]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/archives/800</guid>
		<description><![CDATA[把主题又整了整，让他支持代码语法高亮.
SyntaxHighlighter 是个不错的选择，到&#160;&#160; http://alexgorbatchev.com/wiki/SyntaxHighlighter&#160; 下载最新版，解压上传到网站合适的位置。
在&#60;head&#62;&#60;/head&#62;中合适的位置添加如下代码：
 
&#60;link type=&#34;text/css&#34; rel=&#34;stylesheet&#34; href=&#34;js/SyntaxHighlighter/Styles/shCore.css&#34; /&#62;
&#60;link type=&#34;text/css&#34; rel=&#34;stylesheet&#34; href=&#34;js/SyntaxHighlighter/Styles/shThemeDefault.css&#34; /&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shCore.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushXml.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushVb.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushSql.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushPython.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushPhp.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushJScript.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushJava.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushCss.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushCSharp.js&#34;&#62;&#60;/script&#62;
.....
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushCpp.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;js/SyntaxHighlighter/Scripts/shBrushPerl.js&#34;&#62;&#60;/script&#62;
&#60;script language=&#34;javascript&#34;&#62;
SyntaxHighlighter.config.clipboardSwf =js/SyntaxHighlighter/Scripts/clipboard.swf';
SyntaxHighlighter.all();
&#60;/script&#62;
这样你就可以调用SyntaxHighlighter的代码高亮功能了。
你只要在代码块两端加上&#60;pre class=”brush: php”&#62;&#60;/pre&#62; (你只需要研究class里的内容)。
对wordpress来说我们只需要在文章页调用SyntaxHighlighter ，因此我们可以这样实现
//在head中添加
&#60;?php if ( is_single() ){ ?&#62;
//这里填上上面的代码块
&#60;?php } ?&#62;
这篇文章就利用了代码高亮，是不是很酷呢。
]]></description>
			<content:encoded><![CDATA[<p>把主题又整了整，让他支持代码语法高亮.</p>
<p>SyntaxHighlighter 是个不错的选择，到&#160;&#160; <a title="http://alexgorbatchev.com/wiki/SyntaxHighlighter" href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">http://alexgorbatchev.com/wiki/SyntaxHighlighter</a>&#160; 下载最新版，解压上传到网站合适的位置。</p>
<p>在&lt;head&gt;&lt;/head&gt;中合适的位置添加如下代码：</p>
<p> <span id="more-800"></span>
<pre class="brush: php" name="code">&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;js/SyntaxHighlighter/Styles/shCore.css&quot; /&gt;
&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;js/SyntaxHighlighter/Styles/shThemeDefault.css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shCore.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushXml.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushVb.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushSql.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushPython.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushPhp.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushJScript.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushJava.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushCss.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushCSharp.js&quot;&gt;&lt;/script&gt;
.....
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushCpp.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/SyntaxHighlighter/Scripts/shBrushPerl.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot;&gt;
SyntaxHighlighter.config.clipboardSwf =js/SyntaxHighlighter/Scripts/clipboard.swf';
SyntaxHighlighter.all();
&lt;/script&gt;</pre>
<p>这样你就可以调用SyntaxHighlighter的代码高亮功能了。</p>
<p>你只要在代码块两端加上&lt;pre class=”brush: php”&gt;&lt;/pre&gt; (你只需要研究class里的内容)。</p>
<p>对wordpress来说我们只需要在文章页调用SyntaxHighlighter ，因此我们可以这样实现</p>
<pre class="brush: php" name="code">//在head中添加
&lt;?php if ( is_single() ){ ?&gt;
//这里填上上面的代码块
&lt;?php } ?&gt;</pre>
<p>这篇文章就利用了代码高亮，是不是很酷呢。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/800/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>向all in one seo pack说拜拜</title>
		<link>http://www.99xunle.com/archives/696</link>
		<comments>http://www.99xunle.com/archives/696#comments</comments>
		<pubDate>Wed, 09 Sep 2009 12:26:15 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=696</guid>
		<description><![CDATA[All in one seo pack 确实是很实用的一款插件受到了广大WordPress爱好者的追捧，但我最近在给WordPress做优化设置，把能去掉的插件都去掉了。其实我们完全可以不要用all in one seo pack 等插件来实现网页关键字和描述的功能。]]></description>
			<content:encoded><![CDATA[<p>All in one seo pack 确实是很实用的一款插件受到了广大WordPress爱好者的追捧</p>
<p>他的下载地址：<a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">http://wordpress.org/extend/plugins/all-in-one-seo-pack/</a></p>
<p>但我最近在给WordPress做优化设置，把能去掉的插件都去掉了。</p>
<p>其实我们完全可以不要用all in one seo pack 等插件来实现网页关键字和描述的功能。</p>
<p>把以下代码插入到你的WordPress主题的header.php就OK了<br />
<span id="more-696"></span><br />
<code>&lt;?php if (is_home()){<br />
$description = "把这些文字换成你博客主页的一些描述";<br />
$keywords = "重阳,久久寻网,";<br />
} elseif (is_single()||is_page()){<br />
if ($post-&gt;post_excerpt) {<br />
$description = $post-gt;post_excerpt;<br />
} else {<br />
$description = substr(strip_tags($post-&gt;post_content),0,220);<br />
}<br />
$keywords = "";<br />
$tags = wp_get_post_tags($post-&gt;ID);<br />
foreach ($tags as $tag ) {<br />
$keywords = $keywords.$tag-gt;name.",";<br />
}<br />
}<br />
?&gt;<br />
&lt;meta name="keywords" content="&lt;?=$keywords?&gt;" &gt;<br />
&lt;meta name="description" content="&lt;?=$description?&gt;" &gt;</code></p>
<p>当然这个还不能实现所有的页面都给$keywords和$description赋值<br />
比如category页面、search页面、404页面等都还没设置。<br />
只需要加几个判断语句就可以实现了 is_category()、is_search()、is404()等</p>
<p>我列出所有的 is_ 判断语句:<code>$is_single, $is_page, $is_archive, $is_preview, $is_date, $is_year, $is_month, $is_time, $is_author,<br />
$is_category, $is_tag, $is_tax, $is_search, $is_feed, $is_comment_feed, $is_trackback, $is_home, $is_404,<br />
$is_comments_popup, $is_admin, $is_attachment, $is_singular, $is_robots, $is_posts_page, $is_paged</code><br />
大家尽情创意去吧.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/696/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>windows下开启apache的.htaccess</title>
		<link>http://www.99xunle.com/archives/692</link>
		<comments>http://www.99xunle.com/archives/692#comments</comments>
		<pubDate>Sat, 05 Sep 2009 15:48:32 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[电脑技巧]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=692</guid>
		<description><![CDATA[windows也是可以支持.htaccess的...最后就是重启一下apache服务器使配置生效，这样就支持.htaccess文件了，终于我自己电脑上用于测试的WordPress也用上固定链接了。]]></description>
			<content:encoded><![CDATA[<p>用了两个月的apache，却一直以为只有linux和UNIX才能支持.htaccess文件，没想到windows也是可以的。</p>
<p>我下载的是<a href="http://labs.xiaonei.com/apache-mirror/httpd/binaries/win32/apache_2.2.13-win32-x86-no_ssl.msi">apache_2.2.13-win32-x86-no_ssl.msi</a>是现在的最新版本。<br />
所以相信这个设置方法很长一段时间都是不会改变的。</p>
<p>打开apache的配置文件httpd.conf<br />
1.把#LoadModule rewrite_module modules/mod_rewrite.so前面的#去掉。<br />
2.找到<br />
<code>   #<br />
    # AllowOverride controls what directives may be placed in .htaccess files.<br />
    # It can be "All", "None", or any combination of the keywords:<br />
    #   Options FileInfo AuthConfig Limit<br />
    #<br />
    AllowOverride None</code><br />
把 AllowOverride None 改为 AllowOverride All</p>
<p><span id="more-692"></span><br />
最后就是重启一下apache服务器使配置生效，这样就支持.htaccess文件了，终于我自己电脑上用于测试的WordPress也用上固定链接了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/692/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>分享一款天龙八部表情</title>
		<link>http://www.99xunle.com/archives/683</link>
		<comments>http://www.99xunle.com/archives/683#comments</comments>
		<pubDate>Mon, 31 Aug 2009 01:49:44 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[乱七八糟]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[天龙八部]]></category>
		<category><![CDATA[表情]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=683</guid>
		<description><![CDATA[以前花了一年的时间沉迷于天龙八部这个游戏，离开的时候还有点舍不得，今天弄到了八部的游戏表情，大家到这里下载吧：]]></description>
			<content:encoded><![CDATA[<p>以前花了一年的时间沉迷于天龙八部这个游戏，离开的时候还有点舍不得，今天弄到了八部的游戏表情，一下子让我回忆起以前的江湖恩怨。。。</p>
<p>其实天龙的表情做的并不精致，但是却很好，很有意思。</p>
<p>大家到这里下载吧：</p>
<p><span id="more-683"></span></p>
<p><a title="天龙八部表情下载" href="http://cid-2488b5575ca043de.skydrive.live.com/self.aspx/%e6%88%91%e7%9a%84%e6%96%87%e4%bb%b6/smilies.rar" target="_blank">天龙八部表情下载</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/683/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>教你限制图片的大小</title>
		<link>http://www.99xunle.com/archives/680</link>
		<comments>http://www.99xunle.com/archives/680#comments</comments>
		<pubDate>Sun, 30 Aug 2009 07:28:30 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[图片缩放]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=680</guid>
		<description><![CDATA[我们用WordPress发帖子的时候，图片有时过大超过了显示区域时，图片会撑破页面，造成页面很难看.特别是换了主题，而这个主题的文章DIV宽度很小时，我们该怎么办，难道一篇文章一篇文章的更换图片不成吗，太累了。]]></description>
			<content:encoded><![CDATA[<p>我们用WordPress发帖子的时候，图片有时过大超过了显示区域时，图片会撑破页面，造成页面很难看.</p>
<p>特别是换了主题，而这个主题的文章DIV宽度很小时，我们该怎么办，难道一篇文章一篇文章的更换图片不成吗，太累了。</p>
<p>我们可以用CSS的maxwidth属性来定义图片的最大宽度，<br />
<code>img{maxwidth:600px} /* 这种方法IE6不支持 */ </code></p>
<p>我们还可以在文章插入图片的时候就给图片定义最大宽度。<br />
&lt;img onload=&#8221;if(this.width&gt;460)this.width=460&#8243; src=&#8221;demo.jpg&#8221; alt=&#8221;"  /&gt; 这样就可以在ie下控制图片的最大宽为460像素了.</p>
<p><span id="more-680"></span><br />
还可以用js来实现：<br />
<code>window.onload = function() {<br />
for (var i= 0; i &lt; document.images.length; i++) {<br />
var maxWidth = 460;<br />
if (document.images[i].width &lt; maxWidth) {<br />
document.images[i].width = maxWidth;<br />
}<br />
}<br />
}</code></p>
<p>把上面的代码放入你主题的jS文件中，或者放在herder.php的&lt;script type=&#8221;text/javascript&#8221;&gt;与&lt;/script&gt;之间</p>
<p>但是我发现这样缩放的图像在显示上会失真，缩放后的图片比较模糊，有什么更好的方法吗？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/680/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>今天做了一个主题，已经完成了80%</title>
		<link>http://www.99xunle.com/archives/673</link>
		<comments>http://www.99xunle.com/archives/673#comments</comments>
		<pubDate>Thu, 27 Aug 2009 15:39:18 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=673</guid>
		<description><![CDATA[今天做了一个主题，已经完成了80%,模仿校内网的风格，现在已经晚上11点半了，实在太困了就先放下了，先穿上这个主题，明天继续接着做完善该主题还存在的一些bug.]]></description>
			<content:encoded><![CDATA[<p>今天做了一个主题，已经完成了80%,</p>
<p>模仿校内网的风格，</p>
<p>现在已经晚上11点半了，实在太困了就先放下了，先穿上这个主题，</p>
<p>明天继续接着做完善该主题还存在的一些bug.<span id="more-673"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/673/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>paged-comments和wp-paged-comments</title>
		<link>http://www.99xunle.com/archives/645</link>
		<comments>http://www.99xunle.com/archives/645#comments</comments>
		<pubDate>Tue, 07 Jul 2009 07:57:06 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[paged-comments]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=645</guid>
		<description><![CDATA[这评论分页的插件还真是多google一下一大堆,有的连名字都几乎一样,比如paged-comments和wp-paged-comments.但是前一个插件我安装了却没有效果,害我白忙活了一场.]]></description>
			<content:encoded><![CDATA[<p>我的评论页一直没有做分页显示,</p>
<p>今天就抽空安装了个wp-paged-comments.效果还不错</p>
<p>这评论分页的插件还真是多google一下一大堆,有的连名字都几乎一样,</p>
<p>比如paged-comments和wp-paged-comments.</p>
<p>但是前一个插件我安装了却没有效果,害我白忙活了一场.</p>
<p><a href="http://www.keyvan.net/code/paged-comments/" target="_blank">paged-comments</a>是老外做的,我这个主题使用了没任何效果.</p>
<p>如果大家碰到这种情况就用<a href="http://wordpress.org/extend/plugins/wp-paged-comments/" target="_blank">wp-paged-comments</a> 这个是国人&#8221;偶爱偶家&#8221;做的,无需对Wordpress和主题进行修改，便于安装。</p>
<p><span id="more-645"></span></p>
<p>我现在就是用的wp-paged-comments.</p>
<p>paged-comments下载:                   <a href="http://www.keyvan.net/files/paged-comments/paged-comments-2.9.1-2008-12-23.zip" target="_blank">paged-comments2.91</a></p>
<p>wp-paged-comments下载:           <a href="http://downloads.wordpress.org/plugin/wp-paged-comments.1.3.5.zip" target="_blank">wp-paged-comments.1.3.5</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/645/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>今天做了个MyTags页面</title>
		<link>http://www.99xunle.com/archives/604</link>
		<comments>http://www.99xunle.com/archives/604#comments</comments>
		<pubDate>Fri, 29 May 2009 06:12:10 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[百度蜘蛛]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=604</guid>
		<description><![CDATA[最近我发现百度，Google，雅虎好像都对我的tags 比较感兴趣 ，主页右边栏的tags都被抓录。我得做个MyTags页面，我在wp_tag_cloud();函数中加了number=800，也就是显示800条标签。]]></description>
			<content:encoded><![CDATA[<p>最近我发现百度，Google，雅虎好像都对我的tags 比较感兴趣 ，主页右边栏的tags都被抓录。</p>
<p>不经意中，我想到该针对这一点好好优化一下。</p>
<p>我得做个MyTags页面，更好的吸引一下爬虫和蜘蛛。</p>
<p>建一个MyTags页面很简单，大家也跟着我做一个吧，这也算一个小小的SEO优化吧。</p>
<p>首先建一个MyTags页面的模板文件如mytags.php，就根据你的主题文件中的page.php做修改。<br />
打开page.php，在最开头加上如下代码：<br />
<code>&lt;?php<br />
/*<br />
Template Name: MyTags Page Template PAGE<br />
*/<br />
?&gt;</code><br />
这是一串声明代码。</p>
<p>我没有安装任何有关 tag 的插件，所以就用Wp自带的函数&lt;?php wp_tag_cloud(); ?&gt;来做。</p>
<p>我改好后的MyTags Page完整代码如下：<br />
<span id="more-604"></span><br />
<code><br />
&lt;?php<br />
/*<br />
Template Name: MyTags Page Template PAGE<br />
*/<br />
?&gt;</p>
<p>&lt;?php get_header(); ?&gt;</p>
<p>&lt;div id="content"&gt;</p>
<p> &lt;div id="contentleft"&gt;<br />
    &lt;div class="postarea"&gt;<br />
    &lt;h2&gt;Tag Archive&lt;/h2&gt;<br />
    &lt;?php wp_tag_cloud('number=800'); ?&gt;<br />
    &lt;/div&gt; <br />
 &lt;/div&gt;</p>
<p>&lt;?php include(TEMPLATEPATH."/sidebar.php");?&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;?php get_footer(); ?&gt;<br />
</code></p>
<p>以上的请根据自己的主题文件做修改。</p>
<p>我在wp_tag_cloud();函数中加了number=800，也就是显示800条标签。如果你不加这个就只会显示跟你首页一样多的标签数（只有20多个）。你有更多的标签可以设置number的值为更大即可。</p>
<p>将mytags.php上传到主题目录。</p>
<p>登录管理后台新建一个MyTags页面，选择刚刚做的MyTags Page Template PAGE为模板，就OK了。</p>
<p>看看我的tags页面：<a href="http://www.99xunle.com/mytags">http://www.99xunle.com/mytags</a></p>
<p>最后希望爬虫和蜘蛛多多光顾吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/604/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>今天给博客加了个相关文章的插件</title>
		<link>http://www.99xunle.com/archives/578</link>
		<comments>http://www.99xunle.com/archives/578#comments</comments>
		<pubDate>Thu, 21 May 2009 14:48:21 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WordPress Related Posts]]></category>
		<category><![CDATA[相关文章插件]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=578</guid>
		<description><![CDATA[跑到wordpress.org上搜寻了一下，找到这么一个插件WordPress Related Posts，可能要比Yet Another Related Post Plugin在匹配方面逊色点，但应该也算是不错的一款]]></description>
			<content:encoded><![CDATA[<p>一直想给博客加个相关文章的插件，也一直没找到合适的。<br />
有网友为我推荐 yet-another-related-posts-plugin ，可以让读者方便地阅读相关文章，也有利于增加博客的页面浏览量。<br />
Yet Another Related Post Plugin 比以前的 WordPress 相关文章插件都要酷，功能也更为强大。而且有汉化的版本很不错的。<br />
Yet Another Related Post Plugin 可以通过类别和标签等多种组合，很灵活地实现不同的效果，可以大大方便访客的浏览。这也正是它的强大之处。<br />
但是我在使用这个插件的时候出现了问题，不管怎么设置都不会有相关文章出现，总是显示NO related posts ！<br />
难道是我主题的缘故（主题是自己设计的，可能还有很多不足之处）<br />
于是我设置了不自动显示而在 single.php 中加入<!--p related_posts();--><br />
可结果还是一样，NO related posts ！<br />
我郁闷了，这么好的插件我却不能用 <img src='http://www.99xunle.com/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' />  。<span id="more-578"></span></p>
<p>跑到wordpress.org上搜寻了一下，找到这么一个插件WordPress Related Posts，可能要比Yet Another Related Post Plugin在匹配方面逊色点，但应该也算是不错的一款，下载下来[<a href="http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/">下载地址</a>] 上传 &#8212; 激活 &#8211;使用 &#8212; 一切正常 &#8212; 用着还不错，就这样吧。如果你和我一样用不了Yet Another Related Post Plugin，就和我一样用WordPress Related Posts 吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/578/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>wordpress生成Google xml格式的网站地图（sitemap）</title>
		<link>http://www.99xunle.com/archives/115</link>
		<comments>http://www.99xunle.com/archives/115#comments</comments>
		<pubDate>Sat, 09 May 2009 07:52:01 +0000</pubDate>
		<dc:creator>重阳</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[sitemap]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.99xunle.com/?p=115</guid>
		<description><![CDATA[之前我曾经介绍过为博客生成网站地图的方法，但是那个网站地图多半还是给人看的。对于搜索引擎，特别是Google，有专门设计的XML格式的网站地图。

虽然在Google网站管理员工具中，支持多种sitemap格式，如标准的RSS feed格式的xml。不过RSS一般只包含最新的URL地址链接，比如wordpress的RSS输出一般可能只包含10个URL，这可能会影响Google对你的网站页面的收录。因此还是生成一个完全符合Google定义的xml格式的sitemap比较稳妥。
在wordpress中，生成这样的网站地图易如反掌。下载这个Google XML Sitemap插件，安装激活，然后在设置面板里点击生成就可以了。生成好以后，就可以到Google的网站管理员工具里提交了，非常方便易用。
]]></description>
			<content:encoded><![CDATA[<p>之前我曾经介绍过为博客<a title="wordpressmap" href="/archives/107" target="_blank">生成网站地图</a>的方法，但是那个网站地图多半还是给人看的。对于搜索引擎，特别是Google，有专门设计的XML格式的网站地图。<br />
<span id="more-115"></span><br />
虽然在Google网站管理员工具中，支持多种sitemap格式，如标准的RSS feed格式的xml。不过RSS一般只包含最新的URL地址链接，比如wordpress的RSS输出一般可能只包含10个URL，这可能会影响Google对你的网站页面的收录。因此还是生成一个完全符合Google定义的xml格式的sitemap比较稳妥。</p>
<p>在wordpress中，生成这样的网站地图易如反掌。下载这个<a href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Google XML Sitemap</a>插件，安装激活，然后在设置面板里点击生成就可以了。生成好以后，就可以到Google的网站管理员工具里提交了，非常方便易用。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.99xunle.com/archives/115/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
