Title: Post Query Breaks Archives
Last modified: August 19, 2016

---

# Post Query Breaks Archives

 *  [thelumberjack](https://wordpress.org/support/users/thelumberjack/)
 * (@thelumberjack)
 * [15 years ago](https://wordpress.org/support/topic/post-query-breaks-archives/)
 * 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.

## Tags

 * [archives](https://wordpress.org/support/topic-tag/archives/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [thelumberjack](https://wordpress.org/support/users/thelumberjack/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/post-query-breaks-archives/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
