Title: Author Template Problem
Last modified: August 19, 2016

---

# Author Template Problem

 *  Resolved [Fatih Turan](https://wordpress.org/support/users/fatihturan/)
 * (@fatihturan)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/author-template-problem/)
 * Hello everyone.
 * I’m using author template (author.php) for display each author posts. I’m using`
   query_posts("&cat=-5");` code snippet for exclude a category.
 * But if i use this snippet author template isn’t working. So it’s displaying all
   author with own posts (in example: [http://www.sinemalardan.com/author/admin/](http://www.sinemalardan.com/author/admin/)-
   it’s will be display other author’s post).
 * My blog is here: [http://www.sinemalardan.com](http://www.sinemalardan.com)
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Fatih Turan](https://wordpress.org/support/users/fatihturan/)
 * (@fatihturan)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/author-template-problem/#post-847658)
 * I solved this problem with move query_posts() function to page of top like this:
   `
   query_posts( $query_string . '&cat=-5' );`
 * Thanks Viper007bond. 🙂

Viewing 1 replies (of 1 total)

The topic ‘Author Template Problem’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [Fatih Turan](https://wordpress.org/support/users/fatihturan/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/author-template-problem/#post-847658)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
