(int) $c->term_id, $cats );
$cat_ids = array_filter( $cat_ids );
if ( empty( $cat_ids ) ) return;
$q = new WP_Query( array(
'category__in' => $cat_ids,
'post__not_in' => array( get_the_ID() ),
'posts_per_page' => 4,
'ignore_sticky_posts' => true,
'no_found_rows' => true,
) );
if ( $q->have_posts() ) : ?>