List posts from this category in sidebar
Hi, I am looking for a way to display posts from the category I am currently in, in the sidebar.
I can use
<?php query_posts('showposts=-1&order=ASC&title_li=Articles'); ?>but this displays posts in all categorys, I know I can add cat=1 or whatever but then I would have to have a different template for each category, I just want one line of code that will query posts for the category I am currently viewing, thanks.
- The topic ‘List posts from this category in sidebar’ is closed to new replies.