term_id ); $args = array( 'cat' => array($first_category), 'post__not_in' => array($post->ID), 'posts_per_page' => 3, 'ignore_sticky_posts' => true ); // Filter for Related Posts query arguments. $args = apply_filters( 'hitmag_related_posts_query_arguments', $args ); $related_posts = new WP_Query($args); if( $related_posts->have_posts() ) : while ($related_posts->have_posts()) : $related_posts->the_post(); ?>