• A site I’m working 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

    (@wjohnson)

    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.