Title: Custom Post Type Archive Page
Last modified: August 19, 2016

---

# Custom Post Type Archive Page

 *  [wjohnson](https://wordpress.org/support/users/wjohnson/)
 * (@wjohnson)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/custom-post-type-archive-page/)
 * [A site I’m working](http://www.popularchildrenbooks.net/blog/book-catalog/) 
   on uses a custom post type called “Books” and has two custom taxonomies (BooksAuthor
   and genre). Using a custom page (page-books.php) I created a way of displaying
   the books.
 * **I would like to copy that same template over to the genre and authors “archive”
   of the posts**. I say “archives” as I noticed it defaults to the archive.php 
   template when a visitor clicks on a genre name or author name.
 * I’m using `the_terms()` to pul the information from each book custom post. I 
   would like it if the solution still allowed me to use that function. Any suggestions?
   Thank you so much in advance!

Viewing 1 replies (of 1 total)

 *  Thread Starter [wjohnson](https://wordpress.org/support/users/wjohnson/)
 * (@wjohnson)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/custom-post-type-archive-page/#post-1756978)
 * Well, with a great deal of time, I figured out that I could use a lot of
 *     ```
       if (Is_post_type()==Books){
       //Do Something
       }
       ```
   
 * This was effective, but I’ll bet there’s a much more elegant way of making a 
   custom post type archive page. I hope this helps if someone stumbles upon this!

Viewing 1 replies (of 1 total)

The topic ‘Custom Post Type Archive Page’ is closed to new replies.

## Tags

 * [custom archive](https://wordpress.org/support/topic-tag/custom-archive/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)

 * 1 reply
 * 1 participant
 * Last reply from: [wjohnson](https://wordpress.org/support/users/wjohnson/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/custom-post-type-archive-page/#post-1756978)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
