I need to do a wp query that will get any post in custom post type that has one custom taxonomy (not hierarchical, like a post tag) or more. My current code work for one tag, but I've try for multiple and I can't do... I've try a lot of possibilites, query by taxonomy ID etc, no one works for me. Can you help me ? Thank's !
There is my actual code, work for one tag :
<?php foreach (get_the_terms( $post->ID, 'tag_blogcom' ) as $term ) {}?>
<?php
$query = new WP_Query(array(
'post_type' => 'blogcom',
'tag_blogcom' => $term->slug,
'showposts' => 10
));
?>