﻿<?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.yaoyingying.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yaoyingying.com</link>
	<description>Everything you have seen here has been an illusion!</description>
	<lastBuildDate>Mon, 26 Jul 2010 05:17:15 +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>WordPress3.0 的自定义菜单功能</title>
		<link>http://www.yaoyingying.com/2010/07/07/wordpress3-0-%e7%9a%84%e8%87%aa%e5%ae%9a%e4%b9%89%e8%8f%9c%e5%8d%95%e5%8a%9f%e8%83%bd/</link>
		<comments>http://www.yaoyingying.com/2010/07/07/wordpress3-0-%e7%9a%84%e8%87%aa%e5%ae%9a%e4%b9%89%e8%8f%9c%e5%8d%95%e5%8a%9f%e8%83%bd/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 03:34:00 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[register_nav_menus]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp_nav_menu]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=875</guid>
		<description><![CDATA[升级到wordpress3.0之后，会发现多了一些功能，其中一个是在 “外观”下多了个 Menus 选项。点开后你会发现一个提示 &#8220;The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.&#8221; 意思是这个主题不支持这个功能，但是你可以在 小工具里使用“Custom Menu”在 sidebar 里实现。 通过 register_nav_menus( $locations = array() ); 可以激活该功能。 例如 if ( function_exists( 'register_nav_menus' ) ) { register_nav_menu( array( 'location_1' =&#62; [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2010/07/07/wordpress3-0-%e7%9a%84%e8%87%aa%e5%ae%9a%e4%b9%89%e8%8f%9c%e5%8d%95%e5%8a%9f%e8%83%bd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress function bloginfo()</title>
		<link>http://www.yaoyingying.com/2010/05/12/wordpress-bloginfo/</link>
		<comments>http://www.yaoyingying.com/2010/05/12/wordpress-bloginfo/#comments</comments>
		<pubDate>Thu, 13 May 2010 03:13:41 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=862</guid>
		<description><![CDATA[Description Displays information about your blog, mostly gathered from the information you supply in your User Profile and General Options from the WordPress Administration panels (Settings → General). It can be used anywhere within a page template. This always prints a result to the browser. If you need the values for use in PHP, use [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2010/05/12/wordpress-bloginfo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttp Rewrite Rule For WordPress</title>
		<link>http://www.yaoyingying.com/2010/02/02/lighttp-rewrite-rule-for-wordpress/</link>
		<comments>http://www.yaoyingying.com/2010/02/02/lighttp-rewrite-rule-for-wordpress/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 05:40:37 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Lighttp]]></category>
		<category><![CDATA[Rewrite Rule]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=757</guid>
		<description><![CDATA[根目录安装是这样的： url.rewrite-once = &#40; &#34;^/(.*)?/?files/$&#34; =&#62; &#34;index.php&#34;, &#34;^/(.*)?/?files/(.*)&#34; =&#62; &#34;wp-content/blogs.php?file=$2&#34;, &#34;^/(wp-.*)$&#34; =&#62; &#34;$1&#34;, &#34;^/([_0-9a-zA-Z-]+/)?(wp-.*)&#34; =&#62; &#34;$2&#34;, &#34;^/([_0-9a-zA-Z-]+/)?(.*\.php)$&#34; =&#62; &#34;$2&#34;, &#34;.&#34; =&#62; &#34;index.php&#34; &#41; wordpress 可以自动实现 域名无 www 向有的跳转，其他程序可以依靠： $HTTP&#91;&#34;host&#34;&#93; !~ &#34;^(www&#124;mail&#124;mysql)\.(domain\.org)$&#34; &#123; $HTTP&#91;&#34;host&#34;&#93; =~ &#34;^(.+\.)?(domain\.org)$&#34; &#123; url.redirect = &#40; &#34;^/(.*)&#34; =&#62; &#34;http://www.%2/$1&#34; &#41; &#125; &#125; 实现跳转。]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2010/02/02/lighttp-rewrite-rule-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自制WordPress Sitemap Page Template</title>
		<link>http://www.yaoyingying.com/2009/11/30/%e8%87%aa%e5%88%b6wordpress-sitemap-page-template/</link>
		<comments>http://www.yaoyingying.com/2009/11/30/%e8%87%aa%e5%88%b6wordpress-sitemap-page-template/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 01:25:54 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[sitemap]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=713</guid>
		<description><![CDATA[代码片段: &#60;?php $cat_and_art = $wpdb-&#62;get_results(&#8220;SELECT t.term_id FROM  $wpdb-&#62;terms t left join $wpdb-&#62;term_taxonomy tt on tt.term_id = t.term_id WHERE tt.taxonomy= &#8216;category&#8217; and tt.parent=&#8217;0&#8242; and tt.count &#62; 0&#8243;); foreach ($cat_and_art as $cat_and_art_id) { $category_id[] = $cat_and_art_id-&#62;term_id; } //print_r($category_id); for($c_id = 0; $c_id &#60; strlen($category_id); $c_id++ ){ ?&#62; &#60;li&#62;&#60;?php echo(get_category_parents($category_id[$c_id], TRUE, &#8221;)); ?&#62; &#60;ul&#62; &#60;?php /* EDIT THE [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/11/30/%e8%87%aa%e5%88%b6wordpress-sitemap-page-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Miniml &#8211; Free WordPress Theme</title>
		<link>http://www.yaoyingying.com/2009/08/20/miniml-free-wordpress-theme/</link>
		<comments>http://www.yaoyingying.com/2009/08/20/miniml-free-wordpress-theme/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 14:39:15 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[前端技术]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=292</guid>
		<description><![CDATA[Miniml &#8211; Free WordPress Theme Posted in Free Theme Releases, Ported Themes Today we have an absolute monster of a WordPress theme, designed by Nuvio Templates, and ported into WordPress by me. There are 9 different color choices, optional Gravatar display on comments, WordPress tag support on single post pages, 4 widget-ready sidebars, and a [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/08/20/miniml-free-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress分类列表函数:wp_list_categories 参数详解</title>
		<link>http://www.yaoyingying.com/2009/08/02/wordpress-wp_list_categories-%e5%8f%82%e6%95%b0%e8%af%a6%e8%a7%a3/</link>
		<comments>http://www.yaoyingying.com/2009/08/02/wordpress-wp_list_categories-%e5%8f%82%e6%95%b0%e8%af%a6%e8%a7%a3/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 11:25:33 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp_list_categories]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=540</guid>
		<description><![CDATA[做主题的过程中遇到了 categories 的一些参数设置问题，在中文 WordPress 范围内搜索无果后，最终在 WordPress 官网中找到了相应的内容，这里我就简要的把重点记录在此，算是对 WordPress 中文化的一点补充吧… 在 WordPress 中，一般 wp_list_categories 来显示所有分类的链接列表，它有两种表示方法：list_cats()(deprecated) 和 wp_list_cats()(deprecated)，下面是使用方法： &#60;?php wp_list_categories(‘参数‘); ?&#62; 默认参数设置为： $defaults = array( ‘show_option_all‘ =&#62; ”,  无链接的分类 ‘orderby‘ =&#62; ‘name‘,  按照分类名排序 ‘order‘ =&#62; ‘ASC‘,  升序 ‘show_last_update‘ =&#62; 0,   不显示分类中日志的最新时间戳 ‘style‘ =&#62; ‘list‘,  用列表显示分类 ‘show_count‘ =&#62; 0, 0, 不显示分类下的日志数 ‘hide_empty‘ =&#62; 1, Displays only Categories with [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/08/02/wordpress-wp_list_categories-%e5%8f%82%e6%95%b0%e8%af%a6%e8%a7%a3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>八个有用的WordPress的SQL语句</title>
		<link>http://www.yaoyingying.com/2009/07/24/%e5%85%ab%e4%b8%aa%e6%9c%89%e7%94%a8%e7%9a%84wordpress%e7%9a%84sql%e8%af%ad%e5%8f%a5/</link>
		<comments>http://www.yaoyingying.com/2009/07/24/%e5%85%ab%e4%b8%aa%e6%9c%89%e7%94%a8%e7%9a%84wordpress%e7%9a%84sql%e8%af%ad%e5%8f%a5/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 04:17:40 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=510</guid>
		<description><![CDATA[在过去的十年中，MySQL已经成为广受欢迎的数据库，而WordPress博客使用的是MySQL数据库，虽然使用插件可以解决一些问题，但 是实现某些特殊任务的时候，在phpMyAdmin中执行SQL语句是最简洁的方法，这里就总结八个有用的WordPress系统的SQL语句，用于解决 一些实际碰到的问题。 1、创建备份数据库 备份数据库是首先要做的事情，只需要通过以下方法就可以简单备份数据库： 登录phpMyAdmin后。选择你的WordPress数据库，然后点击“导出”按钮，选择一种压缩方式（可以使用gzip）并单击“执行”按钮，当浏览器提示是否下载的时候，点“是”，将数据库文件下载到本地。 2、批量删除文章修订 WordPress2.6以后的版本增加了一个Post revisions功能，虽然有点用，但文章修订增加了你数据库的大小，我们可以选择批量删除。 登录phpMyAdmin后执行下面的SQL语句即可批量删除。 DELETE FROM wp_posts WHERE post_type = &#34;revision&#34;; 3、批量删除垃圾评论 一个真实的故事是，我的一个朋友在网上建立了一个博客，有次他花了几天时间外出度假，没有上网，当他回来的时候，登录自己的博客，看到有5000多条评论等待审核，当然，大多数都是垃圾评论，要手动删除这些评论要花大量时间，因此我们可以使用以下办法。 登录phpMyAdmin后执行下面的SQL语句。 DELETE from wp_comments WHERE comment_approved = '0'; 要小心，虽然这种解决方案对于处理数百万的垃圾平邮非常有用，但是也会清除未经批准的评论，因此最好还是安装使用Akismet来对付垃圾评论。 4、修改文章属性 你安装WordPress后，admin账户就创建了，不少人都错误的使用这个帐号来写博客，直到他们认识到，这并不是个人帐号。 解决的方法，每篇文章修改作者属性需要大量的时间，下面的这个SQL语句可以帮你快速完成这个功能。 首先你要找到你正确的用户名，使用下面的SQL语句可以找到你的用户ID号。 SELECT ID, display_name FROM wp_users; 假设这个ID为NEW_AUTHOR_ID，而管理员admin的ID为OLD_AUTHOR_ID，接着，运行下面的SQL语句。 UPDATE wp_posts SET post_author=NEW_AUTHOR_ID WHERE post_author=OLD_AUTHOR_ID; 5、手动重设密码 很多人为了保护自己的博客不被人黑掉，使用了很复杂的密码，这虽然是一件好事，但也经常会发生遗忘管理员密码的事情。 当然，通过电子邮件可以发送给你WordPress重设密码的链接，但如果你无法访问你的邮件地址，那么就只好使用下面的SQL语句来重设你的密码了。 UPDATE wp_users SET user_pass = MD5&#40;'PASSWORD'&#41; WHERE wp_users.user_login [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/07/24/%e5%85%ab%e4%b8%aa%e6%9c%89%e7%94%a8%e7%9a%84wordpress%e7%9a%84sql%e8%af%ad%e5%8f%a5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自己做了个 wordpress 主题</title>
		<link>http://www.yaoyingying.com/2009/04/16/%e8%87%aa%e5%b7%b1%e5%81%9a%e4%ba%86%e4%b8%aa-wordpress-%e4%b8%bb%e9%a2%98/</link>
		<comments>http://www.yaoyingying.com/2009/04/16/%e8%87%aa%e5%b7%b1%e5%81%9a%e4%ba%86%e4%b8%aa-wordpress-%e4%b8%bb%e9%a2%98/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:27:42 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=155</guid>
		<description><![CDATA[用了这么久的wordpress，一直想自己做个主题，但是一直做不好。现在讲究着做了个稍微像样子的。]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/04/16/%e8%87%aa%e5%b7%b1%e5%81%9a%e4%ba%86%e4%b8%aa-wordpress-%e4%b8%bb%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
