Break into Groups
'; + + // get all the people + $the_query = new WP_Query( $args ); + + print_r($the_query->posts); + echo ''; + // focusing on jus the people, not the rest of the query. + $people = $the_query->posts; + // look at each person, and see each group used. + foreach($people as $value){ + $id = $value->ID; + echo '
'; + $terms = get_the_terms($id, 'group'); + var_dump($terms); + } + /**/ + + echo '
'; + + var_dump($the_query); + /* + if ( $the_query->have_posts() ) { + while ( $the_query->have_posts() ) { + //$the_query->posts; + //the_title(); + } + }; + + */ + + // get all the people (after they've beeen filtered down) + + // check those people for groups (don;t want to be listing groups we won;t use) + + // Create a list for each group. + + // display all people that belong to that group. + + } + /* + if ($layout == 'grid') { + include('inc/people-grid.php'); + } + if ($layout == 'list') { + include('inc/people-list.php'); + } + if ($layout == 'table') { + include('inc/people-table.php'); + } + */ + + + ?> +
+ +