Support » Fixing WordPress » Does category-3.php over ride query_posts (‘cat=3,5,6,7’)?

  • Resolved richarduk


    I’m struggling to display multiple categories on a specific category page.

    If the category page is category-3.php then I might be using
    <?php query_posts($query_string . '&order=DESC&cat=3,5,8,7') ?> on that page and it’s not working.

    Presumably the category-3.php overrides the query_posts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • No, your query string should override that. Something must be up with your query.

    I’d use query posts –

    Thanks for putting me on the right track!

    I’ve spent an hour going round in circles. I removed $query_string . and it worked.

    I get muddled up with query_string. It’s very specific – I have to drill it into my head – and preserves any information that was contained in the link that was clicked to arrive at a template

    Live and learn

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does category-3.php over ride query_posts (‘cat=3,5,6,7’)?’ is closed to new replies.