term_id ) || $object->term_id == $primary_category ) : array_push( $categories, $object->term_id ); endif; } /* Now that we have our featured categories, let's display their posts in a nice /* news-like block. We're listing categories in alphabetical order and /* will display up to 6 posts in each block. If a post has already appeared in the slider, it WON'T /* be duplicated here. */ foreach ( $categories as $cat ) { $loop = new WP_Query( array( 'category__in' => $cat, 'posts_per_page' => 4, 'post__not_in' => skylark_get_featured_posts( 'ids-only' ), ) ); if ( $loop->have_posts() ) : ?>

name; ?>

description ) : ?>

description; ?>

have_posts() ) : $loop->the_post(); $featured_post_ids[] = get_the_ID(); /* Let's show a thumbnail (if it exists), title, and excerpt for each post */ ?>