<?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://wptw.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://wptw.org</link>
	<description>The WordPress Codex of Chinese</description>
	<lastBuildDate>Fri, 16 Jul 2010 03:41:00 +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://wptw.org/remove-error-message-on-the-login-page/</link>
		<comments>http://wptw.org/remove-error-message-on-the-login-page/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 03:39:39 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=239</guid>
		<description><![CDATA[WordPress 登入畫面在用戶輸入錯誤密碼、或是不存在的帳號時會出現提示。雖然這個作法相當貼心，但卻間接提供有心人士更多資訊，建議你可以將錯誤提示關閉以提昇安全性。 停止協助駭客來入侵你的網誌，只需要打開 functions.php ，然後加入以下函式： add_filter('login_errors',create_function('$a', "return null;")); 當輸入錯誤密碼、或是帳號不存在時，就不會顯示錯誤訊息。 不過如果你的網誌擁有超過一位以上的作者時，較不建議使用此方法。]]></description>
		<wfw:commentRss>http://wptw.org/remove-error-message-on-the-login-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何顯示熱門文章列表？</title>
		<link>http://wptw.org/display-popular-post-list/</link>
		<comments>http://wptw.org/display-popular-post-list/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 16:07:45 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress Hacks]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=238</guid>
		<description><![CDATA[WordPress 的可自訂性相當高，你可以在一些指定的位置顯示某些內容、或是特定分類，例如在側邊欄顯示部落格的熱門文章。 &#60;h2&#62;熱門文章&#60;/h2&#62; &#60;ul&#62; &#60;?php query_posts('category_name=popular'); ?&#62; &#60;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&#62; &#60;li&#62;&#60;a href=&#34;&#60;?php the_permalink(); ?&#62;&#34;&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;br /&#62; &#60;?php the_excerpt(); ?&#62;&#60;/li&#62; &#60;?php endwhile; ?&#62;&#60;?php endif; ?&#62; &#60;/ul&#62; 將 category_name=popular 改為要顯示的分類名稱，或是使用 cat=4&#160;&#8230; <a href="http://wptw.org/display-popular-post-list/">Continue&#160;reading&#160;<span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://wptw.org/display-popular-post-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何讓 WordPress 時間顯示為「幾天前」？</title>
		<link>http://wptw.org/how-to-display-dates-as-time-ago/</link>
		<comments>http://wptw.org/how-to-display-dates-as-time-ago/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 23:59:49 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=235</guid>
		<description><![CDATA[對一般人來說，顯示文章的相對時間可能更容易閱讀，例如「幾小時前」或「幾天前」，而眾所皆知的 Facebook 就以類似方式來顯示時間。你也想在 WordPress 使用此方式來顯示時間嗎？那麼透過 WordPress 的 human_time_diff() 函式就能讓時間格式變成「5天前」、「16小時前」。 將以下原始碼複製貼上於文章適當位置（必須在loop裡）： 發佈於 &#60;?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . '前'; ?&#62; 如果要使用於迴響的時間，可以使用以下原始碼： 發佈於 &#60;?php echo human_time_diff(get_comment_time('U'), current_time('timestamp')) . '前'; ?&#62; 這樣就完成囉！]]></description>
		<wfw:commentRss>http://wptw.org/how-to-display-dates-as-time-ago/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress技巧：自動修復、最佳化資料庫</title>
		<link>http://wptw.org/automatically-repair-optimize-database/</link>
		<comments>http://wptw.org/automatically-repair-optimize-database/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 14:12:22 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=232</guid>
		<description><![CDATA[經過長時間的使用，資料庫難免累積些無用的數據。你或許知道 phpMyAdmin 裡可以快速最佳化及修復（Repair）資料庫，但你可能不知道 WordPress 裡也有這項功能&#8230;。 是的，是大掃除的時候了。將你的 wp-config.php 開啟，並在裡頭加入一行： define('WP_ALLOW_REPAIR',true); 儲存後以瀏覽器訪問 /wp-admin/maint/repair.php 路徑，就能使用 WordPress 修復及最佳化資料庫的程式。在使用後別忘了將 wp-config.php 復原以免發生安全性問題。]]></description>
		<wfw:commentRss>http://wptw.org/automatically-repair-optimize-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress技巧：防止文章內的圖片過大</title>
		<link>http://wptw.org/prevent-images-from-being-to-large/</link>
		<comments>http://wptw.org/prevent-images-from-being-to-large/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 09:05:56 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=228</guid>
		<description><![CDATA[WordPress支援在文章內插入圖片，但你或許曾遇過因為圖片尺寸過大而破壞了WordPress佈景主題。這尤其容易發生在共筆部落格，某些作者無法確定網誌能顯示多大的圖片。 別擔心，你只需要加入一些CSS語法就能解決此問題，開啟目前使用的佈景主題樣式表（style.css），然後將以下語法添加在 img 標籤的位置，指定圖片最大寬度： .postarea img { max-width: 500px; height: auto; } 在上面的語法中，你必須找到樣式表內對應 .postarea 的 ID 或 CLASS 位置，通常為 content 或是 entry 之類的。此外，你還能修改圖片最大寬度 500px 為其他數值。 注意：這在 Internet Explorer 瀏覽器的某些版本可能無法正確運作。]]></description>
		<wfw:commentRss>http://wptw.org/prevent-images-from-being-to-large/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何停用WordPress搜尋功能</title>
		<link>http://wptw.org/how-to-disable-the-search-feature-in-wordpress/</link>
		<comments>http://wptw.org/how-to-disable-the-search-feature-in-wordpress/#comments</comments>
		<pubDate>Mon, 17 May 2010 05:59:32 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=226</guid>
		<description><![CDATA[如果把WordPress作為CMS，或者使用類似Google自訂搜尋（Google Custom Search Engine），那麼可以考慮使用以下方式停用WordPress預設的搜尋功能。在這篇文章中，我們將教你如何把搜尋功能停止。 首先，一樣將 functions.php 檔案開啟並加入以下程式碼： function fb_filter_query( $query, $error = true ) { if ( is_search() ) { $query-&#62;is_search = false; $query-&#62;query_vars[s] = false; $query-&#62;query[s] = false; // to error if ( $error == true ) $query-&#62;is_404 =&#160;&#8230; <a href="http://wptw.org/how-to-disable-the-search-feature-in-wordpress/">Continue&#160;reading&#160;<span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://wptw.org/how-to-disable-the-search-feature-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何移除WordPress不必要的個人資料欄位</title>
		<link>http://wptw.org/how-to-remove-default-author-profile-fields-in-wordpress/</link>
		<comments>http://wptw.org/how-to-remove-default-author-profile-fields-in-wordpress/#comments</comments>
		<pubDate>Tue, 04 May 2010 13:40:04 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=223</guid>
		<description><![CDATA[在WordPress個人資訊裡，你可能會發現一些用不到的欄位，藉由本篇教學，你可以輕鬆移除這些無用的欄位。若你的網誌是開放給其它用戶註冊時，這能讓其他使用者感覺更親切。 如你所見，AIM、Yahoo IM、Jabber / Google Talk 這些欄位可能是很少被用到的。若你的網誌用戶不多，或者你決定隱藏這些欄位而不被用戶看到，只需要打開佈景主題內的 functions.php 檔案，然後加入以下程式碼： add_filter('user_contactmethods','hide_profile_fields',10,1); function hide_profile_fields( $contactmethods ) { unset($contactmethods['aim']); unset($contactmethods['jabber']); unset($contactmethods['yim']); return $contactmethods; } 這樣就能輕鬆移除 AIM、Yahoo IM 和 Jabber / Google Talk 欄位。]]></description>
		<wfw:commentRss>http://wptw.org/how-to-remove-default-author-profile-fields-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>變更WordPress預設郵件寄件者和地址</title>
		<link>http://wptw.org/change-wordpress-default-email-name-address/</link>
		<comments>http://wptw.org/change-wordpress-default-email-name-address/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 13:22:54 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=221</guid>
		<description><![CDATA[WordPress在寄送郵件通知時，預設使用"WordPress"作為寄件者名稱、"wordpress@yourdomain.com"為電子郵件地址。這可能不太方便，因為你也許想要將它改為網誌名稱，或是可以聯絡的信箱地址。你可以透過加入一些原始碼來完成，以下有簡單的教學教你如何變更。 開啟佈景主題內的 functions.php 檔案，複製並修改以下原始碼： add_filter('wp_mail_from', 'new_mail_from'); add_filter('wp_mail_from_name', 'new_mail_from_name'); function new_mail_from($old) { return 'admin@yourdomain.com'; } function new_mail_from_name($old) { return '你的顯示名稱'; } 只要修改上方的 admin@yourdomain.com 以及顯示名稱，然後儲存。 往後當WordPress寄送通知時（舉例來說，當有使用者註冊），那麼就會使用你所設定後的新寄件者名稱和郵件地址作為抬頭，你可以看到：顯示名稱 &#60;admin@yourdomain.com&#62;。 變更WordPress預設郵件寄件者和地址是很簡單的，但為何WordPress不使用網站管理員的名稱及郵件地址作為寄發通知用，這就不得而知。或許有朝一日，這個選項能夠在控制台輕易調整，但現在你可以使用本篇文章教你的方式來作修改。]]></description>
		<wfw:commentRss>http://wptw.org/change-wordpress-default-email-name-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>移除迴響內所有HTML標籤</title>
		<link>http://wptw.org/remove-all-html-tags-in-comments/</link>
		<comments>http://wptw.org/remove-all-html-tags-in-comments/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 04:36:03 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=219</guid>
		<description><![CDATA[WordPress預設允許少部份的HTML標籤，例如連結、引用文字或是文字樣式。但在很多網誌裡，這些標籤的使用率極低，甚至只有垃圾留言來發佈鏈結時才會用到。最好的辦法就是讓迴響只能顯示純文字，而不能使用任何的HTML標籤。 要移除所有迴響的HTML標籤，將以下原始碼複製並貼入 functions.php 檔案裡： add_filter('comment_text', 'wp_filter_nohtml_kses'); add_filter('comment_text_rss', 'wp_filter_nohtml_kses'); add_filter('comment_excerpt', 'wp_filter_nohtml_kses'); 在這裡我們使用WordPress內建的 wp_filter_nohtml_kses 函式過濾帶有HTML標籤的內容，並將它轉為純文字。wp_filter_nohtml_kses 函式能夠在某些地方移除所有的語法標籤，例如使用在迴響方面。 使用 wp_filter_nohtml_kses 函式，我們無須在煩惱艱難的原始碼，例如檢查要移除的HTML標籤等等（這對很多人來說可能是困難的工作）。因為它已內建於WordPress核心，安全、而且快速！]]></description>
		<wfw:commentRss>http://wptw.org/remove-all-html-tags-in-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>為你的網誌加入Facebook推文按鈕（Like Button）</title>
		<link>http://wptw.org/add-facebook-like-button/</link>
		<comments>http://wptw.org/add-facebook-like-button/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 04:53:32 +0000</pubDate>
		<dc:creator>Pseric</dc:creator>
				<category><![CDATA[WordPress技巧]]></category>

		<guid isPermaLink="false">http://wptw.org/?p=217</guid>
		<description><![CDATA[Facebook Like Button（說讚按鈕，在這裡以推文按鈕代稱）能夠讓你的網誌讀者快速分享內容給他們在Facebook上的朋友。為網誌加入Facebook推文按鈕很簡單，只需要複製以下的原始碼，並貼到你網誌合適的區塊。 推文按鈕必須新增到每篇文章、或是每個頁面，才能發揮功能。如果你使用 WordPress 架站，只需要開啟佈景主題裡的 single.php 檔案，並將以下原始碼貼在適當的位置。 &#60;iframe src=&#34;http://www.facebook.com/plugins/like.php?href=&#60;?php echo urlencode(get_permalink());?&#62;&#38;layout=standard&#38;show_faces=true&#38;width=450&#38;height=60&#38;action=like&#38;colorscheme=light&#34; scrolling=&#34;no&#34; frameborder=&#34;0&#34; allowTransparency=&#34;true&#34; style=&#34;border:none;overflow:hidden;width:450px;height:60px&#34;&#62;&#60;/iframe&#62; 對了，你也可以適當調整 iframe 的長度及寬度來符合網誌本身的樣式。 如果你使用簡單的Blogger範本，將以下原始碼複製並貼上於HTML： &#60;iframe src=&#34;http://www.facebook.com/plugins/like.php?href=&#60;$BlogItemPermalinkUrl$&#62;&#38;layout=standard&#38;show-faces=true&#38;width=450&#38;height=60&#38;action=like&#38;colorscheme=light&#34; scrolling=&#34;no&#34; frameborder=&#34;0&#34; allowTransparency=&#34;true&#34; style=&#34;border:none;overflow:hidden;width:450px;height:60px&#34;&#62;&#60;/iframe&#62; 新式的Blogger範本可以試著使用下面的原始碼。 &#60;iframe src=&#34;http://www.facebook.com/plugins/like.php?href=data:post.url&#38;layout=standard&#38;show-faces=true&#38;width=450&#38;height=60&#38;action=like&#38;colorscheme=light&#34; scrolling=&#34;no&#34; frameborder=&#34;0&#34; allowTransparency=&#34;true&#34; style=&#34;border:none;overflow:hidden;width:450px;height:60px&#34;&#62;&#60;/iframe&#62; 注意：你必須編輯Blogger範本的HTML，並將上方的原始碼貼在推文按鈕出現的位置 – 試著搜尋 &#60;b:includable id=’post’ var=’post’&#62;。 由於內嵌網頁是儲存於Facebook，該按鈕能顯示個人化的訊息。對於已登入Facebook的使用者，按鈕會顯示哪些朋友也喜歡這篇文章，也會同時出現在個人頁面的活動裡。]]></description>
		<wfw:commentRss>http://wptw.org/add-facebook-like-button/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.266 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-07-30 23:55:24 -->
