>

ID); $tagIDs = array(); if($tags) { $tagcount = count($tags); for($i = 0; $i < $tagcount; $i++) { $tagIDs[$i] = $tags[$i]->term_id; } $args = array( 'tag__in' => $tagIDs, 'post__not_in' => array($post->ID), 'showposts' => 3, 'ignore_sticky_posts' => 1 ); $query = new WP_Query($args); if($query->have_posts()) { $related_found = true; ?>

Related Posts