I'm looking for something very specific: I'm using a plugin called "Category and Tag Specific Widgets" to create category-specific html in the sidebar of each category. This only works if I click on the category name (www.myblog.com/category), but on a single post (www.myblog.com/category/post) it doesn't work...

Is there a way to modify the single.php file so it ties the single posts to the categories?

My permalinks are set to %category/%postname

  • 1
    If you mean this widget, it hasn't been updated in two years. I'd be careful with it. If that isn't it please post a link to the correct plugin.
    – s_ha_dum
    Feb 10, 2013 at 15:28
  • Thanks for your reply, I'm using this one: wordpress.org/extend/plugins/category-and-tag-specific-widgets and it works just fine, except for it not showing up in the single posts within a category...
    – user27267
    Feb 10, 2013 at 15:44
  • This plugin hasn't been updated in nearly years also. Feb 10, 2013 at 15:59

1 Answer 1


The plugin you are describing hasn't been updated in nearly two years.

Here is a method to do what you want, in a better way. It lets you use ANY widget on posts in certain categories.

Content Aware Sidebars

Manage an infinite number of sidebars. Make your WordPress site even more dynamic and boost SEO by controlling what content the sidebars should be displayed with. Creating flexible, dynamic sidebars has never been easier, and no code is needed at all as everything is easily done in the administration panel. No extra database tables or table columns will be added.

  • Thanks for the tip, installed it, but has the same problem as the plugin I used before. If I create a sidebar for a specific category, then the sidebar does not show up if you open a single post within that category...
    – user27267
    Feb 10, 2013 at 16:12
  • OK! Got it! Changed the permalink structure to postname only and everything shows up fine now! Thanks for the help!
    – user27267
    Feb 10, 2013 at 16:22
  • You're welcome. Be sure to click the check mark on solutions that you use. Feb 10, 2013 at 17:32

Your Answer

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

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