<?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>Wfea &#187; Wordpress</title>
	<atom:link href="http://wfea.net/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://wfea.net</link>
	<description>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. :)</description>
	<lastBuildDate>Mon, 25 Jan 2010 07:34:57 +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>comments-popup.php的作用</title>
		<link>http://wfea.net/2010/01/07/the-usage-of-comments-poput/</link>
		<comments>http://wfea.net/2010/01/07/the-usage-of-comments-poput/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 14:54:47 +0000</pubDate>
		<dc:creator>Yoga.Yue</dc:creator>
				<category><![CDATA[Technic]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://wfea.net/2010/01/07/comments-popup-php%e7%9a%84%e4%bd%9c%e7%94%a8/</guid>
		<description><![CDATA[最近在设计一个wp主题，作为初学者，只能逐个文件了解她们的用处，默认的classic和default主题都有一个comments-popup.php文件，顾名思义就可以理解到是弹出一个评论列表的页面，原本以为会像lightbox那样的效果来弹出遮罩层和列表窗口，没想到测试后，就是很生硬的新开一个浏览器窗口来显示评论列表页，或许这也是很少人使用该功能的原因吧。
一开始测试的时候以为是在后台开启这种弹出评论页功能，找来找去都没有，无奈只能求助google，呵呵，没想到国外也有爱好者和我一样以为在后台开启。其实要测试或者你需要这功能的话很简单，假如你使用的是classic主题，在header.php文件的第21行找到&#60;?php //comments_popup_script(); // off by default ?&#62;然后把comments_popup_script函数的注释删除掉即可。而如果你使用的是default或者其他主题的话，也是在header.php文件找到&#60;?php wp_head(); ?&#62;，然后在该行之前添加&#60;?php comments_popup_script(); ?&#62;即可。
代码如下：
&#60;?php comments_popup_script(); ?&#62;
&#60;?php wp_head(); ?&#62;
完成之后点击每篇文章的评论链接，你就可以看到很生硬的弹出窗口了。:)
]]></description>
			<content:encoded><![CDATA[<p>最近在设计一个wp主题，作为初学者，只能逐个文件了解她们的用处，默认的classic和default主题都有一个comments-popup.php文件，顾名思义就可以理解到是弹出一个评论列表的页面，原本以为会像lightbox那样的效果来弹出遮罩层和列表窗口，没想到测试后，就是很生硬的新开一个浏览器窗口来显示评论列表页，或许这也是很少人使用该功能的原因吧。</p>
<p>一开始测试的时候以为是在后台开启这种弹出评论页功能，找来找去都没有，无奈只能求助google，呵呵，没想到国外也有爱好者和我一样以为在后台开启。其实要测试或者你需要这功能的话很简单，假如你使用的是classic主题，在header.php文件的第21行找到<code>&lt;?php //comments_popup_script(); // off by default ?&gt;</code>然后把comments_popup_script函数的注释删除掉即可。而如果你使用的是default或者其他主题的话，也是在header.php文件找到<code>&lt;?php wp_head(); ?&gt;</code>，然后在该行之前添加<code>&lt;?php comments_popup_script(); ?&gt;</code>即可。</p>
<p>代码如下：</p>
<pre>&lt;?php comments_popup_script(); ?&gt;
&lt;?php wp_head(); ?&gt;</pre>
<p>完成之后点击每篇文章的评论链接，你就可以看到很生硬的弹出窗口了。:)</p>
]]></content:encoded>
			<wfw:commentRss>http://wfea.net/2010/01/07/the-usage-of-comments-poput/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
