I have a widget I would like to display everywhere but ONE POST.
How would I accomplish this?
I have tried variations of
!is_page('the-page-name')
but is_page doesn't work for posts, right?
How would I exclude just ONE POST?
Thank you!
I have a widget I would like to display everywhere but ONE POST.
How would I accomplish this?
I have tried variations of
!is_page('the-page-name')
but is_page doesn't work for posts, right?
How would I exclude just ONE POST?
Thank you!
read through the codex on wordpress conditional tags. the bit on single posts is what you are after:
http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page
Thank you! This is what is working:
!is_single('the-post-name')
I actually tried that before and it didn't work, but I think I needed to check the box for the reset query fix. So now it is working. Thanks again.
This topic has been closed to new replies.