return; } // if there are no people set (or found), skip this setup // we leave the main loop from here temporarily $args = array('post__in' => $who_ids, 'post_type' => array('person')); $query = new WP_Query($args); ?> <div class="people"> <h3>In This Episode</h3> <div> <?php $no_gravatar = array(); while ($query->have_posts()) { $query->the_post(); $person_name = get_the_title(); $person_gravatar = C::get_person_gravatar_raw(); /* Save any Person with an empty $gravatar. */ if ('' == trim($person_gravatar)) { $no_gravatar[] = $post; continue; } ?> <div class="person promo"> <div class="avatar"><a href="<?php the_permalink(); ?> "><?php echo C::get_person_gravatar(75);
<?php if (is_post_type_archive('person')) { ?> <?php if ('' != trim(C::get_person_gravatar_raw())) { /* This will only display People with $gravatar images. */ ?> <div class="person promo"> <div class="avatar"><a href="<?php the_permalink(); ?> "><?php echo C::get_person_gravatar(175); ?> </a></div> <div class="name"><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></div> </div>