My main projects page is bringing in some data that I have entered in for custom post types. There are basically a few categories like "photo", "video", etc. When you click on one of these it will go to a subpage like /projects/photo/1. How to I go about specifying a template to use for those subpages?

I am using the Ultimate Post-Type Plugin, but that shouldn't really matter since it should work the same way.

1 Answer 1


Have a look at the template hierarchy that WordPress follows. Since the sub page is a single custom post type. You could put the code you require to output for the sub pages in single-[post-type].php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.