Title: Dynamic Conditions
Author: rtowebsites
Published: <strong>2018 年 11 月 6 日</strong>
Last modified: 2025 年 2 月 11 日

---

搜尋外掛

![](https://ps.w.org/dynamicconditions/assets/banner-772x250.jpg?rev=1969812)

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

![](https://ps.w.org/dynamicconditions/assets/icon-256x256.jpg?rev=1969812)

# Dynamic Conditions

 由 [rtowebsites](https://profiles.wordpress.org/rtowebsites/) 開發

[下載](https://downloads.wordpress.org/plugin/dynamicconditions.1.7.5.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/dynamicconditions/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/dynamicconditions/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/dynamicconditions/#developers)

 [技術支援](https://wordpress.org/support/plugin/dynamicconditions/)

## 外掛說明

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](https://wptuts.co.uk) for making a nice video tutorial:

You can support development by contributing to the plugin´s GitHub repository:

[Github Dynamic Conditions](https://github.com/RTO-Websites/dynamic-conditions)

#### Usage

 1. Select a widget or a section.
 2. Go to the Advanced tab.
 3. Click the Dynamic Conditions area.
 4. Set the “Dynamic Tag” field you want to compare to.
 5. Set whether you want to “Show/Hide” the element if the condition is met.
 6. 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.
 7. 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.
 8. At last you have to enter the value to compare the dynamic-field with. Or two values,
    if you have selected the “between” condition.

## 螢幕擷圖

 * [[
 * Widget options for conditions

## 常見問題集

### Can I use custom-fields, ACF fields, Pods?

Yes, all the above are supported and many others supported out-of-the-box by Elementor
Pro.

### Can I set date based conditions?

Yes, the plugin supports date based conditions, for example current-date or post-
date. You can compare dates, days and months.

### Can I show/hide elements for logged-in or logged-out users?

Yes, you can set display conditions for logged in or logged out users. Selecting
the “user information” dynamic-tag, and set it to “user ID”. Now check if it is 
empty or not.

### Are my elements only hidden or fully removed?

The elements will be fully removed from source code, like they are not existing.

Only if you use the experts options to hide also wrappers or other elements, they
will only be hidden with css.

### I´m missing some dynamic tags

We have developed an other plugin which provides some useful tags.
 You can find
it here: [DynamicTags](https://wordpress.org/plugins/dynamictags/)

## 使用者評論

![](https://secure.gravatar.com/avatar/493862c5d506baad7750719b610260e5f28ab7c5fa00d05cd63e60a66bad90cc?
s=60&d=retro&r=g)

### 󠀁[Better than core 🙂](https://wordpress.org/support/topic/better-than-core-2/)󠁿

 [BenR](https://profiles.wordpress.org/brajno/) 2025 年 10 月 29 日

It works better than the built in one 😉

![](https://secure.gravatar.com/avatar/b246a30f6582d2a4f188901c2b29bd5d0aedb005af2cbaabe338e6c385e37d10?
s=60&d=retro&r=g)

### 󠀁[No option for Current Date](https://wordpress.org/support/topic/no-option-for-current-date/)󠁿

 [ReinoutSch](https://profiles.wordpress.org/reinoutsch/) 2025 年 10 月 7 日 1 則
留言

There is no option to show/hide based on the current date. The FAQ suggested it,
but it’s not in the list of options.

![](https://secure.gravatar.com/avatar/78f8a03709d6a69827f75353c9ebf285e4484be423774658c4399eb1eba8e1f5?
s=60&d=retro&r=g)

### 󠀁[Very helpful! It work fine.](https://wordpress.org/support/topic/very-helpful-it-work-fine/)󠁿

 [starwebchania](https://profiles.wordpress.org/starwebchania/) 2024 年 12 月 3 
日

Very helpful! It work fine.

![](https://secure.gravatar.com/avatar/9460c5783a519152043fed2b5c99d72ba7e53df8a5991f78a489677e4d5795cc?
s=60&d=retro&r=g)

### 󠀁[Great support!](https://wordpress.org/support/topic/great-support-5706/)󠁿

 [Kyle Van Deusen](https://profiles.wordpress.org/skvandeusen/) 2024 年 8 月 10 
日

When I ran into an issue, support was there to solve it quickly for me. Having been
on in situations where that isn’t the case with other plugins, I can’t tell you 
how important that is!

![](https://secure.gravatar.com/avatar/6a427428eaf501e425444424e7543fd1f41ea63c36653b741ef3dc64d055a7c7?
s=60&d=retro&r=g)

### 󠀁[The latest release has a bug causing a 500 error](https://wordpress.org/support/topic/the-latest-release-has-a-bug-causing-a-500-error/)󠁿

 [doublejhe](https://profiles.wordpress.org/doublejhe/) 2024 年 8 月 8 日

The latest release has a bug causing a 500 error Unfortunately, this issue has affected
seven of my client websites.

![](https://secure.gravatar.com/avatar/19355c79be720bebc4ce244c01eac2db2be0b0a7b5f7be25c26c3b09f60958d7?
s=60&d=retro&r=g)

### 󠀁[Forces you to upgrade to php 8? why?](https://wordpress.org/support/topic/forces-you-to-upgrade-to-php-8-why/)󠁿

 [WebUser](https://profiles.wordpress.org/yasserawadd/) 2024 年 7 月 22 日 3 則留言

Who thought that forcing people to upgrade to php 8 to be able to use the latest
version of the plugin was a good idea? Most of the plugins don’t need PHP 8, and
a lot of them will have errors with PHP 8 You are forcing people to choose between
almost all their plugins OR your plugin.You will notice a huge decrease in people
installing this plugin (if it hasn’t happened already!) please fix this!

 [ 閱讀全部 114 則使用者評論 ](https://wordpress.org/support/plugin/dynamicconditions/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Dynamic Conditions〉的開發相關工作。

參與者

 *   [ rtowebsites ](https://profiles.wordpress.org/rtowebsites/)

〈Dynamic Conditions〉外掛目前已有 6 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/dynamicconditions/contributors)
為這個外掛做出的貢獻。

[將〈Dynamic Conditions〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/dynamicconditions)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/dynamicconditions/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/dynamicconditions/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/dynamicconditions/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/dynamicconditions/)。

## 變更記錄

#### 1.7.5

 * Fix a potential vulnerability

#### 1.7.4

 * Fix big issue with loops destroying everything

#### 1.7.3

 * Fix issue with date-conditions

#### 1.7.2

 * Fix issue with broken layout caused by weakmap and ob_cache

#### 1.7.1

 * Hotfix issue when element is no Base_Element

#### 1.7.0

 * Fix issue with removed css
 * Add int as option for compare-type
 * Add dashed border for elements with condition in editor
 * Add support for php 7.4 again

#### 1.6.3

 * Fix issue with optimized_control_loading
 * Fix php warnings

#### 1.6.2

 * Fix missing css if elements are hidden
 * Hotfix weird php-error on array-to-string-conversion

#### 1.6.1

 * Fix deprecated warnings

#### 1.6.0

 * Add support for containers

#### 1.5.1

 * Fix issue with shortcodes

#### 1.5.0

 * Add option to hide wrappers and other elements by selector (javascript only)
 * Add new compare type “in_array_contains”
 * Fix error when elementor is disabled
 * Styling dynamic-tag field
 * Prevent shortcode-execution on hidden elements
 * Make condition value dynamic

#### 1.4.5

 * Fix some issues with date-parsing
 * Add option to disable date-parsing

#### 1.4.4

 * Fix issues with parsing of dates from shortcodes
 * Fix issue with Elementor 2.9

#### 1.4.3

 * Fix issue with popups in editor
 * Fix double slash on javascript-enqueue

#### 1.4.2

 * Fix issue with popups in preview

#### 1.4.1

 * Fix issue with calculation of hidden columns

#### 1.4.0

 * Add array conditions
 * Add conditions for popups
 * Change code-structure
 * Fix issues with day-/month-translation

#### 1.3.0

 * Improve parsing of acf dates
 * Add icon to elements with condition in preview
 * Add option to parse shortcodes
 * Fix some issues

#### 1.2.1

 * Fix issue with date timestamp in custom skins
 * Improve performance

#### 1.2.0

 * Add condition between
 * Add date, day and month compare options
 * Add NumberPostsTag
 * Add short documentation
 * Add debug-mode

#### 1.1.2

 * Fix issue with section

#### 1.1

 * Add condition greater and less than

#### 1.0.1

 * Fix sections
 * Some refactoring

#### 1.0

 * Release

## 中繼資料

 *  版本 **1.7.5**
 *  最後更新 **1 年前**
 *  啟用安裝數 **60,000+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/dynamicconditions/)、[English (US)](https://wordpress.org/plugins/dynamicconditions/)、
   [French (France)](https://fr.wordpress.org/plugins/dynamicconditions/)、[Hebrew](https://he.wordpress.org/plugins/dynamicconditions/)、
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/dynamicconditions/)、[Spanish (Chile)](https://cl.wordpress.org/plugins/dynamicconditions/)、
   及 [Spanish (Spain)](https://es.wordpress.org/plugins/dynamicconditions/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/dynamicconditions)
 * 標籤:
 * [conditions](https://tw.wordpress.org/plugins/tags/conditions/)[Dynamic](https://tw.wordpress.org/plugins/tags/dynamic/)
   [elementor](https://tw.wordpress.org/plugins/tags/elementor/)[fields](https://tw.wordpress.org/plugins/tags/fields/)
   [rto](https://tw.wordpress.org/plugins/tags/rto/)
 *  [進階檢視](https://tw.wordpress.org/plugins/dynamicconditions/advanced/)

## 評分

 4.9 星，滿分為 5 星

 *  [  110 個 5 星使用者評論     ](https://wordpress.org/support/plugin/dynamicconditions/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/dynamicconditions/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/dynamicconditions/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/dynamicconditions/reviews/?filter=2)
 *  [  3 個 1 星使用者評論     ](https://wordpress.org/support/plugin/dynamicconditions/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dynamicconditions/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/dynamicconditions/reviews/)

## 參與者

 *   [ rtowebsites ](https://profiles.wordpress.org/rtowebsites/)

## 技術支援

最近 2 個月解決的問題:

     總計 2 個問題，已解決 0 個

 [檢視技術支援論壇](https://wordpress.org/support/plugin/dynamicconditions/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.rto.de)