ID); $related_section_title = esc_attr(bdmeter_get_option('single_related_posts_title')); $number_of_related_posts = esc_attr(bdmeter_get_option('single_number_of_related_posts')); if ($categories) { $cat_ids = array(); foreach ($categories as $category) $cat_ids[] = $category->term_id; $args = array( 'category__in' => $cat_ids, 'post__not_in' => array($post->ID), 'posts_per_page' => $number_of_related_posts, // Number of related posts to display. 'ignore_sticky_posts' => 1 ); $related_posts = new wp_query($args); if (!empty($related_posts)) { ?>

have_posts()) { $related_posts->the_post(); global $post; $aft_post_id = get_the_ID(); $thumbnail_size = 'medium'; if(!empty($url)){ $col_class = 'col-five'; }else{ $col_class = 'col-ten'; } ?>