• I am using query_posts to limit my blog to only show posts if they are placed inside the “Blog” category that I have created. This works on all pages with the exception of my archives.

    Here is my query that allows pagination, which works on every other page perfectly fine.

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    'cat' => 8,
    'paged' => $paged
    );
    query_posts($args);

    However, when viewing my site’s archives, it shows ALL posts, regardless of which month, tag etc is being searched for.

    Does anybody know what is causing this and how to resolve the issue?

    Thanks.

  • The topic ‘Post Query Breaks Archives’ is closed to new replies.