Title: Taxonomy query loading wrong post type
Last modified: August 22, 2016

---

# Taxonomy query loading wrong post type

 *  [paddelboot](https://wordpress.org/support/users/paddelboot/)
 * (@paddelboot)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/taxonomy-query-loading-wrong-post-type/)
 * Hi,
 * Never had this bug before, cannot find the cause:
 * 1. Registered custom post type ‘book’
    2. Registered custom taxonomy ‘series’
   for cpt ‘book’ 3. Created template ‘taxonomy-series.php’ 4. Added some taxonomy
   terms and dummy books 5. Called the taxonomy archive page in browser: [http://localhost/series/series-one](http://localhost/series/series-one)
   6. Everything works as expected, except in the $wp_query object I can see that
   it queries the database for ‘post’, ‘page’ and ‘attachment’ instead for the post
   type ‘book’
 * What is happening here?? Anyone ever experienced this?
 * Paddelboot

 The topic ‘Taxonomy query loading wrong post type’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [paddelboot](https://wordpress.org/support/users/paddelboot/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/taxonomy-query-loading-wrong-post-type/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
