WordPress.org

Support

Support » How-To and Troubleshooting » Trouble separating post types on taxonomy pages.

Trouble separating post types on taxonomy pages.

  • I’ve created a custom post type “project” with custom taxonomies and am using those same taxonomies to categorize blog posts. I’ve figured our how to create my taxonomy.php page to list all things categorized as my custom taxonomy. But that’s kind of the problem. It show 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!

Viewing 1 replies (of 1 total)
  • OK, so it looks like I may be misreading the codex. I don’t think those taxonomy pages are meant to do that. Any idea on how I can get this done.

    Am I just going to have to create my own page template with a new query?

Viewing 1 replies (of 1 total)
  • The topic ‘Trouble separating post types on taxonomy pages.’ is closed to new replies.