Title: Taxonomy template file
Last modified: August 21, 2016

---

# Taxonomy template file

 *  [Marcella](https://wordpress.org/support/users/marcella1981/)
 * (@marcella1981)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/taxonomy-template-file/)
 * I have a file called taxonomy-genre.php which gets posts that are in a specific
   genre.
 * The url looks like this
 * [http://site.com/blog/genre/drama](http://site.com/blog/genre/drama)
 * It works fine. However it’s using the post limit set in wp-admin/reading-settings
   and I don’t want that. I always want to display a maximum of 12…
 * So I add a query_posts(‘showposts=12’) but then it doesn’t filter the content
   correctly and doesn’t retrieve items from the custom post type.
 * I’m wondering how to achieve this. Do I need a new WP_Query? If so where do I
   start?
 * Thanks for any help

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/taxonomy-template-file/#post-4577275)
 * You can merge your new argument with the ones from the original query like this:
 *     ```
       global $wp_query;
       query_posts(
          array_merge(
             $wp_query->query,
             array('posts_per_page' => 12)
          )
       );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Taxonomy template file’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/taxonomy-template-file/#post-4577275)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
