Title: Get Taxonomy.php
Last modified: August 21, 2016

---

# Get Taxonomy.php

 *  [mrspabs](https://wordpress.org/support/users/mrspabs/)
 * (@mrspabs)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/get-taxonomyphp/)
 * My custom post type has categories. I am trying to make what is the equivalent
   of a category.php page. I have named it taxonomy.php.
    The below code works, 
   but I when I add a query to it, it stops working. Can someone tell me how to 
   make the code below offset by -1 and still work for a custom taxonomy?
 *     ```
       <?php get_header(); ?>
   
       <ul>
   
       <?php   if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <li>
        <a href="<?php the_permalink(); ?>"><h3><?php the_title () ?> </h3></a>
        </li>
   
       <?php
       	endwhile;
       endif;wp_reset_query();
       ?>
       </ul>
   
       <?php get_footer(); ?>
       ```
   

The topic ‘Get Taxonomy.php’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [mrspabs](https://wordpress.org/support/users/mrspabs/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/get-taxonomyphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
