[WordPress] 外掛分享: ATag

首頁外掛目錄 › ATag
10+
安裝啟用
尚無評分
5541 天前
最後更新
問題解決
WordPress 2.1+ v1.2 上架:2011-05-29

內容簡介

WordPress 標籤和分類一樣有很高的實用價值,它們讓讀者可以找到與他們正在閱讀的文章相似的文章,也能夠給人們一個大致的印象。

然而,為新文章添加標籤(特別是當您通過電子郵件或緊急發布時)可能會被忽略。這就是 ATag 能為您提供幫助的地方。

ATag 會自動添加標籤到您的文章中,它從文章中提取文本,刪除 500 個最常見的詞,然後使用剩下的詞中最常出現的詞標記該文章。

選項:

ATag 有兩個選項(在設置管理菜單中找到),分別是每篇文章的最大標籤數和覆蓋現有標籤的選項。

每篇文章的最大標籤數。

此文本框允許您指定在分析文本時生成的標籤數。

覆蓋現有標籤。

這使您可以選擇在更新新標籤之前刪除文章中存在的任何標籤。如果將此選項設置為 "否",它將在更新頁面時將基於帖子內容添加一組新標籤到任何現有標籤(包括由 ATag 生成的標籤)中,這可能會給您帶來更多的標籤超過每篇文章的最大標籤數,但它允許您直接將其他標籤添加到帖子中。如果將此選項設置為 "是",則會刪除任何現有標籤,包括帖子作者指定的任何標籤。

限制。

雖然常見單詞的數量相當高(約 500 個或寫作單詞的約 60%),但它可能無法捕獲所有常見單詞,同時它也可能給出一些虛假陽性,刪除一些單詞,雖然常見,但在您的博客中是相關的標籤。如果您經常遇到這種情況,則可以編輯排除列表(添加或刪除要忽略的常見單詞列表),通過編輯 ATag.php 文件(警告 - 如果您會閱讀 php 或者您有完好的插件副本可以隨時更換時才去這麼做)

如果您想編輯 ATag.php,則列表從大約第 100 行開始,到第 160 行結束,它還包含在兩個注釋中,第一個說“常見詞列表開始”,(意料之中的)最後一個則說“常見詞列表結束”。

表示感謝

如果您發現此外掛有用,有幾種方式可以向我表示感謝,首先如果您在現實生活中認識我,請請請請給我買一瓶啤酒(請選擇深色真正的啤酒)。由於大多數人不認識我,還有其他一些事情可以做,您可以。

告訴人們:是的,就像您在運行網誌時告訴人們這個插件(還包括 http://scott-herbert.com/blog/ 的鏈接)一樣,這樣可以很好地幫忙。
從我的願望清單中為我買東西:它在 http://www.amazon.co.uk/registry/wishlist/2ER3EQGGIMXBU 上。
捐贈一些錢 - 無論您認為這價值多少,如果您是公司並且需要一份發票,請發送電子郵件至 [email protected],我可以為您製作一份,只需讓我知道您想支付多少錢以及應向何處發送(哦,以及要將其寄到誰)。否則,您可以從設置菜單中的鏈接通過 PayPal 捐款(請注意,scott.a.herbert 地址不是我的 PayPal 帳戶地址!)。

感謝您的閱讀,並享受使用此插件(希望您不知道它的存在)。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2) 或搜尋安裝

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

原文外掛簡介

WordPress Tags, like categories, are highly useful they allow readers to find posts that are similar to the post they are reading, they also give an idea as too what the post is about.

ATag automatically adds tags to your post by taking the text of your post, removing the 500 (or so) most common words then it tags the post with the most frequency used of the remaining words.

Options
ATag has two options (found in the settings admin menu) the maximum number of tags per post and the option to override existing tags.

Maximum number of tags per post.
This text box allows you to specify the number of tags generated every time the text is analysed.

Override existing tags.
This gives you the option to remove any tags that exist for the post before updating it with the new tags. If you set this option to “No” it will add a new set of tags based on the content of the post to any existing tags (including throes generated by ATag) when the page is updated, this may give you more tags then the above maximum number of tags per post, however it lets you add additional tags directly to the post. Setting this option to “Yes” deletes any existing tags including any tags specified by the posts author.

Limitations.
While the number of common word is quite high (just over 500 or about 60% of written words) it may not pick up all common words, also it may give some false positives, removing words that, while common, are relevant tags for your blog. If you find this happening often you can edit the excluded list (either adding or removing to the list of common words that are ignored), by editing the ATag. php file (WARNING – it’s easy to edit the wrong thing and screw-up the plugin, so only do this if your happy reading php or you have a undamaged copy of the pluging to hand that you can swap in as needed)
if you wish to edit ATag.php, the list starts at about line 100 and ends at line 160, it is also contained within two comment the first says “Start of common word list” and (unsurprisingly) the end one says “End of common word list”.

Saying thank you
If you find this plugin useful there are a number of ways you can say thank you to me, firstly if you know me in real life, buy me a pint (dark real ale please). Since most of you won’t know me, there are a number of other things you can do, you can.

Tell people about it – yep as you run a blog tell people about this plugin (a link to http://scott-herbert.com/blog/ would be nice as well)
Buy me something from my wish list – it’s at http://www.amazon.co.uk/registry/wishlist/2ER3EQGGIMXBU

Thanks for reading, and enjoy using this (hopefully you won’t know it exists)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon