這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Tematres WP Integration Plugin

外掛說明

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.

螢幕擷圖

  • Settings page.
  • Tematres Tag metabox at the post or custom post type edit page.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Tematres WP Integration Plugin〉的開發相關工作。

參與者

將〈Tematres WP Integration Plugin〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄