Display Posts Query with IF function
If I understand you, you want to filter out faculty members who do not have any awards at the query stage. Replace your code: <?php query_posts( ‘post_type=mtt_page’); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> with this (untested): <?php $args = array( ‘post_type’ => ‘mtt_page’, ‘posts_per_page’ => -1, ‘meta_query’ => … Read more