---
title: "How to Add Display Rules in WordPress?"
url: https://nexterwp.com/docs/add-display-rules-in-wordpress/
date: 2023-07-11
modified: 2026-08-17
author: "Aditya Sharma"
description: "WordPress lets you control what content visitors see based on conditions you define. With display rules, you can show or hide any block depending on login status, the current page,..."
image: https://nexterwp.com/wp-content/uploads/2023/07/How-to-Add-Display-Rules-in-WordPress_-1024x519.jpg
word_count: 937
---

# How to Add Display Rules in WordPress?

## Key Takeaways

- Nexter Blocks Display Rules lets WordPress show or hide any block based on login status, the current page, user role, date and time, and more.
- Nexter Blocks requires the default WordPress Block editor to be active and the Nexter Blocks plugin installed and activated before Display Rules works.
- Display When offers two modes, All Rules are True and Anyone Rule is True, so a block can follow strict logic or broader targeting.
- Display Rules includes Free and Pro conditions such as Login Status, User Role, Operating System, Browser, Current Date, Time of Day, Day of Week, Page, Post, Archive templates, and ACF fields.

WordPress lets you control what content visitors see based on conditions you define. With display rules, you can show or hide any block depending on login status, the current page, user role, date and time, and more.

You can use the Display Rules extension from Nexter Blocks to set up these conditions without writing any code. It provides all the options you need to create targeted display logic on your WordPress website.

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/extras/wordpress-display-conditional-rules/)

## Required Setup

- Make sure the default WordPress Block editor is active.

- You need to have the [Nexter Blocks](https://wordpress.org/plugins/the-plus-addons-for-block-editor/) plugin installed and activated.

- This is a freemium feature. To unlock the extra options, you need the [PRO version of Nexter Blocks](https://nexterwp.com/pricing/?utm_source=tpag&utm_medium=docs&utm_campaign=text).

## How to activate the Display Rules?

Go to 

- **Nexter** → **Blocks**

- **Search** the block name and **turn on the toggle**.

![](https://nexterwp.com/wp-content/uploads/2023/07/display-rules-activation-new-1024x360.png)

## Key Features

- **Multiple display conditions** - Set multiple display conditions together on a single block. Use this when you need to combine logic, such as showing a block only to logged-in users on a specific page.

- **User based condition** (Freemium) - Set different display conditions based on visitor status such as [login](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-login-status/), browser, and more. Use this when you want to show different content to logged-in versus guest visitors.

- **Date and Time based** (Pro) - Set display conditions based on specific [dates and times](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-date-and-time/). Use this for time-limited offers, seasonal promotions, or scheduled content.

- **Single page based** (Pro) - Target specific [single page](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-single-page-content/) templates to control visibility. Use this when a block should only appear on one particular page or post type.

- **Archive page based** (Pro) - Target specific [archive page](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-archive-page-content/) templates to set display conditions. Use this to show custom content on category, tag, or author archive pages.

- **Display condition for Custom fields** (Pro) - Target custom fields created with the ACF plugin to set different [display conditions](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-dynamic-custom-fields/). Use this when your display logic depends on values stored in ACF fields.

## How to Use the Display Rules?

To use the display rules, add any block from Nexter Blocks to the page, go to **Advanced** > **Nexter : Display Rules**, and turn on the **Display Rules** toggle.

> *Note: For default WordPress blocks, you will get the option directly.*

![](https://nexterwp.com/wp-content/uploads/2023/07/display-rules-options-new.png)

Then choose when the display conditions are applied from the **Display When** dropdown. You will find two options:

**All Rules are True** - All rules set in the Rules section must be true for the display conditions to activate. Use this when you need strict logic, such as showing a block only to an administrator on a specific page.

**Anyone Rule is True** - Any single rule must be true for the display conditions to activate. Use this when you want broader targeting, such as showing a block to any logged-in user or any visitor on mobile.

In the **Rules** section, set the actual display condition. You can add one or multiple conditions.

To set a rule, click on the **Item 0** tab. Select your condition type from the **Rule** dropdown.

**Visitor**: Sets [display rules based on the different statuses of a visitor](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-login-status/).

- **Login Status** (Free) - Based on the visitor's login status. For example, Logged In or Logged Out.

- **User Role** (Pro) - Based on different [WordPress user roles](https://wordpress.org/documentation/article/roles-and-capabilities/). For example, Administrator or Editor.

- **Operating System** (Pro) - Based on the visitor's operating system. For example, Windows, Mac OS, or Linux.

- **Browser** (Pro) - Based on the visitor's browser. For example, Google Chrome or Mozilla Firefox.

**Date & Time**: Sets [display rules based on date and time](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-date-and-time/).

- **Current Date** (Pro) - For targeting a specific date range. For example, 25th Dec to 1st Jan.

- **Time of Day** (Pro) - For targeting a particular time of day. For example, 11:59 pm.

- **Day of Week** (Pro) - For targeting a specific day of the week. For example, Monday or Friday.

**Single**: Sets [display rules for single page templates](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-single-page-content/).

- **Page** (Pro) - For different pages of the site. For example, About Us or Contact Us.

- **Post** (Pro) - For different posts on the site. For example, individual blog posts.

- **Static Page** (Pro) - For different static pages. For example, Home Page, Blog Page, or 404 Page.

- **Post Type** (Pro) - For different post types such as Pages or Posts.

- **Term** (Pro) - For different terms of Categories or Tags. For example, Clothing or Fashion on a clothing website.

**Archive**: Sets [display rules for archive templates](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-archive-page-content/).

- **Taxonomy** (Pro) - For different taxonomies such as Category or Tags on an archive template.

- **Post Type Archive** (Pro) - For different post types such as Pages or Posts on an archive template.

- **Date Archive** (Pro) - For different date archive templates.

- **Author Archive** (Pro) - For the author archive template.

- **Term** (Pro) - For different taxonomies such as Category or Tags on an archive template.

If you are using Advanced Custom Fields (ACF), you will find additional display condition options for its fields.

**ACF**: Sets [display rules for Advanced Custom Fields](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-dynamic-custom-fields/).

- **ACF : Text Fields** (Pro) - For different ACF text fields, including text, number, range, email, URL, password, and text area.

- **ACF : Selection** (Pro) - For different ACF select elements such as select, radio button, and checkbox.

- **ACF : Button Group** (Pro) - For ACF button group fields.

- **ACF : Boolean** (Pro) - For ACF boolean values (True or False).

- **ACF : Date / Time** (Pro) - For ACF date and time fields.

Then set the condition to true or false by choosing **Is** or **Not** from the dropdown below.

From the dropdown options that appear based on your selected rule, select the appropriate value to complete the condition.

Add multiple rules by clicking the **+Add Rules** button.