Template Hierarchy issue
-
Hi,
I have a custom post type called “course”.
In my theme I copied archive.php to archive-course.php
According to http://codex.wordpress.org/Template_Hierarchy#Custom_Post_Type_Archive_display
archive-course.php should override archive.php but it does not.
I am using a custom taxonomy called “location” that is associated with the custom post type “course”. Is it because I am using a custom taxonomy that the archive-course.php is not overriding archive.php?
I found that taxomony-location.php does work but I guess that would only work for the “course” custom post type with the “location” custom taxonomy.
I wpould like a template that works for all “course” custom post type with all custom taxonomy.
Please help, what am I doing wrong?
- The topic ‘Template Hierarchy issue’ is closed to new replies.