<?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>IM.ASHI &#187; wordpress</title>
	<atom:link href="http://ashi.im/article/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://ashi.im</link>
	<description>有的时候做自己,有的时候却不得不放弃自己。</description>
	<lastBuildDate>Mon, 24 May 2010 00:55:38 +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>给你的wordpress文章添加缩略图</title>
		<link>http://ashi.im/article/wordpress-thumb.html</link>
		<comments>http://ashi.im/article/wordpress-thumb.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 03:51:57 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[代码如诗]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[缩略图]]></category>

		<guid isPermaLink="false">http://ashi.im/article/wordpress-thumb.html</guid>
		<description><![CDATA[&#160;
&#160;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功能，由于我的主题没有自带，但是我又想用这个功能那么该怎么办呢？用插件？这个倒是可以实现，网络上有很多插件可以实现这个功能大家搜索一下就可以了。如果想用代码实现这个功能的继续往下看吧。
<strong>一、准备工作
	</strong>
1.在你的主题目录下建立一个文件夹scripts，在该目录下建立一个子目录cache用于缩略图缓存，把......<p class='alignright'><a href='http://ashi.im/article/wordpress-thumb.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<div id="yass_top_edge_dummy" style="width: 1px; height: 1px; padding: 0px; margin: -9px 0px 0px; border-width: 0px; display: block;">&nbsp;</div>
<div id="yass_top_edge" style="background-image: url(&quot;chrome://yass/content/edgebgtop.png&quot;); background-attachment: scroll; background-position: center bottom; padding: 0px; margin: 0px 0px 0px -8px; border-width: 0px; height: 0px; display: block; width: 1px;">&nbsp;</div>
<p style="margin-top: 20px;">创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功能，由于我的主题没有自带，但是我又想用这个功能那么该怎么办呢？用插件？这个倒是可以实现，网络上有很多插件可以实现这个功能大家搜索一下就可以了。如果想用代码实现这个功能的继续往下看吧。</p>
<p><span style="font-size: 18px;"><strong>一、准备工作<br />
	</strong></span></p>
<p><span style="color: rgb(0, 128, 0);">1.在你的主题目录下建立一个文件夹scripts，在该目录下建立一个子目录cache用于缩略图缓存，把这两个目录设为777。<br />
	</span></p>
<blockquote>
<p>如：<code>yourdomain.com/wp-content/themes/your-theme/scripts/</code></p>
<p><code>yourdomain.com/wp-content/themes/your-theme/scripts/cache/</code></p>
</blockquote>
<p><span style="color: rgb(0, 128, 0);">2.下载</span><a href="http://ashiim.googlecode.com/files/timthumb.php" target="_blank">TimThumb.php</a><span style="color: rgb(0, 128, 0);">并放入scripts文件夹</span>。</p>
<blockquote>
<p><code>yourdomain.com/wp-content/themes/your-theme/scripts/timthumb.php</code></p>
</blockquote>
<p>记得要设文件夹的属性为777。</p>
<p><span style="font-size: 18px;"><strong>二、插入调用代码<br />
	</strong></span></p>
<p>在你的主题目录下找到index.php或者home.php进行编辑，找到定义标题附近的地方插件代码。</p>
<p>这里提供3中不同的代码调用</p>
<p><span style="background-color: rgb(0, 128, 0);">1.只显示图片</span></p>
<blockquote><pre class="php" style="font-family: monospace;"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> <span style="font-style: italic; color: rgb(102, 102, 102);">// This will show only the image. Alter the width and height (in both places) to your needs. ?&gt;</span>
&nbsp;
<span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> <span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(0, 153, 0);">(</span> get_post_meta<span style="color: rgb(0, 153, 0);">(</span><span style="color: rgb(0, 0, 136);">$post</span><span style="color: rgb(51, 153, 51);">-&gt;</span><span style="color: rgb(0, 64, 0);">ID</span><span style="color: rgb(51, 153, 51);">,</span> <span style="color: rgb(0, 0, 255);">&#39;thumb&#39;</span><span style="color: rgb(51, 153, 51);">,</span> <span style="color: rgb(0, 153, 0); font-weight: bold;">true</span><span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(0, 153, 0);">{</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span>
	<span style="color: rgb(51, 153, 51);">&lt;</span>div <span style="color: rgb(0, 0, 0); font-weight: bold;">class</span><span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;postthumb&quot;</span><span style="color: rgb(51, 153, 51);">&gt;</span>
		<span style="color: rgb(51, 153, 51);">&lt;</span>img src<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;&lt;?php bloginfo(&#39;template_directory&#39;); ?&gt;/scripts/timthumb.php?src=&lt;?php echo get_post_meta(<span style="color: rgb(0, 102, 153); font-weight: bold;">$post-&gt;ID</span>, &quot;</span>thumb<span style="color: rgb(0, 0, 255);">&quot;, <span style="color: rgb(0, 102, 153); font-weight: bold;">$single</span> = true); ?&gt;&amp;h=150&amp;w=150&amp;zc=1&quot;</span> alt<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;&lt;?php the_title(); ?&gt;&quot;</span> width<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;100&quot;</span> height<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;57&quot;</span> <span style="color: rgb(51, 153, 51);">/&gt;</span>
	<span style="color: rgb(51, 153, 51);">&lt;/</span>div<span style="color: rgb(51, 153, 51);">&gt;</span>
<span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> <span style="color: rgb(0, 153, 0);">}</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span></pre>
</blockquote>
<p><span style="background-color: rgb(0, 128, 0);">2.显示图片，图片链接到文章。<br />
	</span></p>
<blockquote><pre class="php" style="font-family: monospace;">        <span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> <span style="font-style: italic; color: rgb(102, 102, 102);">// This will show the image and link the image to the post. Alter the width and height (in both places) to your needs. ?&gt;</span>
&nbsp;
        <span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> <span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(0, 153, 0);">(</span> get_post_meta<span style="color: rgb(0, 153, 0);">(</span><span style="color: rgb(0, 0, 136);">$post</span><span style="color: rgb(51, 153, 51);">-&gt;</span><span style="color: rgb(0, 64, 0);">ID</span><span style="color: rgb(51, 153, 51);">,</span> <span style="color: rgb(0, 0, 255);">&#39;thumb&#39;</span><span style="color: rgb(51, 153, 51);">,</span> <span style="color: rgb(0, 153, 0); font-weight: bold;">true</span><span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(0, 153, 0);">{</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span>
	<span style="color: rgb(51, 153, 51);">&lt;</span>div <span style="color: rgb(0, 0, 0); font-weight: bold;">class</span><span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;postthumb&quot;</span><span style="color: rgb(51, 153, 51);">&gt;</span>
		<span style="color: rgb(51, 153, 51);">&lt;</span>a href<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span> rel<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;bookmark&quot;</span> title<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;</span><span style="color: rgb(51, 153, 51);">&gt;&lt;</span>img src<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;&lt;?php bloginfo(&#39;template_directory&#39;); ?&gt;/scripts/timthumb.php?src=&lt;?php echo get_post_meta(<span style="color: rgb(0, 102, 153); font-weight: bold;">$post-&gt;ID</span>, &quot;</span>thumb<span style="color: rgb(0, 0, 255);">&quot;, <span style="color: rgb(0, 102, 153); font-weight: bold;">$single</span> = true); ?&gt;&amp;h=150&amp;w=150&amp;zc=1&quot;</span> alt<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;&lt;?php the_title(); ?&gt;&quot;</span> width<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;150&quot;</span> height<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;150&quot;</span> <span style="color: rgb(51, 153, 51);">/&gt;&lt;/</span>a<span style="color: rgb(51, 153, 51);">&gt;</span>
	<span style="color: rgb(51, 153, 51);">&lt;/</span>div<span style="color: rgb(51, 153, 51);">&gt;</span>
<span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> <span style="color: rgb(0, 153, 0);">}</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span></pre>
</blockquote>
<p><span style="background-color: rgb(0, 128, 0);">3.显示图片，图片链接地址自定<br />
	</span></p>
<p>&nbsp;</p>
<blockquote><pre class="php" style="font-family: monospace;"><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> 	<span style="font-style: italic; color: rgb(102, 102, 102);">// This will show the image and link it to anything you place into another custom field of &quot;imglink&quot;. </span>
		<span style="font-style: italic; color: rgb(102, 102, 102);">// Alter the width and height (in both places) to your needs.  </span>
  <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> <span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(0, 153, 0);">(</span> get_post_meta<span style="color: rgb(0, 153, 0);">(</span><span style="color: rgb(0, 0, 136);">$post</span><span style="color: rgb(51, 153, 51);">-&gt;</span><span style="color: rgb(0, 64, 0);">ID</span><span style="color: rgb(51, 153, 51);">,</span> <span style="color: rgb(0, 0, 255);">&#39;imglink&#39;</span><span style="color: rgb(51, 153, 51);">,</span> <span style="color: rgb(0, 153, 0); font-weight: bold;">true</span><span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(0, 153, 0);">{</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span>
	<span style="color: rgb(51, 153, 51);">&lt;</span>div <span style="color: rgb(0, 0, 0); font-weight: bold;">class</span><span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;postthumb&quot;</span><span style="color: rgb(51, 153, 51);">&gt;</span>
		<span style="color: rgb(51, 153, 51);">&lt;</span>a href<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;&lt;?php echo get_post_meta(<span style="color: rgb(0, 102, 153); font-weight: bold;">$post-&gt;ID</span>, &quot;</span>imglink<span style="color: rgb(0, 0, 255);">&quot;, <span style="color: rgb(0, 102, 153); font-weight: bold;">$single</span> = true); ?&gt;&quot;</span> rel<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;bookmark&quot;</span> title<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;</span><span style="color: rgb(51, 153, 51);">&gt;</span><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?</span>php <span style="color: rgb(0, 153, 0);">}</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span><span style="color: rgb(51, 153, 51);">&lt;</span>img src<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;&lt;?php bloginfo(&#39;template_directory&#39;); ?&gt;/scripts/timthumb.php?src=&lt;?php echo get_post_meta(<span style="color: rgb(0, 102, 153); font-weight: bold;">$post-&gt;ID</span>, &quot;</span>thumb<span style="color: rgb(0, 0, 255);">&quot;, <span style="color: rgb(0, 102, 153); font-weight: bold;">$single</span> = true); ?&gt;&amp;h=150&amp;w=150&amp;zc=1&quot;</span> alt<span style="color: rgb(51, 153, 51);">=</span><span style="color: rgb(0, 0, 255);">&quot;&lt;?php the_title(); ?&gt;&quot;</span>  <span style="color: rgb(51, 153, 51);">/&gt;</span><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?</span>php <span style="color: rgb(177, 177, 0);">if</span> <span style="color: rgb(0, 153, 0);">(</span> get_post_meta<span style="color: rgb(0, 153, 0);">(</span><span style="color: rgb(0, 0, 136);">$post</span><span style="color: rgb(51, 153, 51);">-&gt;</span><span style="color: rgb(0, 64, 0);">ID</span><span style="color: rgb(51, 153, 51);">,</span> <span style="color: rgb(0, 0, 255);">&#39;imglink&#39;</span><span style="color: rgb(51, 153, 51);">,</span> <span style="color: rgb(0, 153, 0); font-weight: bold;">true</span><span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(0, 153, 0);">{</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span><span style="color: rgb(51, 153, 51);">&lt;/</span>a<span style="color: rgb(51, 153, 51);">&gt;</span><span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?</span>php <span style="color: rgb(0, 153, 0);">}</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span>
	<span style="color: rgb(51, 153, 51);">&lt;/</span>div<span style="color: rgb(51, 153, 51);">&gt;</span>
<span style="color: rgb(0, 0, 0); font-weight: bold;">&lt;?php</span> <span style="color: rgb(0, 153, 0);">}</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">?&gt;</span></pre>
</blockquote>
<p><span style="font-size: 18px;"><strong>三、使用方法<br />
	</strong></span></p>
<p>1.在自定义字段值处填入你上传图片的地址</p>
<p>2.使用字段名称 <strong>thumb</strong></p>
<p>3.使用第三种代码的朋友出了需要填<strong> thumb</strong> 外还要填写一个 <strong>imglink</strong> 值。如图所示：</p>
<p><a class="thickbox" href="http://ashi.im/wp-content/uploads/2010/01/thumb.jpg" target="_blank"><img align="middle" alt="" border="0" class="aligncenter size-medium wp-image-1211" height="71" src="http://ashi.im/wp-content/uploads/2010/01/thumb-300x71.jpg" title="给你的wordpress文章添加缩略图" width="300" /></a></p>
<p><span style="font-size: 16px;"><span style="background-color: rgb(165, 42, 42);">PS,不知道怎么回事我在本地测试用第二种方法可以实现的，在服务器上偏偏不行，图片显示不了&#8230;囧，难道服务器问题？现在只能不用TimThumb.php了，把它删除掉，也不用在主题目录里建文件夹了。这样唯一不好的就是不能自己截取缩略图，不过貌似wordpress自带有150*150的缩略图。囧~</span></span></p>
<p>QQREADERA743E3A4568AE6F2</p>
<p>QQREADER63B8199F35B961F3</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/original_size_image-js.html" title="浏览器可显示原图片的JS">浏览器可显示原图片的JS</a> (36)<br /><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在逛Opera...</small></li><li><a href="http://ashi.im/article/touxiang-pinglun.html" title="折腾一下-带头像显示的最新评论代码">折腾一下-带头像显示的最新评论代码</a> (35)<br /><small>&nbsp;
&nbsp;
博客不折腾不行啊，用现在这个主题的时候本来想弄个头像缓存来着，不过在...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/win7-psd-patch.html" title="WIN7下的PSD缩略图补丁">WIN7下的PSD缩略图补丁</a> (52)<br /><small>哇哈哈，渐渐发现WIN7有很多不兼容的地方，也发现有很多地方微软做的确实不细心。上次阿士推介给大家G...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/wordpress-thumb.html/feed</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>启动新主题TryToGo</title>
		<link>http://ashi.im/article/wp-themes-trytogo.html</link>
		<comments>http://ashi.im/article/wp-themes-trytogo.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 06:05:25 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[阿士碎念]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress主题]]></category>
		<category><![CDATA[wordpress修改]]></category>

		<guid isPermaLink="false">http://ashi.im/article/wp-themes-trytogo.html</guid>
		<description><![CDATA[启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE7下没的测试，火狐、Opera、Chrome下都做了测试了，貌似还行~
1.导航样式和链接页面参考木木的Simple-Lines(感谢木木)

2.header.php 中的 description 和 keywords可以自定义的，参考木木的

3.WordPress 內置嵌套評論專用 Ajax comments，这个来自willin(感谢willin)

4.Ajax comments评论回应邮件通知源于willin大大，参考万戈的样式(感谢万戈)......<p class='alignright'><a href='http://ashi.im/article/wp-themes-trytogo.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE7下没的测试，火狐、Opera、Chrome下都做了测试了，貌似还行~<a class="thickbox" rel="ashi" href="http://ashi.im/wp-content/themes/TryToGo/screenshot.png" target="_blank"><img class="alignright" style="border: 0px;" title="TryToGo" src="http://ashi.im/wp-content/themes/TryToGo/screenshot.png" alt="" width="305" height="206" /></a> </p>
<blockquote><p>1.导航样式和链接页面参考木木的<a href="http://immmmm.com/wordpress-theme-simple-lines.html" target="_blank">Simple-Lines</a>(感谢木木) </p>
<p>2.header.php 中的 description 和 keywords可以自定义的，参考木木的 </p>
<p>3.WordPress 內置嵌套評論專用 Ajax comments，这个来自<a href="http://willin.heliohost.org/?p=1271" target="_blank">willin</a>(感谢willin) </p>
<p>4.Ajax comments评论回应邮件通知源于willin大大，参考<a href="http://wange.im/" target="_blank">万戈</a>的样式(感谢万戈) </p>
<p>5.重写CSS;添加评论表情;评论信息修改;添加内置Thickbox功能&#8230;&#8230;具体我也忘了~o(╯□╰)o </p></blockquote>
<p>感谢原主题作者<a title="访问作者主页" href="http://www.tvoywebsite.ru/">Tvoyweb</a>的Seatlle Night主题，不过他没有在主题定义avatar用不了willin的头像缓存了，听万戈说是调用了wp源文件的代码，但是我不懂得修改啊~有没有人愿意教我的？  <a class="thickbox" rel="ashi" href="http://ashi.im/wp-content/themes/TryToGo/screenshot1.png" target="_blank"><img class="alignright" style="border: 0px;" title="原作者主题截图" src="http://ashi.im/wp-content/themes/TryToGo/screenshot1.png" alt="" width="300" height="204" /></a></p>
<p>有什么问题大家帮提提，本人水平太差，请教时希望大大们耐心点~还什么BUG希望大家抓抓~</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li><li><a href="http://ashi.im/article/wordpress-themes.html" title="wordpress主题">wordpress主题</a> (1)<br /><small>这两天抽出时间把现在用的这个主题给汉化了，其实说汉化也不算了，就是在自己认为要用中文的地方改了。现在...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/wp-themes-trytogo.html/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>wordpress 301重定向问题</title>
		<link>http://ashi.im/article/wordpress-301.html</link>
		<comments>http://ashi.im/article/wordpress-301.html#comments</comments>
		<pubDate>Wed, 06 Jan 2010 11:37:34 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[代码如诗]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[301重定向]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ashi.im/article/wordpress-301.html</guid>
		<description><![CDATA[要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi.im/***.html
由于种种原因更换域名博客域名的博主是不是常常为了如何进行301重定向烦恼呢?做好301重定向是一项重要的工作啊。前段时间<strong>万戈</strong>换域名了，他的博客中提到了一些换域名后要做的事情对阿士来说挺有帮助的，不过阿士不同的是：在CP面板里做重定向了貌似不能进行跳转的，请教<strong>蓝冰</strong>通过.htac......<p class='alignright'><a href='http://ashi.im/article/wordpress-301.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<blockquote><p>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi.im/***.html</p></blockquote>
<p>由于种种原因更换域名博客域名的博主是不是常常为了如何进行301重定向烦恼呢?做好301重定向是一项重要的工作啊。前段时间<strong>万戈</strong>换域名了，他的博客中提到了一些换域名后要做的事情对阿士来说挺有帮助的，不过阿士不同的是：在CP面板里做重定向了貌似不能进行跳转的，请教<strong>蓝冰</strong>通过.htaccess设置后发现也不起作用&#8230;&#8230;囧了。</p>
<p>后来还是蓝冰找到办法，阿士在这里记录之，方便自己，也方便大家。</p>
<p><strong><span style="color: #800080;">在博客的根目录中找到wp-blog-header.php</span></strong></p>
<p><strong><span style="color: #800080;">用文本编辑器(推荐用Notepad++)打开，在开头加入以下代码：</span></strong></p>
<blockquote><p>if (strtolower($_SERVER['SERVER_NAME'])!=&#8217;ashi.im&#8217;){<br />
 $URIRedirect=$_SERVER['REQUEST_URI'];<br />
 if(strtolower($URIRedirect)==&#8221;/index.php&#8221;){<br />
  $URIRedirect=&#8221;/&#8221;;<br />
 }<br />
 header(&#8216;HTTP/1.1 301 Moved Permanently&#8217;);<br />
 header(&#8216;Location:http://ashi.im&#8217;.$URIRedirect);<br />
 exit();<br />
}</p></blockquote>
<p>修改上面的域名ashi.im为你的域名就可以了。</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li><li><a href="http://ashi.im/article/wordpress-themes.html" title="wordpress主题">wordpress主题</a> (1)<br /><small>这两天抽出时间把现在用的这个主题给汉化了，其实说汉化也不算了，就是在自己认为要用中文的地方改了。现在...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/wordpress-301.html/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>升级wordpress 2.9了</title>
		<link>http://ashi.im/article/upgrade-wordpress.html</link>
		<comments>http://ashi.im/article/upgrade-wordpress.html#comments</comments>
		<pubDate>Sun, 20 Dec 2009 06:19:13 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[阿士碎念]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://ashi.im/article/%e5%8d%87%e7%ba%a7wordpress-2-9%e4%ba%86.html</guid>
		<description><![CDATA[今天回来了，顺便升级了一下<strong>wordpress</strong>，现在2.9了。由于我的<strong>wordpress</strong>下载、升级插件和<strong>wordpress</strong>时都提示
Abort class-pclzip.php : Missing zlib extensions
上网查看下是缺少zlib扩展，貌似服务器问题，我现在重装<strong>wordpress</strong>了还是不行，现在只好求助空间商了，看下他们怎么说吧。
升级2.9了，貌似感觉不出什么，不知道大家升......<p class='alignright'><a href='http://ashi.im/article/upgrade-wordpress.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>今天回来了，顺便升级了一下<strong>wordpress</strong>，现在2.9了。由于我的<strong>wordpress</strong>下载、升级插件和<strong>wordpress</strong>时都提示</p>
<blockquote><p>Abort class-pclzip.php : Missing zlib extensions</p></blockquote>
<p>上网查看下是缺少zlib扩展，貌似服务器问题，我现在重装<strong>wordpress</strong>了还是不行，现在只好求助空间商了，看下他们怎么说吧。</p>
<p>升级2.9了，貌似感觉不出什么，不知道大家升级了没。</p>
<p>另外，关闭小墙重新启用Akismet，因为我发现它把<a href="http://www.fanren001.com" target="_blank">开心凡人</a>等几个朋友的评论直接打入垃圾评论了，这里说声抱歉了。</p>
<p>另外认领下豆瓣吧：doubanclaimc9ff9e215b82f811   73703582</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li><li><a href="http://ashi.im/article/wordpress-themes.html" title="wordpress主题">wordpress主题</a> (1)<br /><small>这两天抽出时间把现在用的这个主题给汉化了，其实说汉化也不算了，就是在自己认为要用中文的地方改了。现在...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/upgrade-wordpress.html/feed</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>好像出错了</title>
		<link>http://ashi.im/article/it-is-wrong.html</link>
		<comments>http://ashi.im/article/it-is-wrong.html#comments</comments>
		<pubDate>Tue, 15 Dec 2009 14:34:42 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[阿士碎念]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[出错]]></category>
		<category><![CDATA[问题]]></category>

		<guid isPermaLink="false">http://ashi.im/article/%e5%a5%bd%e5%83%8f%e5%87%ba%e9%94%99%e4%ba%86.html</guid>
		<description><![CDATA[这两天有点事情没的更新，今天想趁有点时间弄下博客，可是&#8230;
安装“小墙”好像不能用的，自己发个垃圾评论试了试，没拦住。
想把js文件压缩下，结果压缩了以后发现评论时要刷新页面了，晕，我用了wordpress-thread-comment插件啊。
在后台发现一个插件更新了，结果点了自动升级以后发现更新不了&#8230;
原来用PHP-Speedy-WP插件没问题，结果今天发现加载不了CSS......<p class='alignright'><a href='http://ashi.im/article/it-is-wrong.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是&#8230;</p>
<p>安装“小墙”好像不能用的，自己发个垃圾评论试了试，没拦住。</p>
<p>想把js文件压缩下，结果压缩了以后发现评论时要刷新页面了，晕，我用了wordpress-thread-comment插件啊。</p>
<p>在后台发现一个插件更新了，结果点了自动升级以后发现更新不了&#8230;</p>
<p>原来用PHP-Speedy-WP插件没问题，结果今天发现加载不了CSS了&#8230;</p>
<p>到底怎么回事呢？难道RP用光了？</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li><li><a href="http://ashi.im/article/wordpress-themes.html" title="wordpress主题">wordpress主题</a> (1)<br /><small>这两天抽出时间把现在用的这个主题给汉化了，其实说汉化也不算了，就是在自己认为要用中文的地方改了。现在...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/it-is-wrong.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>博客更换下皮肤</title>
		<link>http://ashi.im/article/changeskin.html</link>
		<comments>http://ashi.im/article/changeskin.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 13:00:30 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[精品小软]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[皮肤]]></category>

		<guid isPermaLink="false">http://ashi.im/?p=921</guid>
		<description><![CDATA[恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行吧，傍晚匆匆汉化了一下。目前知道“留言地带”好像不行掉了，知道怎么回事的朋友请多指教啊，其他还没发现。路过的各位帮忙测试下有没有BUG啊，务必，阿士在这里万分感谢了。
PS：留言的找到原因了，原来是皮肤作者没加入评论部分，添加上又OK了。
你可以看看相关的东东:<ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图......</a></li></ul><p class='alignright'><a href='http://ashi.im/article/changeskin.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行吧，傍晚匆匆汉化了一下。目前知道“留言地带”好像不行掉了，知道怎么回事的朋友请多指教啊，其他还没发现。路过的各位帮忙测试下有没有BUG啊，务必，阿士在这里万分感谢了。</p>
<p>PS：留言的找到原因了，原来是皮肤作者没加入评论部分，添加上又OK了。</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/3d-sougou-skin.html" title="3D立体搜狗输入法皮肤">3D立体搜狗输入法皮肤</a> (6)<br /><small>先来一张截图，大家看看喜不喜欢，有没被勾引到呢？
横排显示
 效果还不错吧，阿士刚看到的时候也喜...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/changeskin.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>关闭wordpress的文章修订版本及自动保存功能</title>
		<link>http://ashi.im/article/close-wp-antosave.html</link>
		<comments>http://ashi.im/article/close-wp-antosave.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 01:52:26 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[知识传递]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[保存]]></category>
		<category><![CDATA[修订]]></category>
		<category><![CDATA[关闭]]></category>
		<category><![CDATA[自动]]></category>

		<guid isPermaLink="false">http://ashi.im/?p=818</guid>
		<description><![CDATA[ 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的底部，看到了本文章的许多修订版本，认真看了看，发现它也像Windwos的系统还原一样，可以还原到以前的版本去(但它没有人家的那个关闭开关)，自己觉得没有必要，也搞明白了为什么以前发布文章时文章的ID不连续的原因。于是在网上搜索了一下，发现许多人也遇到了这样的问题，实践了一下，整理了一下，提供给大家分......<p class='alignright'><a href='http://ashi.im/article/close-wp-antosave.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的底部，看到了本文章的许多修订版本，认真看了看，发现它也像Windwos的系统还原一样，可以还原到以前的版本去(但它没有人家的那个关闭开关)，自己觉得没有必要，也搞明白了为什么以前发布文章时文章的ID不连续的原因。于是在网上搜索了一下，发现许多人也遇到了这样的问题，实践了一下，整理了一下，提供给大家分享（在wordpress2.7.1、2.8、2.8.4版本下通过）。</p>
<p>关闭wordpress的文章修订版本功能</p>
<p>方法一：修改wp-config.php 文件</p>
<p>（程序文件的编辑，请使用专业的编辑器如 EmEditor 来编辑，不要使用记事本之类的，容易出现首页版面偏左、WLW打开出错的问题，以及其他隐藏错误，这是我的教训，切记切记）</p>
<p>      编辑wordpress的安装目录下的 wp-config.php 文件，在下面文字之后（基本上快在最后了）：</p>
<p>/** 设置WordPress变量和包含文件。 */     (<span style="color: #800080;"> 或 /** Sets up WordPress vars and included files. */ </span>)</p>
<p>      添加以下代码：</p>
<p><span style="color: #ff0000;">define(&#8216;WP_POST_REVISIONS&#8217;,&#8217;0&#8242;);</span></p>
<p>      上述代码是屏蔽掉“Revision”，有几个参数可选，根据实际需要修改（蓝色部分，本处就是指的0）：<br />
                   true（默认）或者 -1：保存所有修订版本<br />
false 或者 0：不保存任何版本（除了自动保存的版本）<br />
大于 0的整数 n：保存 n 个修订版本（+1 只保存自动保存版本），旧的版本将被删除。<br />
      具体说明请查看官方的说明文档“<a href="http://codex.wordpress.org/Revision_Management" target="_blank">Revision Management</a>”<br />
      此方法的不足在于，wordpress主程序升级后，需要重新设置（也许今后会增加这么一个开关按钮，没现在这么麻烦）。</p>
<p>方法二：使用插件法</p>
<p>      使用的插件就是： <a href="http://exper.3drecursions.com/wp/disable-revisions.zip" target="_blank">disable-revisions</a>，方法很简单，进入后台激活即可，不需要再设置什么，因此不再罗嗦。</p>
<p>清除数据库中的修订版</p>
<p>     <span style="color: #ff0000;"> 安全起见，操作前请先备份数据！</span></p>
<p>      方法一：使用WP Cleaner插件来完成1.下载插件 WP Cleaner（<a href="http://www.lesishu.cn/wp-content/uploads/wpcleaner_10.zip" target="_blank">点击下载</a>，或<a href="http://www.jiangmiao.org/blog/138.html" target="_blank">访问插件主页</a>）<br />
2.将下载的文件解压后上传到博客 wp-content/plugins/ 目录下<br />
3.在后台的“插件”项中启用<br />
4.点击“设置”即可看到“WP Cleaner”项<br />
5.按提示删除修订版。</p>
<p> </p>
<p>      方法二：手动清除数据库中的修订版</p>
<p>      首先登录你的cPanel——&gt;数据库——&gt;phpMyAdmin——SQL，然后输入以下 SQL 语句点执行即可把所有的Post Revision清除：</p>
<p><span style="color: #ff0000;">DELETE FROM wp_posts WHERE post_type = &#8220;revision&#8221;;</span></p>
<p>      此方法高效而且无副作用，当然对于不熟悉sql语句的朋友可要谨慎使用了，不小心输错语句那可是相当危险的（注意这里的wp_什么表示数据库前缀，如果你修改了默认的wp前缀，则需要改为你自己的，否则会报告没找到）；不过不用怕，这里还有一个简单明了的方法，免去你的担忧。</p>
<p>      1.打开你的wordpress数据库，展开表 wp_posts（注意这里的wp_什么表示数据库前缀，如果你修改了默认的wp前缀，则查看你自己的xxx_posts），点击左上角的浏览，这表里包含的数据有page（页面）、post（文章）、revision（修订）；<br />
      2.点击“post_type”子键进行分类排序，把所有显示“revision”的ID都勾选上（可能有多页，需要不断的重复），看清楚来，是键值为“revision”的才勾哟；<br />
      3.然后点删除。大功告成！新的和旧的“revision”都拜拜了。</p>
<p> <a href="http://ashi.im/wp-content/uploads/2009/09/07.gif"><img class="aligncenter size-full wp-image-819" title="07" src="http://ashi.im/wp-content/uploads/2009/09/07.gif" alt="07" width="430" height="350" /></a><br />
关闭wordpress的自动保存功能</p>
<p>      编辑wordpress的安装目录下的 wp-config.php 文件，在下面文字之后（基本上快在最后了）：</p>
<p>/** 设置WordPress变量和包含文件。 */     ( <span style="color: #800080;">或 /** Sets up WordPress vars and included files. */ </span>)</p>
<p>      添加以下代码：</p>
<p><span style="color: #ff0000;">define(&#8216;AUTOSAVE_INTERVAL&#8217;, &#8217;3600&#8242;);</span></p>
<p>      上述代码会将自动保存时间间隔改为3600秒，即60分钟。</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/autopic.html" title="为FCK编辑器增加远程图片自动保存功能">为FCK编辑器增加远程图片自动保存功能</a> (4)<br /><small>希望大家以后多多支持我的博客就是了。呵呵......

1.将remoteupload目录上传到...</small></li><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/close-wp-antosave.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>wordpress主题</title>
		<link>http://ashi.im/article/wordpress-themes.html</link>
		<comments>http://ashi.im/article/wordpress-themes.html#comments</comments>
		<pubDate>Sun, 20 Sep 2009 04:11:03 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[精品小软]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://ashi.im/?p=571</guid>
		<description><![CDATA[这两天抽出时间把现在用的这个主题给汉化了，其实说汉化也不算了，就是在自己认为要用中文的地方改了。现在整个首页除了那个搜索基本都是汉化了吧。嘻嘻&#8230;..本来分类页和搜索结果页的日志都没链接的，现在也加上了。修改翻页形式使之适应page navi的调用。更换了logo和日志上的那个图片，呵呵，就是那个手了。总算弄到自己满意了，不过IE6下好像不太兼容。更改下404错误页面，毕竟刚转过来肯定4......<p class='alignright'><a href='http://ashi.im/article/wordpress-themes.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>这两天抽出时间把现在用的这个主题给汉化了，其实说汉化也不算了，就是在自己认为要用中文的地方改了。现在整个首页除了那个搜索基本都是汉化了吧。嘻嘻&#8230;..本来分类页和搜索结果页的日志都没链接的，现在也加上了。修改翻页形式使之适应page navi的调用。更换了logo和日志上的那个图片，呵呵，就是那个手了。总算弄到自己满意了，不过IE6下好像不太兼容。更改下404错误页面，毕竟刚转过来肯定404出现很多次。哎，有什么地方还有问题大家都跟我说说。</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/wordpress-themes.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>【备】wordpress如何实现摘要</title>
		<link>http://ashi.im/article/wordpress-how-to-achieve-summary.html</link>
		<comments>http://ashi.im/article/wordpress-how-to-achieve-summary.html#comments</comments>
		<pubDate>Thu, 17 Sep 2009 18:43:11 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[精品小软]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[摘要]]></category>

		<guid isPermaLink="false">http://ashi.im/?p=567</guid>
		<description><![CDATA[初用wordpress，做几篇记录备忘。
打开你使用的theme中的index.php，查找


或


修改为



你可以看看相关的东东:<ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)&#160;
&#160;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE......</li></ul><p class='alignright'><a href='http://ashi.im/article/wordpress-how-to-achieve-summary.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>初用wordpress，做几篇记录备忘。<br />
打开你使用的theme中的index.php，查找</p>
<pre lang="LANGUAGE" line="1" file="download.txt" colla="+">
<?php the_content(__('(more...)')); ?>
或
<?php the_content(); ?>
</pre>
<p>修改为</p>
<pre lang="LANGUAGE" line="1" file="download.txt" colla="+">
<?php if(!is_single()) {
the_excerpt();
} else {
the_content(__('(more...)'));
} ?>
</pre>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/wordpress-how-to-achieve-summary.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2009-9-13</title>
		<link>http://ashi.im/article/2009-9-13.html</link>
		<comments>http://ashi.im/article/2009-9-13.html#comments</comments>
		<pubDate>Sun, 13 Sep 2009 02:02:23 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[阿士碎念]]></category>
		<category><![CDATA[PJBlog]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[整理]]></category>

		<guid isPermaLink="false">http://ashi.im/?p=199</guid>
		<description><![CDATA[转到wordpress吧，PJBlog玩累了，现在想转过来了。原来博客的图片上面的都转过来了，但是有些显示不出来了。100多篇日志，看看有空抽点时间来个大整理，目前还不行，没那个精力了。如果有哪位朋友发现某篇文章对你有用可以通知我，我会尽快修改过来。谢谢！40596bb5
你可以看看相关的东东:<ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)&#160;
&#160;
创建日志缩略图我想很多w......</li></ul><p class='alignright'><a href='http://ashi.im/article/2009-9-13.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>转到wordpress吧，PJBlog玩累了，现在想转过来了。原来博客的图片上面的都转过来了，但是有些显示不出来了。100多篇日志，看看有空抽点时间来个大整理，目前还不行，没那个精力了。如果有哪位朋友发现某篇文章对你有用可以通知我，我会尽快修改过来。谢谢！40596bb5</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/2009-9-13.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>到底要用什么样的插件呢？</title>
		<link>http://ashi.im/article/what-to-use.html</link>
		<comments>http://ashi.im/article/what-to-use.html#comments</comments>
		<pubDate>Thu, 03 Sep 2009 22:17:29 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[阿士碎念]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.flisy.cn/?p=8</guid>
		<description><![CDATA[      一直以来不想用wordpress主要是因为我不知道如何打造一个属于自己特色的博客，简单来说就是不知道应该如果去添加插件。网上搜索了一下，这个所这个好用那个说那个好用，如果都装的话起码有百来个。郁闷！有些插件都是英文说明，看的云里雾里；有些插件根本没写清楚要怎么使用，要注意什么。也许是我比较笨吧，路过的朋友有谁能教教我呢？
你可以看看相关的东东:<ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (......</li></ul><p class='alignright'><a href='http://ashi.im/article/what-to-use.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>      一直以来不想用wordpress主要是因为我不知道如何打造一个属于自己特色的博客，简单来说就是不知道应该如果去添加插件。网上搜索了一下，这个所这个好用那个说那个好用，如果都装的话起码有百来个。郁闷！有些插件都是英文说明，看的云里雾里；有些插件根本没写清楚要怎么使用，要注意什么。也许是我比较笨吧，路过的朋友有谁能教教我呢？</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li><li><a href="http://ashi.im/article/changeskin.html" title="博客更换下皮肤">博客更换下皮肤</a> (4)<br /><small>恩，皮肤用久了大家可能觉得没什么，但是自己觉得有点疲劳了，所以今天上网找了一个皮肤。这个皮肤看着还行...</small></li><li><a href="http://ashi.im/article/close-wp-antosave.html" title="关闭wordpress的文章修订版本及自动保存功能">关闭wordpress的文章修订版本及自动保存功能</a> (3)<br /><small> 今日打开自己的博客，发现一个小错误，然后回到后台修改了一下，再发布一下。无意当中，翻看到编辑页面的...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/what-to-use.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我的wordpress</title>
		<link>http://ashi.im/article/mywordpress.html</link>
		<comments>http://ashi.im/article/mywordpress.html#comments</comments>
		<pubDate>Thu, 03 Sep 2009 18:54:13 +0000</pubDate>
		<dc:creator>阿士</dc:creator>
				<category><![CDATA[阿士碎念]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[免费]]></category>
		<category><![CDATA[国外]]></category>
		<category><![CDATA[空间]]></category>

		<guid isPermaLink="false">http://www.flisy.cn/article/%e6%88%91%e7%9a%84wordpress.html</guid>
		<description><![CDATA[申请了国外的一个免费空间，今天起开始我的wordpress之旅，要坚持！之前很想用wordpress但是都没坚持下来，现在用国外免费的空间，我知道迟早要换的，但是我不会自己删除博客了。
你可以看看相关的东东:<ul class="related_post"><li><a href="http://ashi.im/article/outchain.html" title="图片文件音乐免费外链网络存储空间">图片文件音乐免费外链网络存储空间</a> (0)想想这年头真是诱惑无处不在啊,个人站长或多或少的受到虚拟空间或者网络硬盘大小的限制,而十分的节约每一...</li><li><a href="http://ashi.im/article/photoroom.html" title="十多款可外链的免费相册及图片储存空间">十多款可外链的免费相册及图片储存空间</a> (1)所......</li></ul><p class='alignright'><a href='http://ashi.im/article/mywordpress.html'>阅读全文</a></p>]]></description>
			<content:encoded><![CDATA[<p>申请了国外的一个免费空间，今天起开始我的wordpress之旅，要坚持！之前很想用wordpress但是都没坚持下来，现在用国外免费的空间，我知道迟早要换的，但是我不会自己删除博客了。</p>
<h2  class="related_post_title">你可以看看相关的东东:</h2><ul class="related_post"><li><a href="http://ashi.im/article/outchain.html" title="图片文件音乐免费外链网络存储空间">图片文件音乐免费外链网络存储空间</a> (0)<br /><small>想想这年头真是诱惑无处不在啊,个人站长或多或少的受到虚拟空间或者网络硬盘大小的限制,而十分的节约每一...</small></li><li><a href="http://ashi.im/article/photoroom.html" title="十多款可外链的免费相册及图片储存空间">十多款可外链的免费相册及图片储存空间</a> (1)<br /><small>所谓外链，就是在新网页中直接浏览图片并获取图片地址，可以应用于论坛头像、个性签名。之前几乎国内各大相...</small></li><li><a href="http://ashi.im/article/wordpress-thumb.html" title="给你的wordpress文章添加缩略图">给你的wordpress文章添加缩略图</a> (31)<br /><small>&nbsp;
&nbsp;
创建日志缩略图我想很多wper都有用过这个方法，很多主题都自带这个功...</small></li><li><a href="http://ashi.im/article/wp-themes-trytogo.html" title="启动新主题TryToGo">启动新主题TryToGo</a> (33)<br /><small>启用新的主题了，自己改了好几天，不过貌似还有BUG，IE下(我的是IE8)侧边栏有问题,IE6和IE...</small></li><li><a href="http://ashi.im/article/wordpress-301.html" title="wordpress 301重定向问题">wordpress 301重定向问题</a> (23)<br /><small>要实现的是从原来的域名ssslove.com/***.html访问的时候，通过301跳转到ashi....</small></li><li><a href="http://ashi.im/article/upgrade-wordpress.html" title="升级wordpress 2.9了">升级wordpress 2.9了</a> (51)<br /><small>今天回来了，顺便升级了一下wordpress，现在2.9了。由于我的wordpress下载、升级插件...</small></li><li><a href="http://ashi.im/article/it-is-wrong.html" title="好像出错了">好像出错了</a> (22)<br /><small>这两天有点事情没的更新，今天想趁有点时间弄下博客，可是...

安装“小墙”好像不能用的，自己发...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ashi.im/article/mywordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
