Support » Plugin: Widget Options - The #1 WordPress Widget Control Plugin » Show on post types *and* hide on posts of a category?

  • Is it possible to set a widget to display on all pages of specific post types, but then also hide it if the post category is a specific category?

    While it doesn’t appear possible in the main settings, I wonder if I could use the “Logic” option and wp conditional tags… but I’m not sure what I’d need to put there.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there @sinemac – are you looking to exclude certain category posts from your recent post widget?

    No one has got back to you about this?

    I just posted this and see you didn’t have any help after 2 months?

    Thread Starter Scott McCulloch


    Hi @kristianngve,

    I did some digging on my own and figured it out…

    Using the “Logic” section of the widget options, I added this:

    ! in_category( array( ‘NO SIDEBAR’ ) )

    So now the widget will not show any page/post that I set with category “NO SIDEBAR” — it appears to override any other settings, so I can set particular page/post types to show the widget, but if a specific page/post has that category, it’s not displayed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show on post types *and* hide on posts of a category?’ is closed to new replies.