Skip to main content

Adding Conditionals

Conditionals are a WordPress custom post type. Conditionals support categories so can be grouped using any chosen hierarchical structure.

Adding and managing conditionals is done in exactly the same way as with any standard WordPress post/page.

Conditionals can be listed, created, and managed along with their categories from the WordPress administrator main navigation.

Add A New Conditional

Steps for selecting to add a new conditional

  1. To add a new conditional either click Add New in the WordPress administrator main navigation, or in the Conditionals listing.

Steps for adding a condition set for a conditional

  1. Specify a title for your conditional. It is best to make this somewhat descriptive, or to your chosen naming convention, to aid selection when required.

  2. Select your chosen Condition logic for this conditional.

    AND - ALL conditions set to define this conditional must evaluate to TRUE for the conditional to be TRUE. If ANY one condition evaluates FALSE the conditional is FALSE.

    OR - ANY conditions set to define this conditional must evaluate to TRUE for the conditional to be TRUE. If ALL conditions evaluate FALSE the conditional is FALSE.

    If only one condition is set for the conditional the conditional logic chosen is not relevant. Condition logic only applies when multiple conditions are set for the conditional.

  3. To set a Condition first select the required Condition type.

    For detailed instructions on how to set a condition using any of the available condition types follow the links below:

  4. Select Add Condition to define an additional condition to be used in the Condition set when evaluating the conditional.

    Then repeat step 4.

    Dependent upon previous selections you may need to expand the condition to see all options for selection, click on the arrow indicated by label A in the image above.

    There is no limit to the number of conditions that can be added/set/defined for a single conditional.

  5. Add any notes you wish to explain or detail the conditional. These are for internal use only and are not displayed nor used elsewhere.

  6. Select a category for the conditional if required.

  7. Click Publish to make the conditional active. If you prefer you can Save Draft however this also makes the conditional inactive.