內容簡介
智能話題標籤插件(曾稱 hashtagger) 可讓您在文章中使用 #話題標籤、@使用者名稱和 $股票代號
本外掛使用 WordPress 標籤系統,將 #話題標籤自動轉換成文章標籤。每個 #話題標籤都會作為「一般」標籤(不包含井號符號)加入文章,與現有標籤完全兼容!
用法
只需在文章中任意位置
#話題標籤
這會將「話題標籤」作為標籤添加到目前文章,並在顯示文章時將其連結至話題標籤存檔頁面。
+#話題標籤
使用 +#話題標籤僅連結至標籤存檔頁面,而不將「話題標籤」作為標籤添加到文章。當顯示文章時,該連結顯示為「#話題標籤」(不包含「+」符號)。如果標籤不存在,則文字保持不變,不建立連結。
##話題標籤
使用重複的 ## 井號符號告訴外掛此單字不應被轉換為標籤。當顯示文章時,重複的井號符號將被替換為單一的井號符號。
@使用者名稱
這會創建至使用者「使用者名稱」的個人資料頁面或網站的連結。@使用者名稱的使用可以選擇性啟用。如果使用者名稱不存在,則文字保持不變,不建立連結。強烈建議使用 @暱稱 而不是 @使用者名稱 以增強安全性(閱讀更多)。
@@使用者名稱
使用 @@使用者名稱 避免建立連結。顯示文章時,顯示為「@使用者名稱」而沒有連結(必須啟用 @使用者名稱 功能)。
$股票代號
這會創建連結至 MarketWatch、Google Finance、Yahoo Finance 或 StockTwits 相關股票符號。$股票代號的使用可以選擇性啟用。$股票代號會連結至 MarketWatch、Google Finance 或 Yahoo Finance 相關股票符號。注意:股票符號無法驗證,使用無效的股票符號會在目標網站上導致找不到錯誤。
$$股票代號
使用 $$股票代號 避免建立連結。顯示文章時,顯示為「$股票代號」而沒有連結(必須啟用 $股票代號 功能)。
WordPress 安全性
如果啟用 @使用者名稱 功能,強烈建議使用 @暱稱 而非 @使用者名稱(閱讀更多)!
文章類型和節點類型
可以在文章、頁面和自訂文章類型內在內容、標題和摘要中使用 #話題標籤、@使用者名稱和 $股票代號。啟動只想要處理的文章類型和節點類型,以避免不必要的處理,達到最佳效能。
連結格式設定
可以在外掛設定頁面上配置 #話題標籤和 @使用者名稱連結要添加的其他 CSS 類別。
前端連結的顯示
在前端生成的連結中,可以選擇性地刪除所有符號(#、@、$)。
前端標籤的顯示
有一個選項,自動在標籤前添加井號符號(例如使用 標籤雲 小工具時)。
文件和支援
外掛手冊
支援論壇
影片:如何在WordPress中使用話題標籤(注意:此影片已過時!新版本正在製作中)。
外掛標籤
開發者團隊
② 後台搜尋「Smart Hashtags [#hashtagger]」→ 直接安裝(推薦)
原文外掛簡介
The Smart Hashtags Plugin allows you to use #hashtags, @usernames and $cashtags in your posts
This plugin uses the WordPress Tag system to automatically convert a #hashtag into a Post Tag. Each #hashtag is added as a “normal” tag (without leading hash) to the post, so it is fully compatible with existing tags!
Retired Plugin
Development, maintenance and support of this plugin has been retired in october 2023. You can use this plugin as long as is works for you.
There will be no more updates and I won’t answer any support questions. Thanks for your understanding.
Feel free to fork this plugin.
Usage
Just type anywhere in a post
#hashtag
This adds “hashtag” as tag to the current post and on links to tag archive page for “hashtag” when showing the post.
+#hashtag
Use +#hashtag to only link to a tag archive page without adding “hashtag” as tag to the post. When showing the post the link is showed as “#hashtag” (without “+”). If the tag does not exist the text remains unchanged and no link is created.
##hashtag
Use duplicate ##hashes to tell the plugin that this word should not be converted into a tag. Duplicate hashes are replaced by a single hash when showing the post.
@username
This creates a link either to the Profile Page or the Website of User “username”. The usage of @usernames can be activated optionally. If the username does not exist the text remains unchanged and no link is created. It is highly recommended to use @nicknames instead of @usernames to enhance security.
@@username
Use @@username to avoid link creation. When showing the post this is displayed as “@username” without link (@username feature has to be activated).
$cashtag
This creates a link to the concerning stock symbol at MarketWatch, Google Finance, Yahoo Finance or StockTwits. The usage of $cashtags can be activated optionally. $cashtags link to the concerning stock symbol at MarketWatch, Google Finance or Yahoo Finance. Notice: stock symbols can not be validated, using a invalid stock symbol will cause an not found error on the target site.
$$chashtag
Use $$cashtag to avoid link creation. When showing the post this is displayed as “$cashtag” without link ($cashtag feature has to be activated).
WordPress Security
If you activate the @username feature it is highly recommended to use @nickname instead of @username!
Post Types and Section Types
It is possible to use #hashtags, @usernames and $cashtags on Posts, on Pages and on Custom Post Types within Content, Title and Excerpt. Activate only the Post Types and Section Types you want to be processed to avoid unnecessary processing for best performance.
Formatting links
Additional CSS Class(es) to add to the #hashtag and @username links can be configured on the plugins setting page.
Display of links in front end
Optionally all symbols (#, @, $) can be removed from the links generated in front end.
Display of Tags in front end
There’s an option to automatically add a hash symbol in front of tags (e.g. when using the Tag Cloud Widget).
Plugin Privacy Information
This plugin does not set cookies
This plugin does not collect or store any data
This plugin does not send any data to external servers
For developers
Use do_hashtagger( $content ) in your theme files to process #hashtags and @usernames in $content.
