Forums

[Plugin: Widget Logic] display widget everywhere EXCEPT one post (3 posts)

  1. wardeh
    Member
    Posted 2 years ago #

    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!

  2. alanft
    Member
    Posted 2 years ago #

    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

  3. wardeh
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic