Conditional logic between fields
Conditional fields allow you to create more dynamic and personalized submission forms for your post types by showing or hiding fields based on user input or selections in real time, as they fill the form.
Conditional fields can be particularly useful when dealing with complex forms or content structures where displaying all fields at once would overwhelm the user or create unnecessary clutter. By presenting fields dynamically, you can simplify the interaction and make the form or content more intuitive and focused.
How to enable conditional logic
In the Fields tab of the post type editor, you can configure the fields available for your post type.
Once a field is added, you can enable conditional logic for it.
To activate conditional logic for a specific field, click on that field. In the field popup, open the “Conditional logic” tab and turn on the option “Enable conditional logic for this field?”
Once enabled you can choose if you want to Show the field if conditions are met, or Hide it, then proceed to add conditions.
Conditions are added inside Rule groups. Each rule group can contain one or more conditions, and you can create additional rule groups if you need.
Conditions within the same group use “And” logic, while different rule groups use “Or” logic.
So basically, within the same rule group, all conditions must be met. If at least one condition is not met within a rule group, the evaluation will continue to the next rule group
When adding a condition, the first option is to select another post type field that you want the current field to be conditioned by.

Next, select the condition. The Available conditions include:
- Is empty
- Is not empty
- Contains
- Equals
- Not equals
- Greater than
- Greater than or equal to
- Less than
- Less than or equal to
Certain conditions are available only with specific field types, for example, when selecting a taxonomy field, the following conditions appear

Depending on the condition selected, additional options may appear. For example, if you choose “Contains term” an input to type the term slug will appear.
Let’s consider an example:
Suppose you are configuring a Tours post type, and depending on whether the tour has a guide or not, you want to display a field to specify the guide’s language.
You can create a switcher field named “Guide language” and a text field named “Specify language.”
In this case, you apply conditional logic to the text field by clicking on the field and enabling condition logic.
1. Select “Show if” and add a condition
2. Select Source: Guide language
3. Condition: Is checked
On the post submission form, depending on whether the user has enabled the Guide language switcher, the Specify language field will display.