I want to have a related loop of posts on single post pages and to do this I want to search the tags of the post. My first question is can you use the search in query posts for multiple terms and what is correct way to do this. This is what I've been trying that is not working.
global $post;
$tags = wp_get_post_tags($post->ID);
$tag_ids = array();
foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
$args = array('cat' => '8', 'posts_per_page' => 8, 's' => $tag_ids,);
$my_search = new WP_Query($args);
if ($my_search->have_posts()) : while ($my_search->have_posts()) : $my_search- >the_post(); ?>