Hide/show if query var exists
-
Hi,
I would like to be able to hide or show elements based of if a query var is present regardless of value.
In my particular case there is an endpoint added with add_rewrite_endpoint(). When at that endpoint, the query var is added, but it is like ?endpoint= without a value.
Is there a way to test just for the existence of the query var?
Thanks,
Isaac
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Hide/show if query var exists’ is closed to new replies.