Skip to main content
Documentation/Dynamic Data/Conditions/Conditions Reference

Conditions Reference

Singular

Post

Checks whether the current item is a selected post.

  • Operands — is, is not.
  • Values — A post.

Post Parent

Checks the current post’s parent against the selected posts.

  • Operands — is one of, is none of.
  • Values — One or more parent posts.

Page

Checks whether the current item is a selected page.

  • Operands — is, is not.
  • Values — A page.

Page Parent

Checks the current page’s parent against the selected pages.

  • Operands — is one of, is none of.
  • Values — One or more parent pages.

Media

Checks whether the current item is a selected media attachment.

  • Operands — is, is not.
  • Values — A media item.

Media Parent

Checks which item a media attachment belongs to.

  • Operands — is one of, is none of.
  • Values — One or more parent items.

Post Type

Checks the current item’s post type, such as Posts, Pages, or a custom post type.

  • Operands — is one of, is none of.
  • Values — Registered post types.

Post ID

Checks the current item’s numeric WordPress ID.

  • Operands — is, is not.
  • Values — A post ID.

Post Status

Checks the current item’s publication status.

  • Operands — is, is not.
  • Values — publish, future, draft, pending, private

Has Taxonomy

Checks which taxonomy terms are assigned to the current item. is one of matches any selected term, is none of excludes all selected terms, and is all of requires every selected term.

  • Operands — is one of, is none of, is all of.
  • Values — Taxonomy terms.

Author

Checks who wrote the current post.

  • Operands — is, is not.
  • Values — A user.

Checks whether the current post has a featured image.

  • Operands — is.
  • Values — set, not set

Comments Number

Compares the current post’s comment count with a number you enter.

  • Operands — is greater than, is less than, is, is not.
  • Values — A number.

Archive

Post Type

Checks which post type the current archive lists.

  • Operands — is, is not.
  • Values — Registered post types.

Author

Checks whose author archive is being viewed.

  • Operands — is, is not.
  • Values — A user.

Taxonomy

Is Taxonomy

Checks whether the current archive belongs to a selected taxonomy term, such as a category or tag.

  • Operands — is, is not.
  • Values — Choose terms from the taxonomy groups, or an All entry to match any term in that taxonomy.

User

User Logged In Status

Checks whether the visitor is logged in to WordPress.

  • Operands — is.
  • Values — logged in, logged out

User Role

Checks the logged-in visitor’s WordPress roles. is one of matches any selected role; is none of excludes visitors with those roles.

  • Operands — is one of, is none of.
  • Values — Registered user roles.

User Registration Date

Compares the visitor’s account registration date with a date you choose.

  • Operands — is after, is before.
  • Values — A date.

Date & Time

Current Date (WordPress)

Checks the current date in the site’s WordPress timezone. is and is not accept a day or date range; is one of and is none of compare a list of dates.

  • Operands — is before, is after, is, is not, is one of, is none of.
  • Values — A date, date range, or list of dates, depending on the operand.

Current Time (WordPress)

Checks the current time of day in the site’s WordPress timezone.

  • Operands — is before, is after.
  • Values — A time.

Current Month (WordPress)

Checks the current month in the site’s WordPress timezone.

  • Operands — is one of, is none of.
  • Values — One or more months, January through December.

Day Of Week (WordPress)

Checks the current day of the week in the site’s WordPress timezone.

  • Operands — is one of, is none of.
  • Values — One or more days, Monday through Sunday.

Post Date

Compares the current post’s publication date with a date you choose.

  • Operands — is after, is before.
  • Values — A date.

Post Modified Date

Compares the current post’s last modification date with a date you choose.

  • Operands — is after, is before.
  • Values — A date.

Referrer

Referrer URL

Checks the URL the visitor came from. Use is for an exact URL or contains to match part of it. The condition does not match when no referrer is available.

  • Operands — is, is not, contains, does not contain.
  • Values — A URL or text to match.

Referrer Type

Checks whether the visitor arrived from a recognized search engine, another page on this site, or another website.

  • Operands — is, is not.
  • Values — Search Engine, Internal, External

Other

Dynamic Data

Tests the value of a dynamic field, such as a custom field, title, or URL parameter. Use is empty or is not empty to check whether the field has a value.

  • Operands — is, is not, contains, does not contain, is empty, is not empty.
  • Values — A dynamic field and comparison value; no comparison value for empty checks.

See Fields Reference for available dynamic fields.

Containment is case-sensitive. Empty checks inspect the source value, so a display fallback does not make the source populated. Text zero can count as empty; use an appropriate numeric rule or Custom PHP for numeric comparisons.

Dynamic Data condition with its field and comparison selected
Dynamic Data condition with its field and comparison selected

In a loop, the rule follows each item's context. Hiding every rendered card does not make the loop's source empty or activate When Empty.

Custom PHP

Runs PHP that returns true when the condition should pass or false when it should fail.

  • Operands — None; the code returns the result.
  • Values — PHP returning true or false.

See Custom PHP Conditions.

Breakpoint

Controls which screen sizes a popup can appear on, using the configured breakpoints.

  • Operands — is one of, is none of.
  • Values — Configured breakpoints.

Browser

Checks the visitor’s detected web browser.

  • Operands — is one of, is none of.
  • Values — Google Chrome, Mozilla Firefox, Safari, Microsoft Edge, Internet Explorer, Samsung Browser, Opera

Operating System

Checks the visitor’s detected operating system.

  • Operands — is one of, is none of.
  • Values — Windows, Mac OS, Linux, iOS (iPhone), Android, Chrome OS

Content Created With

Checks whether the current item was built with Breakdance.

  • Operands — is, is not.
  • Values — Breakdance.

Compares the current search query with the exact text you enter.

  • Operands — is, is not.
  • Values — Search text.

WP_Query Found Posts Count

Compares the total number of results found for the current WordPress query with a number. For example, is less than 1 matches an empty search or archive.

  • Operands — is greater than, is less than.
  • Values — A number.

Page and Session Counts

Page View Count

Checks the visitor’s recorded page-view count.

  • Operands — is, is not, is greater than, is less than.
  • Values — A number of recorded page views.

Available when tracking is enabled in Privacy settings.

Session Count

Checks the visitor’s recorded number of visits to the site.

  • Operands — is, is not, is greater than, is less than.
  • Values — A number of recorded visits/sessions.

Available when tracking is enabled in Privacy settings.

Tips

WordPress Date and Time

Conditions marked (WordPress) use your WordPress timezone setting. A “Current Time is after 17:00” rule takes effect at 17:00 in the site's timezone for every visitor.