• I use the Imbalance WordPress Theme. When viewing single posts you will get a list of post-thumbnails for recent posts in the sidebar. The query that calls them (in sidebar-featured.php) looks like this:

    query_posts(“showposts=2&offset=1”);

    This displays the two most recent posts, except the very most recent one, in the sidebar list.

    Is it possible to display a given number of, or all, posts only from the same category as the post I am viewing? And is it in that list possible to exclude the post I am viewing?

    What set of commands do I need to achive this?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘query_posts in sidebar for post category’ is closed to new replies.