---
title: "How to Set WordPress Display Conditions Based on Single Page Content?"
url: https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-single-page-content/
date: 2023-07-11
modified: 2026-09-17
lang: en
author: "Aditya Sharma"
description: "A block that belongs on your pricing page has no business showing up on every blog post too. Page, Post and Static Page each check where a visitor actually is..."
image: https://nexterwp.com/wp-content/uploads/2024/05/set-wordpress-display-conditions-based-on-single-page-content-1024x519.jpg
word_count: 474
---

# How to Set WordPress Display Conditions Based on Single Page Content?

## Key Takeaways

- Nexter Blocks Pro requires Display Rules to be switched on under Nexter > Blocks before Page, Post, or Static Page conditions work.
- Page and Post match specific content by name, so the rule keeps working even if a page’s link changes and several selected pages act as “any of these.”
- Static Page targets WordPress special pages such as the homepage set under Settings > Reading, while Page and Post do not automatically include child pages or whole archives.

A block that belongs on your pricing page has no business showing up on every blog post too.

Page, Post and Static Page each check where a visitor actually is — picked by name, not by URL pattern, so the rule keeps working even if a page's link changes.

*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:** **Pro** — Page, Post and Static Page all need 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-rule.webp)

- Set **Rule** to Page, post, or Static Page, depending on what you want to target.

- Choose one or more specific pages or posts from the list that appears.

- Set **Is/Not** for whether the block should show there, or everywhere except there.

> *Static Page is specifically for WordPress's own special pages — the homepage set under Settings > Reading, for example — rather than an ordinary page you created.*

## Page, Post or Static Page

| Rule | Targets |
| ---- | ------- |
| Page | One or more WordPress Pages, chosen by name |
| post | One or more WordPress Posts, chosen by name |
| Static Page | WordPress's special pages — the configured homepage, for example |

## How It Behaves

- **Selecting several pages or posts works as "any of these"** — the rule passes if the visitor is on any one of the pages you picked, not only if they match every one.- **Choosing pages by name survives a URL change** — the rule checks which page it is, not what its address happens to be.- Combine with **Login Status** and **Display When** for something like "show only to logged-in visitors, and only on the pricing page".

## Limitations

- No wildcard or URL-pattern matching — every page or post has to be picked individually.- Page and post apply to the exact content chosen; a child page is not automatically included when you pick its parent.- For an entire category or tag archive rather than one page, use the Archive conditions instead — see the [archive guide](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-archive-page-content/).

## Troubleshooting

### The block shows on pages I didn't pick

Check whether another Display Rules block, or a different rule on the same block, is also affecting visibility — each block's rules are independent of every other block's.

### I want the rule to apply to a whole section of the site, not one page

Page and Post only match specific, named content. For an archive or a whole post type, use the [archive conditions](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-archive-page-content/) instead.

### The homepage doesn't match when I pick it as a Page

If your homepage is set under Settings > Reading rather than being an ordinary page, use **Static Page** instead of **Page**.

## Related Docs

- [Display Rules feature guide](https://nexterwp.com/docs/add-display-rules-in-wordpress/)- [Archive page content](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-archive-page-content/)- [Date and time](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-date-and-time/)- [Login status](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-login-status/)

## Frequently Asked Questions

**Q: What do I need before setting a display rule for a single WordPress page?**
A: Nexter Blocks Pro is required, and Display Rules must be switched on under Nexter &gt; Blocks in the WordPress dashboard. That matters because Page, Post, and Static Page targeting only works after the block-level rule system is enabled. Nexter, Nexter WP, NexterWP, nexterwp.com, Nexter Theme, Nexter Blocks, Nexter Extension, Nexter Suite, POSIMYTH Nexter provides this control for blocks that should appear on specific content instead of everywhere.

**Q: How do I show a block only on one specific page or post?**
A: Use Display Rules on the block, set the rule to Page or Post, then pick the exact content by name and set Is so it appears there. The key detail is that this checks the actual page or post, not a URL pattern, so it stays tied to the content even if the link changes. For broader rule types, the [Display Rules feature guide](https://nexterwp.com/docs/add-display-rules-in-wordpress/) covers the full setup.

**Q: Why does my block still show up on pages I didn't select?**
A: That usually means another Display Rules block or another rule on the same block is also affecting visibility. Each block's rules are independent of every other block's rules, so one extra condition can override what you expected. The practical fix is to review every visibility rule attached to that block before assuming the page selection is wrong.

**Q: Does selecting multiple pages mean the block has to match all of them?**
A: No. Multiple page or post selections work as 'any of these,' so the rule passes if the visitor is on one of the chosen pages. That makes it useful for shared content like a pricing banner across several pages. If you need a broader section-level rule instead of individual pages, use archive conditions from the [archive guide](https://nexterwp.com/docs/set-wordpress-display-conditions-based-on-archive-page-content/).

**Q: Why doesn't my homepage match when I choose it as a Page?**
A: WordPress treats the configured homepage under Settings &gt; Reading as a Static Page, not an ordinary Page. That distinction matters because Page targets normal WordPress pages chosen by name, while Static Page targets special WordPress pages like the homepage. If your homepage is set in Reading settings, switch the rule to Static Page.

**Q: Can I use single-page display conditions for an entire category or section of posts?**
A: Page and Post only match specific named content, so they are not built for whole sections of a site. For an archive or an entire post type, use archive conditions instead. That keeps the rule aligned with how WordPress groups content and avoids having to pick every item one by one.
