Can you create a custom sidebar for a category?

I would like to create a custom sidebar for a category, so that when someone clicks on that category, such as property news, they see all posts made in that category with a sidebar different to on the homepage.

We are using Soledad and in that theme it’s only possible for custom sidebars to be on pages.

Any solutions would be greatly appreciated.


Hi Eric,

Have you tried the Widget Context plugin?

you can filter for almost everything with it.

About listing only the posts for the selected selected category in the widget, it really depends on the widget you’re using. Generally you can detect which category archive page you are on with this function (so it might need some tweaking in the code):

I use which lets you set sidebars by post, category, tag and many other things