<?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; tag</title>
	<atom:link href="http://edblog.net/archives/tag/tag/feed" rel="self" type="application/rss+xml" />
	<link>http://edblog.net</link>
	<description>亂寫、亂拍、亂來。 --- 持續亂改更新中 ---</description>
	<lastBuildDate>Mon, 05 Dec 2011 08:03:03 +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 2.3 內建 Tag 用法</title>
		<link>http://edblog.net/archives/986</link>
		<comments>http://edblog.net/archives/986#comments</comments>
		<pubDate>Tue, 02 Oct 2007 02:17:27 +0000</pubDate>
		<dc:creator>Eduardo</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://edblog.net/archives/986</guid>
		<description><![CDATA[基本上 WordPress 的官網已經有介紹了使用方法了，當然內建的 Tag 好像沒有管理的介面，後台逛了 N 遍了看不到有選項可以管理 Tag，應該有 Plugin 來輔助管理 Tag ，晚點再來找找。 英文還 OK 的網友可以自行去官網看看 the_tags : http://codex.wordpress.org/Template_Tags/the_tags wp_tag_cloud : http://codex.wordpress.org/Template_Tags/wp_tag_cloud &#8212;- 以下為無聊的開始 &#8212;- the_tags: 標籤 &#60;?php the_tags('前', '分隔', '後'); ?&#62; 所謂的前、分隔、後的意思就是 前: 在呈現 tag 時，在 tag 之前的文字，通常這邊依據佈景主題來考量，若用圖案來當作 tag 的符號，那麼這邊就可以不需要輸入；如果是用文字來呈現，那麼可以直接在前這個位置輸入文字。 分隔: 就是輸入想要用來分隔標籤的符號，這邊隨便弄就可以，你要逗點也好，句點也可，啥都好，哈哈哈。 後: 這邊就是在標籤最要呈現的，如果要斷行，這邊可以設定&#60;br /&#62; &#60;?php the_tags('標籤:', '.', ''); ?&#62; 使用效果 &#8211; 標籤: 網路.社會.新聞 wp_tag_cloud: [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Simple Tagging 與 Akismet" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fedblog.net%2Farchives%2F850&from=http%3A%2F%2Fedblog.net%2Farchives%2F986">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/26/8082658.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Simple Tagging 與 Akismet</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Plugin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fedblog.net%2Farchives%2F278&from=http%3A%2F%2Fedblog.net%2Farchives%2F986">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Plugin</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="國產WordPress Plugin – Get Your Plurk" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fedblog.net%2Farchives%2F1724&from=http%3A%2F%2Fedblog.net%2Farchives%2F986">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/26/8079308.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">國產WordPress Plugin – Get Your Plurk</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Yahoo Shortcuts Plugin for WordPress" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fedblog.net%2Farchives%2F1052&from=http%3A%2F%2Fedblog.net%2Farchives%2F986">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/26/8082531.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Yahoo Shortcuts Plugin for WordPress</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>基本上 WordPress 的官網已經有介紹了使用方法了，當然內建的 Tag 好像沒有管理的介面，後台逛了 N 遍了看不到有選項可以管理 Tag，應該有 Plugin 來輔助管理 Tag ，晚點再來找找。</p>
<p>英文還 OK 的網友可以自行去官網看看</p>
<p>the_tags :  <a href="http://codex.wordpress.org/Template_Tags/the_tags" target="_blank">http://codex.wordpress.org/Template_Tags/the_tags</a></p>
<p>wp_tag_cloud : <a href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud" target="_blank">http://codex.wordpress.org/Template_Tags/wp_tag_cloud</a></p>
<p>&#8212;- 以下為無聊的開始 &#8212;-</p>
<p>the_tags: 標籤</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">the_tags</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">前</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: #8b0000;">'</span><span style="color: Red;">分隔</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: #8b0000;">'</span><span style="color: Red;">後</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></div></div>
<p>所謂的<strong>前</strong>、<strong>分隔</strong>、<strong>後</strong>的意思就是</p>
<p><strong>前</strong>: 在呈現 tag 時，在 tag 之前的文字，通常這邊依據佈景主題來考量，若用圖案來當作 tag 的符號，那麼這邊就可以不需要輸入；如果是用文字來呈現，那麼可以直接在<strong>前</strong>這個位置輸入文字。</p>
<p><strong>分隔</strong>: 就是輸入想要用來分隔標籤的符號，這邊隨便弄就可以，你要逗點也好，句點也可，啥都好，哈哈哈。</p>
<p><strong>後</strong>: 這邊就是在標籤最要呈現的，如果要斷行，這邊可以設定&lt;br /&gt;</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">the_tags</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">標籤:</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: #8b0000;">'</span><span style="color: Red;">.</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: #8b0000;">''</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></div></div>
<p>使用效果 &#8211; 標籤: 網路.社會.新聞</p>
<p>wp_tag_cloud: 標籤雲</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_tag_cloud</span><span style="color: Olive;">(</span><span style="color: #8b0000;">''</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></div></div>
<p>這邊標籤雲的設定較為複雜</p>
<p>這邊的基本設定數值為</p>
<p>smallest: 設定最小的字型(基本設定是 <img src='http://edblog.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> </p>
<p>largest: 設定最大的字型(基本設定是 22)</p>
<p>unit: 字體的單位(基本設定是 pt)</p>
<p>number: 設定出現的標籤數量(基本設定是 45)</p>
<p>format: 設定標籤雲呈現的模式(基本數值是 flat，也可以設為 list or array)</p>
<p>orderby: 設定標籤呈現的順序(基本設定為 name，依照筆劃，也可以改成 count ，依照數量)</p>
<p>order: 設定標籤呈現的排序(基本設定為 ASC，從小到大，DESC，從大到小)</p>
<p>exclude: 排除哪些標籤(設定要排除的標籤編號)</p>
<p>inxlude: 指定出現的標籤(設定特定的標籤編號)</p>
<p>所以可以這樣設定</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_tag_cloud</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">smallest=8&amp;largest=22&amp;unit=pt&amp;number=45&amp;format=flat&amp;orderby=name&amp;order=ASC</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></div></div>
<p>效果就是艾德首頁的 Tag Clud</p>
<p>當然目前內建的 tag 模式算是非常陽春，所以現在有 plugin 來輔助內建的 tag</p>
<blockquote><p><a href="http://www.stuff.yellowswordfish.com/click-tags/" target="_blank">Click Tags</a> 將已經使用過的標籤顯示出來，讓你點選。<br />
<a href="http://poplarware.com/tagplugin.html" target="_blank">Advanced Tag Entry</a> 修改獨立文章的標籤<br />
<a href="http://urbangiraffe.com/plugins/headspace2/" target="_blank">HeadSpace 2</a> SEO 工具，也包含了分析文章並建議使用標籤(這個艾德喜歡)</p>
<p>另外附上 HeadSpace 2 的使用影片<br />
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/T8um7a0fUfc"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/T8um7a0fUfc" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
</p></blockquote>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Simple Tagging 與 Akismet" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fedblog.net%2Farchives%2F850&from=http%3A%2F%2Fedblog.net%2Farchives%2F986">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/26/8082658.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Simple Tagging 與 Akismet</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress Plugin" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fedblog.net%2Farchives%2F278&from=http%3A%2F%2Fedblog.net%2Farchives%2F986">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress Plugin</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="國產WordPress Plugin – Get Your Plurk" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fedblog.net%2Farchives%2F1724&from=http%3A%2F%2Fedblog.net%2Farchives%2F986">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/26/8079308.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">國產WordPress Plugin – Get Your Plurk</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Yahoo Shortcuts Plugin for WordPress" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fedblog.net%2Farchives%2F1052&from=http%3A%2F%2Fedblog.net%2Farchives%2F986">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/26/8082531.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Yahoo Shortcuts Plugin for WordPress</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><p><script type="text/javascript"><!--
google_ad_client = "pub-0799927170161891";
/* 336x280, ??? 2009/4/8 */
google_ad_slot = "0733953819";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p> ]]></content:encoded>
			<wfw:commentRss>http://edblog.net/archives/986/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

