I need to use different content in a sidebar depending on the page being viewed.
Right now, I want to use one set of content for home page, a different set for category archives and a third for single posts.
In the near future we might want to make this more specific, so that the sidebar content would also be different depending on the category of the single post being viewed.
What is the best way to do this?
I have seen people recommending two different plugins: Content Aware Sidebars, Custom Sidebars. I have also done something similar a long time ago using the
dynamic_sidebar() function but I don’t remember how exactly.