• I cannot figure out how to do the exclude. The instructions say, “Try variations on the examples given below. Use ! (NOT) in front of a conditional tag to reverse the logic, eg !is_home() to show a widget on any page except the home page.”

    But there is no example! I’ve tried everything, such as !not is_home() or !not is_page(‘about’).

    I want to exclude just one page from seeing this widget.

    HELP! I just can’t figure this out.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try just !is_home() and !is_page('about').

    Thread Starter sbilheimer

    (@sbilheimer)

    Thanks. That helps. But if I just want it to exclude one page and show on 10 others, that will be very long coding. Isn’t there a way to do it the opposite – to say ONLY show on this one page and no others?

    Thanks for your help.

    Susan

    To show something only on the About page, you would use is_page('About').

    Thread Starter sbilheimer

    (@sbilheimer)

    Oh wait, I’m confused. I used that code — is_page(‘About’) — and it shows on every page, EXCEPT the About page.

    But yes, I do want something to only show on the About page.

    No – !is_page('About') shows something on every page except the About Page. is_page('About') only shows something on the About page. The ! makes all the difference.

    Thread Starter sbilheimer

    (@sbilheimer)

    ?? That is so funny! Wow. Thanks. You solved the problem. I didn’t see that “!” You are the best! Thank you!

    No problem ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Widget Logic "Not" unclear HELP!’ is closed to new replies.