• Resolved redone975

    (@redone975)


    I’ve created a custom post type called “Creative Team” (essentially staff) for a site I’m working on. Within this team, there are several taxonomies including “creative directors”, “art directors, and “designers”.

    I’m trying to create a page (based on the 960 grid) to display everyone from the creative team, but group them by the taxonomies. I’ve included a link below to a jpg that visually depicts what I’m trying to achieve:
    custom-post-type_taxonomy-breakdown.jpg

    I have the following code to spit out all the members, but I’m unsure how to insert the “if” statements to check and render the taxonomy groupings.

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you opposed to doing three separate loops? At the top of each loop do something like:

    $pg_title_dr = get_the_term_list($post->ID,'art-director', '', ', ', '');
    $posts = query_posts($query_string . '&orderby=title&order=asc');

    Before each loop:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter redone975

    (@redone975)

    Thanks Daniel,

    My initial post was incorrect. I had actually set up a taxonomy called “staff list” and added “creative director”, “art director” and “designer” to it. Instead of using get_the_term_list(), I used the following:

    query_posts('staff-list=creative-director');

    I posted the entire code below, Hopefully, someone else might find it useful.
    https://wordpress.pastebin.com/XCcBeTB2

    I also replaced the jQuery “alpha|omega” class insertion for the 960 grid with some PHP code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Categorize taxonomies within a custom post type page’ is closed to new replies.