[WordPress] 外掛分享: MultiTags

首頁外掛目錄 › MultiTags
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
4094 天前
最後更新
問題解決
WordPress 2.8+ v0.6 上架:2010-09-12

內容簡介

你是否有注意到標籤頁面上可以有多個標籤?例如,如果你想顯示所有擁有“tag1”和“tag2”的文章,只需前往 http://yourwordpressblog/tag/tag1+tag2

但只有“tag1”正確顯示(請參閱屏幕截圖)。使用此外掛,你可以正確使用多個標籤。如果你想為搜索引擎優化一些關鍵詞短語(如“tag1 tag2”),這尤其有趣。

此外,此外掛可以將標籤的描述添加到你的標籤頁面中,只需將

<?php echo multi_tags_get_description('<p>', '</p>'); ?>

放入你的主題文件“tag.php”中。
要顯示正確的標籤,只需將調用更改為

if (function_exists('multi_tags_get_title'))
echo multi_tags_get_title('and', 'or')
else
single_tag_title( '', false )

外掛會將你的標籤包含在“meta關鍵字”中,或者在標籤描述中包含“meta描述”。
只需在MultiTags設置頁面上檢查相應的核取方塊即可。

更多示例和詳細信息請參閱:

WordPress MultiTags Plugin

感謝

向Frank Bueltge http://bueltge.de表示感謝,因為他給了我啟發並檢查了第一版。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「MultiTags」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Ever noticed that on tag-pages multiple tags are possible? E.g. if you want to show all
posts having “tag1” AND “tag2”, just go to
http://yourwordpressblog/tag/tag1+tag2
But only “tag1” is correctly displayed (see screenshots).
With this plugin you can use more than one tag correctly. This is especially interesting if
you want to optimize some key phrases (like “tag1 tag2”) for searchengines.
Moreover this plugin can add the description of the tags to your tag-pages, simply put
', '

'); ?>

into your theme-file “tag.php”.
To display the correct tags, just replace the call to
single_tag_title( '', false )

with
if (function_exists('multi_tags_get_title'))
echo multi_tags_get_title('and', 'or')
else
single_tag_title( '', false )

The inclusion of your tags into “meta keywords” resp. the inclusion of the tag-descriptions
in “meta description” is done by the plugin.
Simply check the corresponding checkboxes in the MultiTags-setting-page.
For more examples and background information have a look at:

WordPress MultiTags Plugin


Thanks
To Frank Bueltge http://bueltge.de for motivation and checking the first draft.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon