Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've created a custom post type "project" with custom taxonomies and am using those same taxonomies to categorize blog posts. I've figured out how to create my taxonomy.php page to list all things categorized as my custom taxonomy. But that's kind of the problem. It shows everything. I need to be able to separate my blog posts and my projects on separate taxonomy index pages. Codex seems to suggest that I can create separate taxonomy pages for each post type:

http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display

So, I have taxomony-project.php and taxonomy-post.php, but neither of these pages seem to work. I just end up with my archive-project.php page. Am I missing something? Am I linking to the wrong page? I'm using get_term_link like this to get to that page:

$cat = get_term_by( 'slug', 'education', 'expertise');

echo '<p class="clear more"><a class="more-link" href="' . get_term_link($cat,$cat->taxonomy) . '">More Projects ></a></p>';

Any idea what's going on? Any assistance would be much appreciated. Thanks!

share|improve this question
I don't read that in the codex at all. The section you refer to says you can create a separate taxonomy page for each term, not for each post type. – vancoder Mar 22 at 19:19
Oh, OK. Yeah, I guess your right. Any ideas on how to do this though? Am I just going to have to create my own page template with a new query? – B1gJ4k3 Mar 22 at 19:46
Couldn't you pull it off with archive-{post_type}.php instead? – vancoder Mar 22 at 20:35

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.