跳到內容
  • 登入
  • 註冊
WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛

  • 我的收藏
  • Beta測試
  • 開發者

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

下載

Logic Shortcodes

由Samuel Diethelm
  • 詳情
  • 評價
  • 安裝
  • 開發
支援

描述

This plugin enables the use of [if] shortcodes to work with conditional logic based on the existence of post meta or taxonomy terms on posts and pages.

Please consider taking a minute to rate the plugin or let me know any feature request. Thanks!

Taxonomy

With conditional logic for taxonomy terms, you can use names, slugs or term_ids:

  • [if taxonomy=”category” slug=”cars”]Content to show[/if]
  • [if taxonomy=”category” name=”Cars”]Content to show[/if]
  • [if taxonomy=”category” id=”123″]Content to show[/if]

Post Meta

Post meta (or custom field) logic can be used to check if a certain meta_key AND meta_value combination are present or just a meta_key:

  • [if postmeta=”car_model”]Content to show if car model info is present[/if]
  • [if postmeta=”car_model” value=”Tesla Model S”]Content to show if car model is Tesla Model S[/if]

安裝

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

常見問題

Where can I use the logic?

Anywhere where shortcodes are accepted and a post or page is being displayed.

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者
  • Samuel Diethelm

將 Logic Shortcodes 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

  • Initial upload

其它

  • 版本:1.0
  • 最後更新:7 年之前
  • 運作中的安裝:10+
  • WordPress Version: 2.5.0 or higher
  • 已測試到版本:5.4.12
  • 語言:
    English (US)
  • 標籤:
    conditionallogicpostmetataxonomyterm
  • 進階顯示

評分

這個外掛尚無任何評分記錄。

Log in to submit a review.

貢獻者

  • Samuel Diethelm

支援

有話想說?需要協助?

檢視支援論壇

  • 關於我們
  • 最新消息
  • 寄存
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛
  • 佈景主題
  • 區塊版面配置
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Hong Kong 香港中文

  • 訪問我們的 Facebook 專頁
  • 訪問我們的 Twitter 帳戶
  • Visit our Instagram account
  • Visit our LinkedIn account
代碼就是詩歌。