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

Dynamic Content Shortcode

描述

This is the long description. No limit, and you can use Markdown (as well as in the following sections).

For backwards compatibility, if this section is missing, the full length of the short description will be used, and
Markdown parsed.

The list of condition that can be applied:

  • if is specific post ID
  • if is specific post TYPE
  • if is specific post CATEGORY
  • if is specific post TAG

Woocommerce:

  • if is specific product ID
  • if is specific product TYPE
  • if is specific product PRODUCT_CAT
  • if is specific product PRODUCT_TAG

安裝

  1. Upload dyco-shortcode.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place [display][/display] in your anywhere with the relevant condition to the content of any page, builder.

常見問題

How to display specific content for products in specific page

Just change the CATEGORY_NAME to the relevant category

[display post_type=”product” product_cat=”CATEGORY_NAME”]
specific content you want to display in case the product is in CATEGORY_NAME
[/display]

Also best if added alternative content to this condition (if its not the mention above category, what to display) and you do just by adding a parameter not=”true”, and it will invert the query.
This way:

[display not=”true “post_type=”product” product_cat=”CATEGORY_NAME”]
specific content you want to display in case its not CATEGORY_NAME
[/display]

評價

There are no reviews for this plugin.

貢獻者及開發者

“Dynamic Content Shortcode” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Dynamic Content Shortcode 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.1

  • publish to wordpress repo
  • First test of plugin features

0.1

  • Export from mu-plugin to proper WordPress plugin