Themer
Last updated
Last updated
Themer Visibility Conditions Allow you to set rules that determine display the conditions under which a template is displayed or not.
In the Dashboard, in the Cwicly tab, open the Themer.
Select the template to which you wish to add visibility conditions.
Click the Visibility Conditions icon to open the modal.
Click "+" to add a Visibility Condition.
Choose Show/Don't Show in the dropdown (whether to show or not the template under the conditions you set).
Open the "Type" dropdown.
Set a Condition Type.
The All Type determines whether the selected template is shown or not shown.
The Singular Type determines whether the query is for an existing single post of any post type (post, attachment, page, custom post types).
The Archive type determines whether the query is for an Archive, that is a collection of WordPress posts of any post type (post, attachment, page, custom post types).
The Author Type determines whether the query is for every Author or for one or more selected authors (All, name/names in list).
The ACF Type allows you to determine which fields you want to show and how they appear.
Within the ACF Type, you can select the group you want to be queried, the field and the operator you wish to apply (equals, doesn't equal, empty, not empty) as well as whether the condition is true or false.
The Cookie Type allows you to query a cookie using an operator (equals, doesn't equal, contains, does not contain).
The Date Type allows you to query a date using an operator (equals, doesn't equal, before, after)) and a selected date (month/day/year).
The Day of the Week Type Type allows you to query a day of the Week using an operator (equals, doesn't equal, before, after) and a selected day of the week (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday).
The Day of the Month Type Type allows you to query a day of the Month using an operator (equals, doesn't equal, contains, does not contain) and a selected day of the month (1-31).
The Time Type Type allows you to query Time using an operator (equals, doesn't equal, before, after) and a selected Time (hour/minute/second).
The Shortcode Type allows you to filter your posts by using your own special attributes and a true/false operator.
The Username Type allows you to filter your posts by Username using a specified operator (equals, doesn't equal, contains, does not contain).
The User ID Type allows you to filter your posts by User ID using a specified operator (equals, doesn't equal, smaller, bigger, bigger or equal, smaller or equal).
The User Capabilities Type allows you to query your posts by User Capabilities. You can query User Capabilities, equals or doesn't equal, depending on the type of User Capabilities being queried (switch_themes, edit_themes, edit_plugins, edit_users, edit_files, manage_options, moderate comments, manage categories).
The User Role Type allows you to query your posts depending on the User Role. You can query User Capabilities, equals or doesn't equal, depending on the User Role being queried (Administrator, Editor, Author, Contributor, Subscriber).