Forums

Custom Post Type segmentation on taxonomy.php (1 post)

  1. gaberosser
    Member
    Posted 8 months ago #

    I am using the following code to display posts associated with the taxonomy on taxonomy.php:

    <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>

    I need to further segment this into custom post types associated with the current taxonomy. How can I go about doing this?

    Here's my setup:

    Taxonomy: Class
    Custom_Post_Type #1: Faculty
    Custom_Post_Type #1: Student

    I want to display (on taxonomy.php, class page):

    Teacher: Image + Content
    Students:
    - Students
    - Students
    - Students

    Any ideas?

Reply

You must log in to post.

About this Topic