Title: Author Posts Page &#8211; exclude posts
Last modified: August 20, 2016

---

# Author Posts Page – exclude posts

 *  Resolved [Martin Black](https://wordpress.org/support/users/ownedbyhleb/)
 * (@ownedbyhleb)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/author-posts-page-exclude-posts/)
 * I currently have a page template `author.php` which is almost identical to the
   [Sample Author Page Template](http://codex.wordpress.org/Author_Templates#Sample_Template_File).
   However, how do I control the which posts it generates?
 * Essentially I would like to exclude categories from which it gets the authors
   posts; Is this possible?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Martin Black](https://wordpress.org/support/users/ownedbyhleb/)
 * (@ownedbyhleb)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/author-posts-page-exclude-posts/#post-2320088)
 * I have solved this by simply using the `query_posts` to exclude categories. My`
   author.php` now has this line just before the loop starts:
 *     ```
       <?php query_posts($query_string . '&cat=-69,-68'); ?>
       <?php while (have_posts()) : the_post(); ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Author Posts Page – exclude posts’ is closed to new replies.

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)
 * [author.php](https://wordpress.org/support/topic-tag/author-php/)
 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Martin Black](https://wordpress.org/support/users/ownedbyhleb/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/author-posts-page-exclude-posts/#post-2320088)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
