I have just created a custom post type (portfolio) for a wordpress website. I also have added a Custom Taxonomy called (portfoliocategory).

I have created a archive page for my Custom Post Type (archive-portfolio) which is working properly, but I need help with Custom Taxonomy Template, I have created taxonomy-portfoliocategory.php but it is showing the default archive page and not showing the taxonomy page template!!

  • More information needed, e.g. URLs template code, the filename of your archive pages template that is showing, the difference between the two, etc
    – Tom J Nowell
    Sep 21, 2012 at 23:26
  • also your taxonomy registration code would be useful
    – Tom J Nowell
    Sep 21, 2012 at 23:33
  • Okay, I have created a custom post type which you can see here: creativekhan.com/portfolio It is working properly with archive-portfolio.php template. Now I have created a custom taxonomy for the "portfolio" custom post type. which you can see here: creativekhan.com/portfolio/category/psd-design The custom taxonomy name is "portfoliocategory" I have also created "taxonomy-portfoliocategory.php" file but it still show the default archive/category page? Sep 21, 2012 at 23:55

1 Answer 1


In the absence of further information this diagram should explain the template heirarchy system:

enter image description here

click for bigger

Thus if we have a term 'example' then example.com/portfoliocategory/example will show portfolio posts using the template template-portfoliocategory.php and if that isn't found it willl use taxonomy.php and then archive.php and finally index.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.