ID ); if( $tags ) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $my_query = new wp_query(array( 'tag__in' => $tag_ids, 'post__not_in' => array( $post->ID ), 'posts_per_page' => of_get_option( 'related_posts_count' ) + 1 )); if( $my_query->have_posts() ) { ?>

have_posts() ) { $my_query->the_post(); ?>

,