I'm trying to have it so when I'm on a category page the links in the sidebar are to other pages only from that category and I want to be able to reuse the sidebar template for each instance.
So, say I'm on the page .../category/books the sidebar should list all posts only from that category and when I'm at the page ../category/films I see a menu only for the posts in the category films.
I suppose one solution would be to hard code each category into several sidebars but that would be cumbersome and the user would not be able to create any new categories without me setting up the back end. I need a dynamic solution.
Any help would be fantastic.