<?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; 心得</title>
	<atom:link href="http://www.hugstone.com/index.php/archives/tag/%e5%bf%83%e5%be%97/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hugstone.com</link>
	<description>三生石前问一声，人间哪里修正果！</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:11:51 +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://www.hugstone.com/index.php/archives/21</link>
		<comments>http://www.hugstone.com/index.php/archives/21#comments</comments>
		<pubDate>Sun, 18 Jan 2009 01:42:45 +0000</pubDate>
		<dc:creator>stone</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[心得]]></category>

		<guid isPermaLink="false">http://www.hugstone.com/?p=21</guid>
		<description><![CDATA[WordPress使用心得,不断更新...(原创，如需转载请注明出处)
<strong>WordPress的日志置顶功能</strong>
2.7版以前,日志置顶功能只能通过插件实现,2.7版之后已经集成了该功能。
实现：撰写日志-&#62;发布-&#62;可见性-&#62;首页置顶,  勾选即可。
<strong>WordPress的页面显示摘要功能</strong>
[......]<p class='read-more'><a href='http://www.hugstone.com/index.php/archives/21'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>WordPress使用心得,不断更新...(原创，如需转载请注明出处)</p>
<p><strong>WordPress的日志置顶功能</strong></p>
<p>2.7版以前,日志置顶功能只能通过插件实现,2.7版之后已经集成了该功能。<br />
实现：撰写日志-&gt;发布-&gt;可见性-&gt;首页置顶,  勾选即可。</p>
<p><strong>WordPress的页面显示摘要功能</strong></p>
<p>1.在模板中使用 <strong>the_excerpt()</strong>函数</p>
<p><strong>the_excerpt()</strong>函数将会自动取出文章的摘要内容（撰写日志/编缉日志-&gt;摘要，如果撰写日记没添加摘要，则会自动从正文中摘取部分内容作为摘要内容），并且以本文的格式输出( 输出内容中几乎不带有html标签，包括图片、列表、表格、颜色等等样式全都会过滤掉 )。<br />
<strong>the_content()</strong>函数读取的是文章的全部内容，它可以显示更多的信息，例如图片、表格等等。一般的模板都采用第一种方式，即the_content()，即显示全部内容.</p>
<p>打开主题的模板文件中的index.php ，找到</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>（每个主题的the_content()中的内容可能不一样，如我现在使用的mistylook主题中的内容为</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Continue Reading &amp;raquo;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'ml'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>）<br />
改为<br />
     </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> or is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>the_content<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Continue Reading &amp;raquo;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'ml'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
  <span style="color: #009900;">&#123;</span>the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>即可实现显示摘要的效果。使用the_excerpt()的前题是必须<span style="font-family: Georgia;">先在后台撰写日志页面摘要部分手动添加摘要显示的内容，否则<span style="font-family: Courier New;">the_excerpt()会将进行自动摘要，由于<span style="font-family: Courier New;">the_excerpt()函数</span>是采用空格计算单词的个数，然后从正文中摘取若干个词（默认好像是55个）作为摘要，对E文有效，但是中文都不是靠空格来分词的，而中文里空格又很少，所以<span style="font-family: Courier New;">the_excerpt()</span>计算完后输出的“摘要”其实还是全文。</span></span></p>
<p>或者可以通过插件来实现，该插件的好处是在撰写日志里不添加摘要的情况下,自动摘取部分内容做为摘要显示，同时输出的摘要不是纯文本，原来的颜色、字体、超链接、图片等等都能够被显示出来,详情见<a href="http://myfairland.net/wordpress-excerpt/" target="_blank">http://myfairland.net/wordpress-excerpt/</a>，有很详细地介绍。</p>
<p>2.使用 <strong>&lt;!--more--&gt;</strong>标签</p>
<p>&lt;!--more--&gt;标签是 WordPress一个非常有用的特性。它允许你选择截断点，然后在首页上只显示截断点前面的文字。</p>
<p>在你需要截断的地方(日志编辑/HTML源代码)点击more按钮，将会自动添加&lt;!--more--&gt;，这样，首页、存档页显示的就只是&lt;!--more--&gt;之前的内容。 </p>
<p>缺点：每次写日志时都需要加上该标签,很不灵活；rss输出也变成了只有&lt;!--more--&gt;之前的内容。</p>
<p>优点：方法比较正规不需要改动模版</p>
<p><strong> Google Analyticator Plugin</strong></p>
<p>详情： <a href="http://blog.zihe.net/html/2009/01/07/125.html" target="_blank">http://blog.zihe.net/html/2009/01/07/125.html</a></p>
<p><strong> WP-Syntax Syntax highlighting Plugin </strong></p>
<p>代码高亮插件，下载：<a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">http://wordpress.org/extend/plugins/wp-syntax/<br />
</a>使用方法：<a href="http://wordpress.org/extend/plugins/wp-syntax/other_notes/" target="_blank">http://wordpress.org/extend/plugins/wp-syntax/other_notes/</a></p>
<p><strong>SRG Clean Archives Plugin</strong></p>
<p>日志归档插件，详情 <a href="http://wangyueblog.com/2008/05/05/wordpress-plugin-srg-clean-archives/" target="_blank">http://wangyueblog.com/2008/05/05/wordpress-plugin-srg-clean-archives/</a></p>
<p><strong>Audio Player Plugin</strong></p>
<p>一款简洁方便的在wordpress文章中播放MP3音乐的Flash插件.   <br />
该插件的设置项 包括 General （常规）、Display（显示）、 Feed options（Feed选项）、 Podcasting （播客）、Advanced（高级），其中Feed中播放器显示样式、以及加密 mp3 URLs 等非常实用。 </p>
<p>使用方法：<br />
方法一：使用[audio]语法:格式如下<br />
<span style="color: #ff0000;">[</span><span style="color: #ff0000;">audio:</span><span style="color: #ff0000;">文件URL]</span><br />
前提：插件设置中将General-&gt;Replace [audio] syntax选项选中，该选项是默认选项，是使用该播放器必须的、唯一的。</p>
<p>方法二：在文章你想显示播放器的位置插入mp3文件的URL即可。<br />
前提：插件设置中将General-&gt;Replace all links to mp3 files选项选中。</p>
<p><strong>Quotmarks Replacer</strong></p>
<p>Quotmarks Replacer is a plugin disables wptexturize founction that keeps all quotation marks and suspension points in DBC case.</p>
<p>Quotmarks Replacer 是一个通过禁用 wptexturize 函数，解决 WordPress 自动将半角的单引号、双引号和省略号转换为全角标点的问题。使后台输入的标点格式与前台读者浏览的标点格式保持一致的插件。</p>
<p><a href="http://wordpress.org/extend/plugins/quotmarks-replacer/">http://wordpress.org/extend/plugins/quotmarks-replacer/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hugstone.com/index.php/archives/21/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
