<?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>FVF.me&#039;Ye &#187; 代码</title>
	<atom:link href="http://fvf.me/tag/%e4%bb%a3%e7%a0%81/feed" rel="self" type="application/rss+xml" />
	<link>http://fvf.me</link>
	<description>我是孤独的根号5</description>
	<lastBuildDate>Mon, 19 Sep 2011 12:10:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>相关文章代码-wordpress主题</title>
		<link>http://fvf.me/wordpress/theme/related-articles-code-wordpress-theme.html</link>
		<comments>http://fvf.me/wordpress/theme/related-articles-code-wordpress-theme.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:39:58 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[相关文章]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e7%9b%b8%e5%85%b3%e6%96%87%e7%ab%a0%e4%bb%a3%e7%a0%81-wordpress%e4%b8%bb%e9%a2%98.html</guid>
		<description><![CDATA[相关的10篇文章]]></description>
			<content:encoded><![CDATA[<p>相关的10篇文章</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;ul&gt;</span> <br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <br /> <span style="color: rgb(204, 204, 0); ">$tags</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">wp_get_post_tags</span>(<span style="color: rgb(204, 204, 0); ">$post</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">ID</span>); <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(204, 204, 0); ">$tags</span>) <span style="color: rgb(192, 192, 192); ">{</span> <br /> <span style="color: rgb(204, 204, 0); ">$first_tag</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$tags</span><span style="color: rgb(192, 192, 192); ">[</span><span style="color: rgb(192, 192, 192); ">0</span><span style="color: rgb(192, 192, 192); ">]</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">term_id</span>; <br /> <span style="color: rgb(204, 204, 0); ">$args</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">array</span>( <br /> <span style="color: rgb(187, 187, 0); ">&#39;tag__in&#39;</span> <span style="color: rgb(192, 192, 192); ">=&gt;</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">array</span>(<span style="color: rgb(204, 204, 0); ">$first_tag</span><span style="color: rgb(192, 192, 192); ">),</span> <br /> <span style="color: rgb(187, 187, 0); ">&#39;post__not_in&#39;</span> <span style="color: rgb(192, 192, 192); ">=&gt;</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">array</span>(<span style="color: rgb(204, 204, 0); ">$post</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">ID</span><span style="color: rgb(192, 192, 192); ">),</span> <br /> <span style="color: rgb(187, 187, 0); ">&#39;showposts&#39;</span><span style="color: rgb(192, 192, 192); ">=&gt;</span><span style="color: rgb(192, 192, 192); ">10</span><span style="color: rgb(192, 192, 192); ">,</span> <br /> <span style="color: rgb(187, 187, 0); ">&#39;caller_get_posts&#39;</span><span style="color: rgb(192, 192, 192); ">=&gt;</span><span style="color: rgb(192, 192, 192); ">1</span> <br /> ); <br /> <span style="color: rgb(204, 204, 0); ">$my_query</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">new</span> <span style="color: rgb(192, 192, 192); ">WP_Query</span>(<span style="color: rgb(204, 204, 0); ">$args</span>); <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>( <span style="color: rgb(204, 204, 0); ">$my_query</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">have_posts</span>() ) <span style="color: rgb(192, 192, 192); ">{</span> <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">while</span> (<span style="color: rgb(204, 204, 0); ">$my_query</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">have_posts</span>()) <span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(204, 204, 0); ">$my_query</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">the_post</span>(); <span style="color: rgb(255, 255, 255); ">?&gt;</span> <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;li&gt;&lt;a</span> <span style="color: rgb(255, 255, 0); ">href=</span><span style="color: rgb(187, 187, 0); ">&quot;&amp;lt;?php the_permalink() ?&amp;gt;&quot;</span> <span style="color: rgb(255, 255, 0); ">rel=</span><span style="color: rgb(187, 187, 0); ">&quot;bookmark&quot;</span> <span style="color: rgb(255, 255, 0); ">title=</span><span style="color: rgb(187, 187, 0); ">&quot;Permanent Link to </span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">the_title_attribute</span>(); <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(187, 187, 0); ">&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">the_title</span>(); <span style="color: rgb(255, 255, 255); ">?&gt;</span> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">comments_number</span>(<span style="color: rgb(187, 187, 0); ">&#39; &#39;</span><span style="color: rgb(192, 192, 192); ">,</span><span style="color: rgb(187, 187, 0); ">&#39;(1)&#39;</span><span style="color: rgb(192, 192, 192); ">,</span><span style="color: rgb(187, 187, 0); ">&#39;(%)&#39;</span>); <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/a&gt;</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/li&gt;</span> <br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">endwhile</span>; <br /> <span style="color: rgb(192, 192, 192); ">}</span> <br /> <span style="color: rgb(192, 192, 192); ">}</span> <br /> <span style="color: rgb(255, 255, 255); ">?&gt;</span> <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/ul&gt;</span></div>
<p>特注明此代码适用于侧边栏，如使用在single页文章一下的话，建议使用WordPress Related Posts插件！因为此代码会一起评论页标题的错误！</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/theme/related-articles-code-wordpress-theme.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>随机文章代码-wordpress主题</title>
		<link>http://fvf.me/wordpress/theme/random-article-code-wordpress-theme.html</link>
		<comments>http://fvf.me/wordpress/theme/random-article-code-wordpress-theme.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:37:39 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[随机文章]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e9%9a%8f%e6%9c%ba%e6%96%87%e7%ab%a0%e4%bb%a3%e7%a0%81-wordpress%e4%b8%bb%e9%a2%98.html</guid>
		<description><![CDATA[随机的10篇文章]]></description>
			<content:encoded><![CDATA[<p>随机的10篇文章</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span><br /> <span style="color: rgb(204, 204, 0); ">$rand_posts</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">get_posts</span>(<span style="color: rgb(187, 187, 0); ">&#39;numberposts=10&amp;orderby=rand&#39;</span>);<br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span>( <span style="color: rgb(204, 204, 0); ">$rand_posts</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$post</span> ) <span style="color: rgb(192, 192, 192); ">:</span><br /> <span style="color: rgb(255, 255, 255); ">?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;li&gt;&lt;a</span> <span style="color: rgb(255, 255, 0); ">href=</span><span style="color: rgb(187, 187, 0); ">&quot;&amp;lt;?php the_permalink(); ?&amp;gt;&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><br /> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); "> ?php the_title(); ?&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/a&gt;&lt;/li&gt;</span><br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">endforeach</span>; <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>特注明此代码适用于侧边栏，如使用在single页文章一下的话，建议使用WordPress 中文工具箱插件！因为此代码会一起评论页标题的错误！</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/theme/random-article-code-wordpress-theme.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>最新评论代码-wordpress主题</title>
		<link>http://fvf.me/wordpress/theme/the-latest-comments-code-wordpress-theme-2.html</link>
		<comments>http://fvf.me/wordpress/theme/the-latest-comments-code-wordpress-theme-2.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:34:51 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[最新评论]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e6%9c%80%e6%96%b0%e8%af%84%e8%ae%ba%e4%bb%a3%e7%a0%81-wordpress%e4%b8%bb%e9%a2%98.html</guid>
		<description><![CDATA[最新的10篇评论]]></description>
			<content:encoded><![CDATA[<p>最新的10篇评论</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">global</span> <span style="color: rgb(204, 204, 0); ">$wpdb</span>; <br /> <span style="color: rgb(204, 204, 0); ">$sql</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(187, 187, 0); ">&quot;SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM </span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;comments</span><span style="color: rgb(187, 187, 0); "> LEFT OUTER JOIN </span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;posts</span><span style="color: rgb(187, 187, 0); "> ON (</span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;comments</span><span style="color: rgb(187, 187, 0); ">.comment_post_ID = </span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;posts</span><span style="color: rgb(187, 187, 0); ">.ID) WHERE comment_approved = &#39;1&#39; AND comment_type = &quot;</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">AND</span> <span style="color: rgb(192, 192, 192); ">post_password</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(187, 187, 0); ">&quot; ORDER BY comment_date_gmt DESC LIMIT 10&quot;</span>; </p>
<p> <span style="color: rgb(204, 204, 0); ">$comments</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$wpdb</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">get_results</span>(<span style="color: rgb(204, 204, 0); ">$sql</span>); <br /> <span style="color: rgb(204, 204, 0); ">$output</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$pre_HTML</span>; </p>
<p> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span> (<span style="color: rgb(204, 204, 0); ">$comments</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$comment</span>) <span style="color: rgb(192, 192, 192); ">{</span> <br /> <span style="color: rgb(204, 204, 0); ">$output</span> <span style="color: rgb(192, 192, 192); ">.=</span> <span style="color: rgb(187, 187, 0); ">&quot;</span><span style="color: rgb(187, 187, 0); ">\n</span><span style="color: rgb(187, 187, 0); ">&lt;li&gt;&quot;</span><span style="color: rgb(192, 192, 192); ">.</span> <span style="color: rgb(187, 187, 0); ">&quot;&lt;a href=&quot;</span><span style="color: rgb(192, 192, 192); ">\</span><span style="color: rgb(192, 192, 192); ">&amp;</span><span style="color: rgb(192, 192, 192); ">quot</span>;<span style="color: rgb(192, 192, 192); ">&amp;</span><span style="color: rgb(192, 192, 192); ">quot</span>;<span style="color: rgb(187, 187, 0); ">&quot; . get_permalink(</span><span style="color: rgb(187, 187, 0); ">$comment-&gt;ID</span><span style="color: rgb(187, 187, 0); ">).&quot;</span><span style="color: rgb(105, 105, 105); ">#comment-&quot; . $comment-&gt;comment_ID . &quot;\" title=\"on ".$comment-&gt;post_title . "\"&gt;".strip_tags($comment-&gt;comment_author)."&lt;/a&gt;" .": " .strip_tags($comment-&gt;com_excerpt)."&lt;/li&gt;"; </span><br /> <span style="color: rgb(192, 192, 192); ">}</span> </p>
<p> <span style="color: rgb(204, 204, 0); ">$output</span> <span style="color: rgb(192, 192, 192); ">.=</span> <span style="color: rgb(204, 204, 0); ">$post_HTML</span>; <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">echo</span> <span style="color: rgb(204, 204, 0); ">$output</span>; <br /> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>特注明此代码适用于侧边栏，如使用在single页文章一下的话，建议使用WordPress中文工具箱插件！因为此代码会一起评论页标题的错误！</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/theme/the-latest-comments-code-wordpress-theme-2.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>最热文章代码-wordpress主题</title>
		<link>http://fvf.me/wordpress/theme/article-hottest-code-wordpress-theme.html</link>
		<comments>http://fvf.me/wordpress/theme/article-hottest-code-wordpress-theme.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:31:16 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[最热文章]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e6%9c%80%e7%83%ad%e6%96%87%e7%ab%a0%e4%bb%a3%e7%a0%81-wordpress%e4%b8%bb%e9%a2%98.html</guid>
		<description><![CDATA[留言数最多的10篇文章]]></description>
			<content:encoded><![CDATA[<p>留言数最多的10篇文章</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;ul</span> <span style="color: rgb(255, 255, 0); ">class=</span><span style="color: rgb(187, 187, 0); ">&quot;most_comments&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span> <br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(204, 204, 0); ">$result</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$wpdb</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">get_results</span>(<span style="color: rgb(187, 187, 0); ">&quot;SELECT comment_count,ID,post_title FROM </span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;posts</span><span style="color: rgb(187, 187, 0); "> ORDER BY comment_count DESC LIMIT 0 , 10&quot;</span>); <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span> (<span style="color: rgb(204, 204, 0); ">$result</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$post</span>) <span style="color: rgb(192, 192, 192); ">{</span> <br /> <span style="color: rgb(192, 192, 192); ">setup_postdata</span>(<span style="color: rgb(204, 204, 0); ">$post</span>); <br /> <span style="color: rgb(204, 204, 0); ">$postid</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$post</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">ID</span>; <br /> <span style="color: rgb(204, 204, 0); ">$title</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$post</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">post_title</span>; <br /> <span style="color: rgb(204, 204, 0); ">$commentcount</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$post</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">comment_count</span>; <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(204, 204, 0); ">$commentcount</span> <span style="color: rgb(192, 192, 192); ">!=</span> <span style="color: rgb(192, 192, 192); ">0</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span> <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;li&gt;&lt;a</span> <span style="color: rgb(255, 255, 0); ">href=</span><span style="color: rgb(187, 187, 0); ">&quot;&amp;lt;?php echo get_permalink($postid); ?&amp;gt;&quot;</span> <span style="color: rgb(255, 255, 0); ">title=</span><span style="color: rgb(187, 187, 0); ">&quot;</span><span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">echo</span> <span style="color: rgb(204, 204, 0); ">$title</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(187, 187, 0); ">&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span> <br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">echo</span> <span style="color: rgb(204, 204, 0); ">$title</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/a&gt;</span> (<span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">echo</span> <span style="color: rgb(204, 204, 0); ">$commentcount</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span>)<span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/li&gt;</span> <br /> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: rgb(192, 192, 192); ">}</span> <span style="color: rgb(255, 255, 255); ">?&gt;</span> <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;/ul&gt;</span></div>
<p>特注明此代码适用于侧边栏，如使用在single页文章一下的话，建议使用WordPress中文工具箱插件！因为此代码会一起评论页标题的错误！</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/theme/article-hottest-code-wordpress-theme.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最新文章代码-wordpress主题</title>
		<link>http://fvf.me/wordpress/theme/the-latest-post-co-wordpress-themede.html</link>
		<comments>http://fvf.me/wordpress/theme/the-latest-post-co-wordpress-themede.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:27:43 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[最新评论]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e6%9c%80%e6%96%b0%e8%af%84%e8%ae%ba%e4%bb%a3%e7%a0%81-wordpress%e4%b8%bb%e9%a2%98.html</guid>
		<description><![CDATA[最新10篇文章]]></description>
			<content:encoded><![CDATA[<p>最新10篇文章</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">global</span> <span style="color: rgb(204, 204, 0); ">$wpdb</span>; <br /> <span style="color: rgb(204, 204, 0); ">$sql</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(187, 187, 0); ">&quot;SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM </span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;comments</span><span style="color: rgb(187, 187, 0); "> LEFT OUTER JOIN </span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;posts</span><span style="color: rgb(187, 187, 0); "> ON (</span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;comments</span><span style="color: rgb(187, 187, 0); ">.comment_post_ID = </span><span style="color: rgb(187, 187, 0); ">$wpdb-&gt;posts</span><span style="color: rgb(187, 187, 0); ">.ID) WHERE comment_approved = &#39;1&#39; AND comment_type = &quot;</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">AND</span> <span style="color: rgb(192, 192, 192); ">post_password</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(187, 187, 0); ">&quot; ORDER BY comment_date_gmt DESC LIMIT 10&quot;</span>; </p>
<p> <span style="color: rgb(204, 204, 0); ">$comments</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$wpdb</span><span style="color: rgb(192, 192, 192); ">-&gt;</span><span style="color: rgb(255, 255, 0); ">get_results</span>(<span style="color: rgb(204, 204, 0); ">$sql</span>); <br /> <span style="color: rgb(204, 204, 0); ">$output</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(204, 204, 0); ">$pre_HTML</span>; </p>
<p> <span style="color: rgb(255, 255, 0); font-weight: bold; ">foreach</span> (<span style="color: rgb(204, 204, 0); ">$comments</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">as</span> <span style="color: rgb(204, 204, 0); ">$comment</span>) <span style="color: rgb(192, 192, 192); ">{</span> <br /> <span style="color: rgb(204, 204, 0); ">$output</span> <span style="color: rgb(192, 192, 192); ">.=</span> <span style="color: rgb(187, 187, 0); ">&quot;</span><span style="color: rgb(187, 187, 0); ">\n</span><span style="color: rgb(187, 187, 0); ">&lt;li&gt;&quot;</span><span style="color: rgb(192, 192, 192); ">.</span> <span style="color: rgb(187, 187, 0); ">&quot;&lt;a href=&quot;</span><span style="color: rgb(192, 192, 192); ">\</span><span style="color: rgb(192, 192, 192); ">&amp;</span><span style="color: rgb(192, 192, 192); ">quot</span>;<span style="color: rgb(192, 192, 192); ">&amp;</span><span style="color: rgb(192, 192, 192); ">quot</span>;<span style="color: rgb(187, 187, 0); ">&quot; . get_permalink(</span><span style="color: rgb(187, 187, 0); ">$comment-&gt;ID</span><span style="color: rgb(187, 187, 0); ">).&quot;</span><span style="color: rgb(105, 105, 105); ">#comment-&quot; . $comment-&gt;comment_ID . &quot;\" title=\"on ".$comment-&gt;post_title . "\"&gt;".strip_tags($comment-&gt;comment_author)."&lt;/a&gt;" .": " .strip_tags($comment-&gt;com_excerpt)."&lt;/li&gt;"; </span><br /> <span style="color: rgb(192, 192, 192); ">}</span> </p>
<p> <span style="color: rgb(204, 204, 0); ">$output</span> <span style="color: rgb(192, 192, 192); ">.=</span> <span style="color: rgb(204, 204, 0); ">$post_HTML</span>; <br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">echo</span> <span style="color: rgb(204, 204, 0); ">$output</span>; <br /> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>特注明此代码适用于侧边栏，如使用在single页文章一下的话，建议使用WordPress中文工具箱插件！因为此代码会一起评论页标题的错误！</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/theme/the-latest-post-co-wordpress-themede.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress主题模板函数</title>
		<link>http://fvf.me/wordpress/theme/wordpress-theme-template-function.html</link>
		<comments>http://fvf.me/wordpress/theme/wordpress-theme-template-function.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:23:51 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[函数]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/wordpress%e4%b8%bb%e9%a2%98%e6%a8%a1%e6%9d%bf%e5%87%bd%e6%95%b0.html</guid>
		<description><![CDATA[我也修改了很多的主题，对主题中所写的一些数据库查询语句也有了一些认识！找出来给那些要修改主题的人！ WordPress基本模板文件 style.css : CSS(样式表)文件 index.php : 主页模板 archive.php : Archive/Category模板 404.php : 404页面，错误页模板 comments.php : 留言/回复模板 footer.php : Footer模板 header.php : Header模板 sidebar.php : 侧栏模板 page.php : 内容页(Page)模板 single.php : 内容页(Post)模板 searchform.php : 搜索表单模板 search.php : 搜索结果模板 基本条件判断Tag is_home() : 是否为主页 is_single() : 是否为内容页(Post) is_page() : 是否为内容页(Page) is_category() : 是否为Category/Archive页 is_tag() : 是否为Tag存档页 is_date() [...]]]></description>
			<content:encoded><![CDATA[<p>我也修改了很多的主题，对主题中所写的一些数据库查询语句也有了一些认识！找出来给那些要修改主题的人！</p>
<blockquote><p>WordPress基本模板文件      <br />style.css : CSS(样式表)文件       <br />index.php : 主页模板       <br />archive.php : Archive/Category模板       <br />404.php : 404页面，错误页模板       <br />comments.php : 留言/回复模板       <br />footer.php : Footer模板       <br />header.php : Header模板       <br />sidebar.php : 侧栏模板       <br />page.php : 内容页(Page)模板       <br />single.php : 内容页(Post)模板       <br />searchform.php : 搜索表单模板       <br />search.php : 搜索结果模板</p>
</blockquote>
<blockquote><p>基本条件判断Tag      <br />is_home() : 是否为主页       <br />is_single() : 是否为内容页(Post)       <br />is_page() : 是否为内容页(Page)       <br />is_category() : 是否为Category/Archive页       <br />is_tag() : 是否为Tag存档页       <br />is_date() : 是否为指定日期存档页       <br />is_year() : 是否为指定年份存档页       <br />is_month() : 是否为指定月份存档页       <br />is_day() : 是否为指定日存档页       <br />is_time() : 是否为指定时间存档页       <br />is_archive() : 是否为存档页       <br />is_search() : 是否为搜索结果页       <br />is_404() : 是否为 “HTTP 404: Not Found” 错误页       <br />is_paged() : 主页/Category/Archive页是否以多页显示</p>
</blockquote>
<blockquote><p>Header部分常用到的PHP函数      <br />&lt;?php bloginfo('name'); ?&gt; : 博客名称(Title)       <br />&lt;?php bloginfo('stylesheet_url'); ?&gt; : CSS文件路径       <br />&lt;?php bloginfo('pingback_url'); ?&gt; : PingBack Url       <br />&lt;?php bloginfo('template_url'); ?&gt; : 模板文件路径       <br />&lt;?php bloginfo('version'); ?&gt; : WordPress版本       <br />&lt;?php bloginfo('atom_url'); ?&gt; : Atom Url       <br />&lt;?php bloginfo('rss2_url'); ?&gt; : RSS 2.o Url       <br />&lt;?php bloginfo('url'); ?&gt; : 博客 Url       <br />&lt;?php bloginfo('html_type'); ?&gt; : 博客网页Html类型       <br />&lt;?php bloginfo('charset'); ?&gt; : 博客网页编码       <br />&lt;?php bloginfo('description'); ?&gt; : 博客描述       <br />&lt;?php wp_title(); ?&gt; : 特定内容页(Post/Page)的标题</p>
</blockquote>
<blockquote><p>模板常用的PHP函数及命令      <br />&lt;?php get_header(); ?&gt; : 调用Header模板       <br />&lt;?php get_sidebar(); ?&gt; : 调用Sidebar模板       <br />&lt;?php get_footer(); ?&gt; : 调用Footer模板       <br />&lt;?php the_content(); ?&gt; : 显示内容(Post/Page)       <br />&lt;?php if(have_posts()) : ?&gt; : 检查是否存在Post/Page       <br />&lt;?php while(have_posts()) : the_post(); ?&gt; : 如果存在Post/Page则予以显示       <br />&lt;?php endwhile; ?&gt; : While 结束       <br />&lt;?php endif; ?&gt; : If 结束       <br />&lt;?php the_time('字符串') ?&gt; : 显示时间，时间格式由“字符串”参数决定，具体参考PHP手册       <br />&lt;?php comments_popup_link(); ?&gt; : 正文中的留言链接。如果使用 comments_popup_script() ，则留言会在新窗口中打开，反之，则在当前窗口打开       <br />&lt;?php the_title(); ?&gt; : 内容页(Post/Page)标题       <br />&lt;?php the_permalink() ?&gt; : 内容页(Post/Page) Url       <br />&lt;?php the_category(', ') ?&gt; : 特定内容页(Post/Page)所属Category       <br />&lt;?php the_author(); ?&gt; : 作者       <br />&lt;?php the_ID(); ?&gt; : 特定内容页(Post/Page) ID       <br />&lt;?php edit_post_link(); ?&gt; : 如果用户已登录并具有权限，显示编辑链接       <br />&lt;?php get_links_list(); ?&gt; : 显示Blogroll中的链接       <br />&lt;?php comments_template(); ?&gt; : 调用留言/回复模板       <br />&lt;?php wp_list_pages(); ?&gt; : 显示Page列表       <br />&lt;?php wp_list_categories(); ?&gt; : 显示Categories列表       <br />&lt;?php next_post_link('%link'); ?&gt; : 下一篇文章链接       <br />&lt;?php previous_post_link('%link'); ?&gt; : 上一篇文章链接       <br />&lt;?php get_calendar(); ?&gt; : 日历       <br />&lt;?php wp_get_archives() ?&gt; : 显示内容存档       <br />&lt;?php posts_nav_link(); ?&gt; : 导航，显示上一篇/下一篇文章链接       <br />&lt;?php include(TEMPLATEPATH . '/文件名'); ?&gt; : 嵌入其他文件，可为定制的模板或其他类型文件</p>
</blockquote>
<blockquote><p>与模板相关的其他函数      <br />&lt;?php _e('Message'); ?&gt; : 输出相应信息       <br />&lt;?php wp_register(); ?&gt; : 显示注册链接       <br />&lt;?php wp_loginout(); ?&gt; : 显示登录/注销链接       <br />&lt;!–next page–&gt; : 将当前内容分页       <br />&lt;!–more–&gt; : 将当前内容截断，以不在主页/目录页显示全部内容       <br />&lt;?php timer_stop(1); ?&gt; : 网页加载时间(秒)       <br />&lt;?php echo get_num_queries(); ?&gt; : 网页加载查询量</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/theme/wordpress-theme-template-function.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

