前言介紹
- 這款 WordPress 外掛「Tematres WP Integration Plugin」是 2022-11-30 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2022-12-01,距離現在已有 886 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 6.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
becahp | lucasrodri |
外掛標籤
tematres | custom tags |
內容簡介
當提供 Tematres API URL 時,此插件會在 WP 中辨識 Tematres 註冊的項目作為標籤可以發佈到文章中。
使用方法
安裝並啟用此外掛。前往選單「Tematres WP Integration」並設置以下條件:
– Tematres API URL
– 標籤名稱
– 將應用此標籤的文章
前端注意事項
若要在一篇使用 WordPress 的 get_the_tag_list 函數(例如 Twenty Twenty One 主題)的文章的前端返回標籤,則需要手動更改主題的範本檔案,以不調用此函數,因為它僅調用 WP 中的標籤類型為 post_tag 的標籤,這在 WP 中是標準的。因此,我們創建了函數has_tag_thematres_wp 和tmwpi_get_the_tag_list,用於查找插件創建的標籤。
在 Twenty Twenty One 主題中使用範例:
if ( has_category() || has_tag() || has_tag_tematres_wp() ) {
...
if ( function_exists( 'tmwpi_get_the_tag_list' ) ) {
$tags_list = tmwpi_get_the_tag_list( '', __( ' ', 'twentytwentyone' ) );
} else {
$tags_list = get_the_tag_list( '', __( ' ', 'twentytwentyone' ) );
}
...
}
GitHub
請在Tematres WP Integration GitHub 存儲庫上提出拉取要求或問題。
原文外掛簡介
When informing a Tematres API URL, WP recognizes the terms registered in Tematres as Tags available to publish to posts.
Usage
Install and activate the plugin. Go to the “Tematres WP Integration” menu in the panel and configure the requirements:
– Tematres API URL
– Tag Name
– Post where the tags will be applied
FrontEnd Observation
To return the tags in the frontend of a post which uses, for example, the get_the_tag_list function (as the Twenty Twenty One Theme) of WordPress, it is necessary to manually change the theme’s template files, to not call this function, since it exclusively calls tags of type post_tag, which are standard in WP. So we created the functions has_tag_thematres_wp and tmwpi_get_the_tag_list that look for the tag created by the plugin.
Usage example in Twenty Twenty One theme:
if ( has_category() || has_tag() || has_tag_tematres_wp() ) {
...
if ( function_exists( 'tmwpi_get_the_tag_list' ) ) {
$tags_list = tmwpi_get_the_tag_list( '', __( ' ', 'twentytwentyone' ) );
} else {
$tags_list = get_the_tag_list( '', __( ' ', 'twentytwentyone' ) );
}
...
}
GitHub
Please reach out to make pull requests or issues on the Tematres WP Integration GitHub repository.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Tematres WP Integration Plugin」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
TemaTres Thesaurus 》此 WordPress 外掛可以利用 TemaTres 提供的受控詞彙或詞庫 Web 服務,這是一個網路應用程式,用於管理受控詞彙、詞庫和分類法。, 現在支援西班牙語!== ¡Aho...。