WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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