I am new to wordpress, i have developed a basic theme to make a tutorial web site, for that i need a dynamic sidebar based on category,

suppose, i have category A & B, if user is on the A category i need to display A sidebar, if it's in B category need to display B sidebar,

The sidebar will hold the menu items.

for Demo website see: http://www.tutorialspoint.com/, click on the any manu and see the sidebar.

i have searched plugin to achieve the stuff, but can't find it. if there is any plugin please suggest,


1 Answer 1


There are many solutions to your problem, I guess. Two solutions I would recommend are:

1. Register multiple sidebars.

Register more sidebars and then include them conditionally in page templates. So if you need different sidebar for each category (let's say you have 2 categories), then register 2 more sidebars (sidebar-cat-1, sidebar-cat-2) and then replace generic sidebar with one of these two, based on what category is displayed.

2. There is plugin for that ;)

You could check these plugins:

  • You are awesome!! both the plugins are what i want, need to learn condition for widget-logic plugin, but i like the conditional widget. Thanks for the answer!
    – Olive Bee
    Jul 13, 2013 at 17:01
  • This link should help you with conditions: codex.wordpress.org/Conditional_Tags Jul 13, 2013 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.