# Visibility Conditions

Visibility Conditions allow you to set up rules that determine the conditions under which a block or template is applied to the current queried element.

Visibility Conditions depend on the condition type (All, Singular, Archive...) and an operator. You can add new conditions and/or remove existing ones.&#x20;

The dynamic Inserter allows you to add dynamic data such as date or time.

<details>

<summary>Condition Types</summary>

* Author name
* ACF
* Cookie
* Date
* Day of the Week
* Day of the Month
* Time
* Shortcode
* Post ID
* Post Parent ID
* Post Title
* Post Featured Image
* Number of Comments
* Post Excerpt
* Post Content
* Post Type
* Post Category
* Post Tag
* Comments Open
* Post Type Supports
* Comments Registration
* User Name
* User ID
* User Capabilities
* User Role
* Function Return

</details>

<details>

<summary>Operator</summary>

* \=== (strict equality)
* != (not equal)
* contains
* does not contain

</details>

## Add a Visibility Condition

* Select a block or template.
* Click the Visibility Conditions Icon in the Primary tab of the Block Inspector.

<figure><img src="https://lh5.googleusercontent.com/W2ClJbi3zaEXIZVUNbVQZ3fPYH6ru3rpSvYHrmOFPTkOEvsQzY8hxJpg40IXR5eQ1Wk9QCL8_Ff-ZQnmdlR4x-rZPug-jaTANyciYrFSr-8BrVZS53BU6uMgjDBmvA8HmWtVJmh-K044oeY8dJa8kUNHiJgKidt-B0l62aCq8rrkIY460sukEX15FSKuWg" alt=""><figcaption></figcaption></figure>

* This opens a "Show Conditions" modal where you can add/modify/remove the visibility conditions you set.

<figure><img src="https://lh4.googleusercontent.com/HwxgBbXB_j4vxUaw82P_n-zz7u30d1l1frf5w0f-KwIAZivRGCj__WaS0sDydthZeAmrzz8eJ6-SsCHRVDU4fU6Y0DLuTc9DjCiahICHuPo9sLRjOJLG1Ak_q2jAoOSOV5Iag2proshS6vGcI2gZRw7nemF1cI8T72tS_peVPFY26rQYXWwrEiliZRLGuA" alt=""><figcaption></figcaption></figure>

* Click on the "+" sign to add a condition.

![](https://lh6.googleusercontent.com/WvJ6h0fedjmaaItWKytq3WZpsrSgTDdKNT-g-AFkvV8JLeBQ_BdFP7bX2cWZzK7uBXEbdSkXH5rCVtZaaaH1_tlBYEIFBUFbNZAzHEE7dAyv-owbf9ivocovzPMOq612TRbnffg31J1UbXDNOatIn_JecjtR80mliKI8qLVKe2Y1syoIsz3W7uJmQqKR_Q)

* Find and select the Condition Type you require in the dropdown.

<figure><img src="https://lh5.googleusercontent.com/HcoStpZeRiHPYrvilB2hAADaXq1JyXGGPvkDUM05l1ZlhgjCkQ921reKN-rTwWYtau20Jp6wuDhMu9e_aicb23GVBKtyay_0YHr0I8RpUlkaF0_6XnF0nqNawzrnSggnAHo4XTYf5yd0W9jRZbd24ZpfwH_wE9xX28qfDfmNPSlfJlA7z9w8QYZk5U8TXg" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/y1nlxn5Cb3LLmY7V4VGmqXH6d-uz6V_QCgs6sLQmfCe9PP3ivahyZ9drwI6H2wg575d7XoWvwT_5Ju1zbsc-aceGZr9bVdkC0MEkC3jizBkmpZ5hqo9DjAXpfa-87000fhqlx99PT6o8AfUCPAAjQ4uG8ozmHc44v6V9S95225s5uWW-4mIDPDBj0vy_ow" alt=""><figcaption></figcaption></figure>

* Select an Operator in the dropdown.

<figure><img src="https://lh5.googleusercontent.com/zThdvXbtA_zzHVjp7_cJ3PmLM2wcQcZCM0HhFeA3BpJn0UEVC5_-bVvsAk-VVwj3FI3wsrWBMfJoLqMxy5RlVZ0qQLdrhOcgTOU47YwunGwdw3sJKPnTOgb_wH309cvrEcl-x2rllayr1Hcl4O-e_bE2bpBbR9cJCddshkq4FPSJijlWAy6ODK6nInKhCg" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/tfFsxrH_CX7R52YvU9qohHp1FyTFLw3v2EpcQ5YbVJK90rUGfsN70N0F9Uko7DPE2clh-57zklmEgPDtxmDX907SthKgOUuS-HHjbDIyg7UnctXy4uCsRxULLdaOU7rqqTtQA_zjnK0_BJsQ_8IcJb8t342uKgtVCIa5KaWUxWMDXkZvkQUaiefdKwuAyQ" alt=""><figcaption></figcaption></figure>

* To add dynamic data as required using the Dynamic Inserter, click "+" and choose a dynamic tag.
*

```
<figure><img src="https://lh4.googleusercontent.com/RBgBYRTXUK-5tuTy_3-TBF8aUqd8enxaWNzDBOO5uvVXo9AvK6lxU_rpbESS2jUCKukiaUROQlDIUmCeGXAui1I_IyreKb16kz9JAIuGfBX156ZbbCF9xh7zUXfDWdFgLJ8w4dwG_YsMqueUkzsr9W0X5iVFImgeHAAWEAyQjWUtbSyJMr9-FfA3d3ZvXw" alt=""><figcaption></figcaption></figure>
```

<figure><img src="https://lh4.googleusercontent.com/5GTVhoBI1uSJR4hT30FEJqm0hpBR9wSDM2cwy1uNidipVcIeG3rTWlD1ZclVcV3RKb7UU3_tDqsPnLDc47G88RKpBZvkOxGf6GWctFzCjjlvNkJeDRa9cx5q7V_ee8arLBL467_Tsx09-unWlAH0MgX2TBk7mOImvNNuZQzbGCo1TpY2a7KzJP4CEgUJXQ" alt=""><figcaption></figcaption></figure>

* To add static data, input the data as required.

<figure><img src="https://lh3.googleusercontent.com/gxfcmt8fJOotDUMXpCXREYP3rgZB7UOmCK4wF18mzEGzZU1O2nkR87LNJKAdZXVPV52LnrMIDc1XZYZSPlEX9_P3ysdxbhvfgo-Na-IJ-HOTTkRLhM8mzrk0A9IrD7VvrTOFd_LOT_9j4GxUhHWbfV1cg8y147mwJyPLKV2gduMauUPJlQobHXzP346xIQ" alt=""><figcaption></figcaption></figure>

## Remove a Visibility Condition

* Select a block or template.
* Click the Visibility Conditions Icon in the Primary tab of the Block Inspector.
* Find Condition to be removed.&#x20;
* Click "remove" icon to delete condition.

<figure><img src="https://lh6.googleusercontent.com/GJLMTZ-nbQP7DaxfBlmZmJ0wu1RkJ989PPIF0C_V7iuhMxiJP-qAbwMI3uhtYJIltKfOKhGd65AKQIz4upunyVy-VZs1kBksSSz6gbVGEzf_fesJDsERaYuge6vucayGlyb0tmAxt1jeB0sNYsF5Q8vncfTTphu1FpOOI4vfEbsKzafFyBP-ORG4sSTgxQ" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can choose to show an element if it satisfies all (*AND*) or a single (*OR*) condition and/or to exclude an element if it satisfies all (*AND*) or a single condition (*OR*).
{% endhint %}

<figure><img src="https://lh5.googleusercontent.com/7zDmgytUsWEbpc9DVCD7E7ob4lrhHcDN9o3znt-tGH3bUpaAotP6GJ6ZTOdFPbqwbgdTRnj8msEduUhUj2xBf-MG69PI2AmMju08OC9ItpM3BD2QeDz-bGaFQA5w62FouGo9wYxEpHclgcXFIFn1HxsG7WoJvVuFVsRIqnnmvYs170GiCgtAsE997uwxzw" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Visibility Conditions are slightly different for blocks on posts/posts and templates.
{% endhint %}

## Blocks

Visibility Conditions on blocks in the post/page editor allow you to display or not certain blocks according to set conditions.

{% content-ref url="/pages/PHQd8kZCMkNLDvBD0A43" %}
[Blocks](/interactions/visibility-conditions/blocks.md)
{% endcontent-ref %}

## Themer

Allows you to set several condition rules that display or not the template.

{% content-ref url="/pages/LialkOzU3l9rEg1woLCx" %}
[Themer](/interactions/visibility-conditions/themer.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cwicly.com/interactions/visibility-conditions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
