<?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>WordPress主题模板设计制作修改</title>
	<atom:link href="http://lizus.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lizus.com</link>
	<description>个人,网店,团队,企业WordPress建站</description>
	<lastBuildDate>Mon, 12 Jul 2010 03:16:39 +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>samanthass.com</title>
		<link>http://lizus.com/client/samanthass-com/</link>
		<comments>http://lizus.com/client/samanthass-com/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 03:16:39 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[部分客户展示]]></category>
		<category><![CDATA[wordpress站点]]></category>
		<category><![CDATA[个人博客]]></category>
		<category><![CDATA[中文主题模板]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=180</guid>
		<description><![CDATA[... ]]></description>
			<content:encoded><![CDATA[... ]]></content:encoded>
			<wfw:commentRss>http://lizus.com/client/samanthass-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello Becky</title>
		<link>http://lizus.com/client/hello-becky/</link>
		<comments>http://lizus.com/client/hello-becky/#comments</comments>
		<pubDate>Sun, 23 May 2010 02:24:55 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[部分客户展示]]></category>
		<category><![CDATA[wordpress站点]]></category>
		<category><![CDATA[中文主题模板]]></category>
		<category><![CDATA[名人博客]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=176</guid>
		<description><![CDATA[... ]]></description>
			<content:encoded><![CDATA[... ]]></content:encoded>
			<wfw:commentRss>http://lizus.com/client/hello-becky/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>18条WordPress SQL查询语句</title>
		<link>http://lizus.com/faq/18tiao-wordpress-sqlcha-xun-yu/</link>
		<comments>http://lizus.com/faq/18tiao-wordpress-sqlcha-xun-yu/#comments</comments>
		<pubDate>Wed, 12 May 2010 12:00:48 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[WordPress常见问题]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=173</guid>
		<description><![CDATA[不要轻易折腾你的SQL。但有的时候  ，使用SQL能大大提高你的办事效率，或者有的时候，你不得不用SQL来改变一些东西，比如把让你老是觉得不安全的admin这几个字换成其它的，比如你 想收集所... ]]></description>
			<content:encoded><![CDATA[<p>不要轻易折腾你的SQL。但有的时候  ，使用SQL能大大提高你的办事效率，或者有的时候，你不得不用SQL来改变一些东西，比如把让你老是觉得不安全的admin这几个字换成其它的，比如你 想收集所有留言者的邮箱地址来实现你的垃圾营销目的.</p>
<p>本文为大家介绍<strong>19条<a href="http://lizus.com">wordpress</a> SQL查询</strong>，你可能啥时候就会需要到。</p>
<p><strong>使用方法：</strong></p>
<p>进入你主机的phpmyadmin，选择你的WordPress数据，点击SQL选项卡，在文本框中输入SQL查询语句，执行！</p>
<p><strong>高度注意：</strong></p>
<p>在每次执行SQL语句前，请<strong>勿必备份你的WordPress数据库</strong>。</p>
<h3>1. 删除所有未使用的标签</h3>
<pre><code>DELETE a,b,c
FROM wp_terms AS a
LEFT JOIN wp_term_taxonomy AS c ON a.term_id = c.term_id
LEFT JOIN wp_term_relationships AS b ON b.term_taxonomy_id = c.term_taxonomy_id
WHERE c.taxonomy = 'post_tag' AND c.count = 0</code></pre>
<h3>2. 删除所有文章修订版本(Revisions)以及它们的Meta数据</h3>
<pre><code>DELETE a,b,c
FROM wp_posts a
LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id)
WHERE a.post_type = 'revision'</code></pre>
<h3>3. 更改WordPress地址和首页地址</h3>
<pre><code>UPDATE wp_options
SET option_value = replace(option_value, 'http://www.旧网址.com', 'http://www.新网址.com')
WHERE option_name = 'home' OR option_name = 'siteurl'</code></pre>
<h3>4. 更改文章的GUID</h3>
<pre><code>UPDATE wp_posts
SET guid = REPLACE (guid, 'http://www.旧网址.com', 'http://www.新网址.com')</code></pre>
<h3>5. 更改正文中的链接地址</h3>
<pre><code>UPDATE wp_posts
SET post_content = REPLACE (post_content, 'http://www.旧网址.com', 'http://www.新网址.com')</code></pre>
<h3>6. 更新文章的Meta值</h3>
<pre><code>UPDATE wp_postmeta
SET meta_value = REPLACE (meta_value, 'http://www.旧网址.com', 'http://www.新网址.com'</code></pre>
<h3>7. 重设Admin密码</h3>
<pre><code>UPDATE wp_users
SET user_pass = MD5( 'new_password' )
WHERE user_login = 'admin'</code></pre>
<h3>8. 重设admin的用户名</h3>
<pre><code>UPDATE wp_users
SET user_login = 'newname'
WHERE user_login = 'admin'</code></pre>
<h3>9. 将作者a的文章全部转移到作者b</h3>
<pre><code>UPDATE wp_posts
SET post_author = 'b'
WHERE post_author = 'a'</code></pre>
<h3>10. 删除文章的meta标签</h3>
<pre><code>DELETE FROM wp_postmeta
WHERE meta_key = 'your-meta-key'
</code>
</pre>
<h3>11. 导出所有评论中的邮件地址</h3>
<pre><code>SELECT DISTINCT comment_author_email
FROM wp_comments</code></pre>
<h3>12. 删除所有的Pingback</h3>
<pre><code>DELETE FROM wp_comments
WHERE comment_type = 'pingback'</code></pre>
<h3>13. 删除所有的垃圾评论</h3>
<pre><code>DELETE FROM wp_comments
WHERE comment_approved = 'spam'</code></pre>
<h3>14. 禁用所有激活的插件</h3>
<pre><code>UPDATE wp_options
SET option_value = ''
WHERE option_name = 'active_plugins'</code></pre>
<h3>15. 罗列所有未使用的Meta标签</h3>
<pre><code>SELECT *
FROM wp_postmeta pm
LEFT JOIN wp_posts wp ON wp.ID = pm.post_id
WHERE  wp.ID IS NULL</code></pre>
<h3>16. 关闭旧文章的留言</h3>
<pre><code>UPDATE wp_posts
SET comment_status = 'closed'
WHERE post_date &lt; '2009-01-01' AND post_status = 'publish'</code></pre>
<h3>17. 更新留言者的网址</h3>
<pre><code>UPDATE wp_comments
SET comment_author_url = REPLACE( comment_author_url, 'http://旧网址.com', 'http://新网址.com' )</code></pre>
<h3>18. 更新正文内所有的’target=”_blank”‘为’rel=”nofollow”‘</h3>
<pre><code>UPDATE wp_posts
SET post_content = REPLACE (post_content, 'target="_blank',  'rel="nofollow')</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://lizus.com/faq/18tiao-wordpress-sqlcha-xun-yu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>takit.me</title>
		<link>http://lizus.com/client/takit-me/</link>
		<comments>http://lizus.com/client/takit-me/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 06:06:01 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[部分客户展示]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=170</guid>
		<description><![CDATA[... ]]></description>
			<content:encoded><![CDATA[... ]]></content:encoded>
			<wfw:commentRss>http://lizus.com/client/takit-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>chinatoursaffordable.com</title>
		<link>http://lizus.com/client/chinatoursaffordable-com/</link>
		<comments>http://lizus.com/client/chinatoursaffordable-com/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 05:59:22 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[部分客户展示]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=167</guid>
		<description><![CDATA[... ]]></description>
			<content:encoded><![CDATA[... ]]></content:encoded>
			<wfw:commentRss>http://lizus.com/client/chinatoursaffordable-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ijiayu.com</title>
		<link>http://lizus.com/client/ijiayu-com/</link>
		<comments>http://lizus.com/client/ijiayu-com/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 04:50:00 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[部分客户展示]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=159</guid>
		<description><![CDATA[... ]]></description>
			<content:encoded><![CDATA[... ]]></content:encoded>
			<wfw:commentRss>http://lizus.com/client/ijiayu-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>哪些网站在使用WordPress</title>
		<link>http://lizus.com/faq/na-xie-wang-zhan-zai-shi-yong/</link>
		<comments>http://lizus.com/faq/na-xie-wang-zhan-zai-shi-yong/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 07:20:01 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[wordpress站点]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=152</guid>
		<description><![CDATA[WordPress作为全球流行的CMS布署工具,因其轻量,灵活,易布署,易优化等特点早已渗透到CMS的各种领域.以下列表展示在全球范围内的各类以WordPress搭建的网站(列表随时可能更新,且排名不分先后.):

... ]]></description>
			<content:encoded><![CDATA[<p>WordPress作为全球流行的CMS布署工具,因其轻量,灵活,易布署,易优化等特点早已渗透到CMS的各种领域.以下列表展示在全球范围内的各类以WordPress搭建的网站(列表随时可能更新,且排名不分先后.):</p>
<ul>
<li><a href="http://blogs.blackberry.com/" target="_blank">黑莓手机官 方博客</a></li>
</ul>
<p>如果你也知道WordPress做的站点,请发邮件告诉我吧,谢谢:)</p>
]]></content:encoded>
			<wfw:commentRss>http://lizus.com/faq/na-xie-wang-zhan-zai-shi-yong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>loris</title>
		<link>http://lizus.com/client/loris/</link>
		<comments>http://lizus.com/client/loris/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 02:34:16 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[部分客户展示]]></category>
		<category><![CDATA[个人博客]]></category>
		<category><![CDATA[中文主题模板]]></category>
		<category><![CDATA[设计类站点]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=149</guid>
		<description><![CDATA[... ]]></description>
			<content:encoded><![CDATA[... ]]></content:encoded>
			<wfw:commentRss>http://lizus.com/client/loris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress后台上传了图片为什么找不到?</title>
		<link>http://lizus.com/faq/wordpresshou-tai-shang-chuan-l/</link>
		<comments>http://lizus.com/faq/wordpresshou-tai-shang-chuan-l/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 02:48:44 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[WordPress常见问题]]></category>
		<category><![CDATA[图片上传]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=134</guid>
		<description><![CDATA[一般全新安装WordPress主题并不会出现后台上传了图片找不到的问题,但如果使用了导入的数据的话就有可能发生这样的情况.那么问题出在哪里呢?
试着点击后台设置中的杂项设置这一栏,可以看到... ]]></description>
			<content:encoded><![CDATA[<p>一般全新安装WordPress主题并不会出现后台上传了图片找不到的问题,但如果使用了导入的数据的话就有可能发生这样的情况.那么问题出在哪里呢?</p>
<p>试着点击后台设置中的杂项设置这一栏,可以看到<span style="color: #ff0000;">上传文件保存在此目录</span>这一项中所写的内容如果不是<span style="color: #ff0000;">wp-content/uploads</span>这个的话,只要改成<span style="color: #ff0000;">wp-content/uploads</span>这样就可以了.</p>
<p>怎么样,简单吧.呵呵,试着享受WordPress</p>
]]></content:encoded>
			<wfw:commentRss>http://lizus.com/faq/wordpresshou-tai-shang-chuan-l/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress伪静态如何实现目录+文章形式?</title>
		<link>http://lizus.com/faq/wordpresswei-jing-tai-ru-he-sh-2/</link>
		<comments>http://lizus.com/faq/wordpresswei-jing-tai-ru-he-sh-2/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 02:23:24 +0000</pubDate>
		<dc:creator>Lizus</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[URL静态化]]></category>
		<category><![CDATA[WordPress常见问题]]></category>

		<guid isPermaLink="false">http://lizus.com/?p=132</guid>
		<description><![CDATA[WordPress的伪静态实现通常都是在永久链接中设置,相应参考WordPress伪静态如何实现.html结尾?这个文章.
在永久链接设置这个栏中无法找到实现目录名+文章名这样的URL形式,我们知道凡是自定义URL这... ]]></description>
			<content:encoded><![CDATA[<p id="crumbs">WordPress的伪静态实现通常都是在永久链接中设置,相应参考<a href="http://lizus.com/faq/wordpresswei-jing-tai-ru-he-sh/"><strong></strong><strong>WordPress伪静态如何实现.html结尾?</strong></a>这个文章.</p>
<p>在永久链接设置这个栏中无法找到实现目录名+文章名这样的URL形式,我们知道凡是自定义URL这一类都是在自定义结构里操作的,那么怎么写才能实现目录名+文章名这样的URL形式呢?</p>
<p>这就是答案: <span style="color: #ff0000;">/%category%/%postname%/ </span>同样,基于.html的需求也可以写成这样: <span style="color: #ff0000;">/%category%/%postname%/</span></p>
]]></content:encoded>
			<wfw:commentRss>http://lizus.com/faq/wordpresswei-jing-tai-ru-he-sh-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
