<?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; Widget Logic</title>
	<atom:link href="http://edblog.net/archives/tag/widget-logic/feed" rel="self" type="application/rss+xml" />
	<link>http://edblog.net</link>
	<description>亂寫、亂拍、亂來。 --- 持續亂改更新中 ---</description>
	<lastBuildDate>Wed, 30 Jun 2010 08:24:28 +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>側邊欄模組活用-Widget Logic</title>
		<link>http://edblog.net/archives/2063</link>
		<comments>http://edblog.net/archives/2063#comments</comments>
		<pubDate>Wed, 15 Jul 2009 02:33:27 +0000</pubDate>
		<dc:creator>Eduardo</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Widget Logic]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[外掛]]></category>

		<guid isPermaLink="false">http://edblog.net/?p=2063</guid>
		<description><![CDATA[以前，在設計佈景時，若要判斷在首頁、單篇文章頁面、分類頁面、搜尋頁面，都得自己在sidebar.php裡面寫判斷，變成若使用模組，就沒有辦法這樣控制。當然，外掛是無敵的XD，Widget Logic可以解決這樣的問題。下載Widget Logic。 上傳 widget-logic.php 到 /wp-content/plugins/ 再到 plugin 啟用該外掛 模組(Widget)裡面則會多了 Widget-Logic的功能 原本的模組內容沒有可以控制的選項，如下圖： 用了Widget logic，則多了一個Widget logic的設定，如下圖： 使用方法： is_home() &#8212; 在首頁出現 is_page() &#8212; 在所有分頁出現 is_page(&#8216;about&#8217;) &#8211;在 特定的分頁出現, 舉例為about頁面 is_archive() &#8212; 在彙整頁面出現 is_category &#8212; 在分類頁面出現 is_single() &#8212; 在所有單篇文章出現 is_single(&#8216;xx&#8217;) &#8212; 在特定的單篇文章出現, xx 可設定為文章id is_search () &#8212; 在搜尋結果頁出現 is_single() &#124;&#124; is_page()  &#8212; 在所有單篇文章以及所有分頁出現 列出一些方法給大家參考，這樣一來可以透過widget-logic來控制側邊欄的資料，在各個不同的頁面出現不同的內容，更達到CMS的效果。 Upload widget-logic.php to the [...]]]></description>
		<wfw:commentRss>http://edblog.net/archives/2063/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
