Conditional Block

Display or hide elements

The Conditional block is a container that allows you to display or hide elements based on customizable criteria.

Conditional Block Examples

Display content if a custom field is not empty

The special offer badge is displayed only for posts that have the corresponding field not empty
The Special Offer badge is displayed only for posts that have the corresponding field not empty

View this block in action at the Discover-WP demo website.

Display content based on user role

User action required!

If you can see this text you don’t have sufficient rights to access this content. This content is available only to users with the Administrator role.