1

I have a custom post type with two taxonomies one called 'book' and another called 'chapter'.

I've got a template file called taxonomy-book.php but I want to know if there's a way to create a template that will call the chapter that is associated with a particular book. Something like taxonomy-book-chapter.php

The 'chapter' taxonomy is not a child of the 'book' taxonomy.

Any recommendations?

  • 1
    Out of the box, no, but you could probably do one via rewrite rules, a custom template loader, and custom URL generation. What's the custom post type called though? Are they pages in the books? – Tom J Nowell Dec 23 '17 at 1:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.