[WordPress] 外掛分享: Dynamic Conditions

WordPress 外掛 Dynamic Conditions 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Dynamic Conditions」是 2018-11-05 上架。
  • 目前有 70000 個安裝啟用數。
  • 上一次更新是 2025-02-11,距離現在已有 82 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 112 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 0%

外掛協作開發者

rtowebsites |

外掛標籤

rto | fields | Dynamic | elementor | conditions |

內容簡介

Dynamic Conditions 是一個 Elementor 外掛,加入了條件邏輯來顯示或隱藏不同元素。該外掛將條件添加到動態標籤中,以顯示/隱藏小工具或區塊。

此外掛需要 Elementor Pro,因為它使用動態標籤來設置比較條件。

設置顯示條件很容易!只需輸入條件值並與任何動態標籤進行比較。如果條件滿足,設置您想要顯示或隱藏元素。它能再簡單一些嗎?

高級用戶可以設置複雜條件-您可以檢查字段是否為空,是否包含某些值,是否等於某個值,更大/更小或介於某個值之間。

特別感謝WPTuts製作的漂亮視頻教程:

您可以通過貢獻外掛的 GitHub 存儲庫來支持開發:

Github Dynamic Conditions

使用方法

選擇小工具或區塊。
進入「進階」選項卡。
點擊「動態條件」區域。
設置您要進行比較的「動態標籤」字段。
如果滿足條件,設置您想要「顯示/隱藏」的元素。
在「條件」字段下,選擇要比較的內容。您可以比較字段是否為空/非空,檢查它是否具有特定值,或者其值是否介於其他兩個值之間。
「比較類型」字段定義您要比較的字段類型。默認比較兩個字符串(文本)。但是,如果您只想在星期一或十二月份顯示小工具/區域,則可以選擇 Days 或 Month 作為比較類型。
最後,您必須輸入要與動態字段進行比較的值,或者如果選擇了「介於」條件,則必須輸入兩個值。

原文外掛簡介

Dynamic Conditions is an Elementor addon that adds conditional logic to show or hide different elements. The plugin adds conditions to dynamic tags to show/hide a widget or section.
The plugin requires Elementor Pro since it uses Dynamic Tags to set the comparison conditions.
Setting display conditions is easy! Just enter the condition value and compare it to any dynamic tag. If the condition is met, set whether you want to show or hide the element. Can it be more simple?
Advanced users can set complex conditions – you can check if a field is empty, if it contains some value, if it equals a value, greater/smaller or between a certain value.
Special thanks to WPTuts for making a nice video tutorial:

You can support development by contributing to the plugin´s GitHub repository:
Github Dynamic Conditions
Usage

Select a widget or a section.
Go to the Advanced tab.
Click the Dynamic Conditions area.
Set the “Dynamic Tag” field you want to compare to.
Set whether you want to “Show/Hide” the element if the condition is met.
Under the “Condition” field, select what you wish to compare. You can compare whether the field is empty/not-empty, check if it has a specific value or if its value is between two other values.
The “Compare Type” field defines what type of fields do you want to compare. Default compares two strings (text). But if you want to show a widget/section only on Monday or only in December, you can select Days or Month as Compare-Type.
At last you have to enter the value to compare the dynamic-field with. Or two values, if you have selected the “between” condition.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Dynamic Conditions」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.4.6 | 1.5.0 | 1.5.1 | 1.6.0 | 1.6.2 | 1.6.3 | 1.7.0 | 1.7.1 | 1.7.2 | 1.7.3 | 1.7.4 | 1.7.5 | trunk | 1.5.1b |

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon