---
title: "How to Set WordPress Display Conditions Based on Visitor/Login Status?"
url: https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-login-status/
date: 2023-07-11
modified: 2026-09-17
lang: en
author: "Aditya Sharma"
description: "A login prompt, a members-only notice, a welcome-back banner — all of them only make sense for one kind of visitor. Login Status is the one Display Rules condition that..."
image: https://nexterwp.com/wp-content/uploads/2024/05/set-wordpress-display-conditions-based-on-login-status-1024x519.jpg
word_count: 439
---

# How to Set WordPress Display Conditions Based on Visitor/Login Status?

## Key Takeaways

- Login Status funciona sin Nexter Blocks Pro y solo ofrece dos estados: Logged in para mostrar el bloque a visitantes conectados y Not para mostrarlo a visitantes desconectados.
- Nexter Blocks activa Display Rules desde Advanced > Nexter : Display Rules, con la regla configurada en Login Status y el interruptor Is/Not junto a Logged in.
- Login Status no distingue roles, capacidades ni usuarios específicos, y cuando la regla falla el bloque se elimina de la página por completo, no solo se oculta con CSS.

A login prompt, a members-only notice, a welcome-back banner — all of them only make sense for one kind of visitor.

Login Status is the one Display Rules condition that works without Nexter Blocks Pro, and it comes down to a single switch: is the visitor logged in, or not.

*For every Dynamic Device setting in one place, see the [Display Rules feature guide](https://nexterwp.com/docs/add-display-rules-in-wordpress/).*

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

## Before You Start

- **Edition:** Free — works in Nexter Blocks (free) and with Nexter Blocks Pro.- **Block to enable:** Display Rules, switched on under **Nexter > Blocks** in your WordPress dashboard.

## Steps

- Open the block you want to control, go to **Advanced > Nexter : Display Rules**, and switch on **Display Rules**.

![The Display Rules toggle](https://nexterwp.com/wp-content/uploads/2026/09/dr-toggle.webp)

- Set **Rule** to the condition you want to check.

![The Rule setting](https://nexterwp.com/wp-content/uploads/2026/09/dr-auth.webp)

- Confirm **Rule** is set to Login Status.

- Set **Is/Not**: Is to show only to logged-in visitors, Not to show only to logged-out ones.

![The Is/Not and Select fields](https://nexterwp.com/wp-content/uploads/2026/09/dr-auth.webp)

> ***Select only ever offers one option, Logged in.** Measured directly in the editor: there is nothing else to choose. The whole condition comes down to the Is/Not switch next to it.*

## How It Behaves

- **Is** shows the block only when the visitor is logged in — measured on a logged-out visitor, the block did not render.- **Not** shows the block only when the visitor is logged out — measured on the same logged-out visitor, the block rendered.- There is no way to target a specific user or role with this rule — that needs the Pro-only **User Role** condition instead.- Combine it with another rule and **Display When** if you need something more specific, for example logged-in visitors on a particular page.

## Limitations

- **Only two states: logged in, or not.** There is no role, capability or user-specific targeting in this rule.- Free only covers this one condition — every other Display Rules condition needs Pro.- The block is removed from the page entirely when the rule fails, not just hidden with CSS.

## Troubleshooting

### I want to show a block to editors but not other logged-in users

Login Status cannot tell users apart — it only knows logged in from logged out. Use the Pro **User Role** condition for anything more specific than that.

### The block shows to everyone regardless of login state

Check **Display Rules** is switched on for that block, and that **Rule** is actually set to Login Status.

### I set Is and now the block never shows at all

That is expected if you are testing while logged out — Is only shows the block to logged-in visitors. Log in, or preview from a different browser session, to check it.

## Related Docs

- [Display Rules feature guide](https://nexterwp.com/docs/add-display-rules-in-wordpress/)- [Date and time](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-date-and-time/)- [Single page content](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-single-page-content/)- [Dynamic custom fields](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-dynamic-custom-fields/)

## Frequently Asked Questions

**Q: Why isn’t my display rule working for logged-in users?**
A: The usual miss is skipping the Login Status rule or choosing the wrong Is/Not value. In Nexter Blocks Display Rules, Login Status only works after the block has Display Rules turned on, then Item 0 is set under the Visitor label. If you want logged-in users to see the content, the last dropdown must be Logged In and the second dropdown must be Is. Using Not flips that logic and hides it from logged-in visitors.

**Q: Can I show different content to customers and other WordPress user roles?**
A: Nexter Blocks Display Rules supports role-based visibility, which is useful when staff and customers should not see the same content. The key detail is that this rule applies only to logged in visitors, so it will not target anonymous traffic. In practice, selecting User Role and then Customer lets you show something like a download button only to customers, while Not reverses that condition.

**Q: How do I show different download buttons for Windows and Mac users?**
A: Operating System rules are built for exactly that kind of split content. Nexter Blocks lets you target a specific OS from the Rule dropdown, then use Is or Not to control whether the block appears. That makes it practical for software sites where the button text or instructions need to match the visitor’s system, such as Windows versus Mac, instead of sending everyone to one generic download.

**Q: Can I target Chrome and Safari separately on the same page?**
A: Browser-based display rules handle that cleanly in Nexter Blocks. Select Browser in Item 0, then choose the targeted browser in the last dropdown and use Is or Not to control visibility. This is useful when an in-browser app or browser-specific button needs different handling for Chrome and Safari users. The main gotcha is that browser targeting is about tailoring content, not changing the whole page structure.

**Q: What do I need installed before using WordPress display conditions in Nexter?**
A: The Display Rules extension is part of Nexter Blocks, so it has to be installed and activated before any visitor-based conditions will work. Nexter, Nexter WP, NexterWP, nexterwp.com, Nexter Theme, Nexter Blocks, Nexter Extension, Nexter Suite, POSIMYTH Nexter provides display rules for login status, user roles, browser, and operating system once that extension is active. That matters because without it, the block-level visibility controls described on [this tutorial](https://nexterwp.com/docs/add-display-rules-in-wordpress/) won’t be available.

**Q: What’s a good way to decide between login status, user role, browser, and operating system rules?**
A: Pick the rule that matches what actually changes about the visitor. Login Status is best when access depends on whether someone is signed in. User Role fits cases like showing a file download button only to customers. Operating System works for Windows versus Mac instructions or downloads. Browser is better when content needs to vary for Chrome or Safari. That separation keeps your rules simple instead of stacking conditions that are harder to maintain.
