• Resolved webnik

    (@noisedude)


    Is this possible?

    I have two widgets set up with rotating images – one that is relevant to the whole site, but one that I’d like to only appear when I’m viewing posts from a particular category.

    Can this be done or are widgets sitewide only?

Viewing 2 replies - 1 through 2 (of 2 total)
  • It can be done but it would either need a new widget-capable sidebar to be created and then called in the chosen category only. Or you would need to add a second widget-capable area to your current sidebar template file that is only displayed in the chosen category via the is_category() conditional.

    Thread Starter webnik

    (@noisedude)

    I’ve found a dirty workaround using the Dynamic Widgets plugin, which allows setting of excluded categories (amongst numerous other options). I’ve set up one widget to appear on all except one category, and the other widget to not appear on any categories EXCEPT the one the other is excluded from.

    Seems to work fine but thanks, Esmi, as your answer is definitely the proper way to do it in future.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display certain widgets in certain categories only?’ is closed to new replies.