WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

I have a custom post type called 'camps', and in there I have different categories ie derbyshire, staffordshire etc.

I have created a template archive-camps.php for this.

archive-camps.php works fine when we go to www.domain.com/camps but if we go to www.domain.com/camps/derbyshire it uses the default archive.php

Why does it do this?

share|improve this question
up vote 1 down vote accepted

From Codex:

  1. taxonomy-{taxonomy}-{term}.php - If the taxonomy were sometax, and taxonomy's slug were someterm WordPress would look for taxonomy-sometax-someterm.php. In the case of Post Formats, the taxonomy is 'post_format' and the terms are 'post-format-{format}. i.e. taxonomy-post_format-post-format-link.php

  2. taxonomy-{taxonomy}.php - If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php

There is no custom post type custom taxonomy archive page. Custom taxonomy can exist without custom post type. So what you need is a taxonomy template.

share|improve this answer
thank you so much for your help, it works now :) – mandy Nov 20 '12 at 12:28

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.