Title: Hide when query parameter NOT present
Last modified: October 3, 2025

---

# Hide when query parameter NOT present

 *  Resolved [csdsubscriber](https://wordpress.org/support/users/csdsubscriber/)
 * (@csdsubscriber)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/hide-when-query-parameter-not-present/)
 * I want to hide a block unless a particular query parameter is present. Is there
   a way to do this? I see I can hide a block when a particular query string is 
   present. What I want is to hide the block if no query string is present in the
   URL.
 * Example:
 * [https://mydomain.com/pagename](https://mydomain.com/pagename)
 * [https://mydomeing.com/pagename/?param=123](https://mydomeing.com/pagename/?param=123)
 * I want the block to be hidden for the first url, and visible for the second.
    -  This topic was modified 8 months, 1 week ago by [csdsubscriber](https://wordpress.org/support/users/csdsubscriber/).
    -  This topic was modified 8 months, 1 week ago by [csdsubscriber](https://wordpress.org/support/users/csdsubscriber/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * (@ndiego)
 * [8 months ago](https://wordpress.org/support/topic/hide-when-query-parameter-not-present/#post-18669689)
 * Hi [@csdsubscriber](https://wordpress.org/support/users/csdsubscriber/),
 * Yup, that’s possible. There are more details in the [documentation](https://blockvisibilitywp.com/knowledge-base/how-to-use-the-query-string-control/#h-required-queries-any).
 * Best,
   Nick
 *  Thread Starter [csdsubscriber](https://wordpress.org/support/users/csdsubscriber/)
 * (@csdsubscriber)
 * [8 months ago](https://wordpress.org/support/topic/hide-when-query-parameter-not-present/#post-18669892)
 * I don’t see how to “hide a block unless a particular query parameter is present.”
 * In other words, hide it unless param is on the url like so:
 * Hide the block for this: [https://mydomain.com/pagename](https://mydomain.com/pagename)
 * Show the block for this: [https://mydomeing.com/pagename/?param=123](https://mydomeing.com/pagename/?param=123)
 * Doable? What would I set in these three available querystring criteria choices?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide when query parameter NOT present’ is closed to new replies.

 * ![](https://ps.w.org/block-visibility/assets/icon-256x256.png?rev=3122657)
 * [Block Visibility — Conditional Visibility Control for the Block Editor](https://wordpress.org/plugins/block-visibility/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-visibility/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-visibility/)
 * [Active Topics](https://wordpress.org/support/plugin/block-visibility/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-visibility/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-visibility/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [csdsubscriber](https://wordpress.org/support/users/csdsubscriber/)
 * Last activity: [8 months ago](https://wordpress.org/support/topic/hide-when-query-parameter-not-present/#post-18669892)
 * Status: resolved