Query custom post type with tags
Have you tried wp_get_post_terms() Example usage: $term_lists = wp_get_post_terms($post_id, ‘product_tag’, array(“fields” => “names”)); I modified your code and got this to work on my site: <ul id=”relatedlist”> <?php $tags = wp_get_post_terms($post_id, ‘product_tag’); if ( $tags ) { $tag_ids = array(); foreach ( $tags as $individual_tag ) array_push($tag_ids,$individual_tag->term_id); $args = array( ‘post_type’ => ‘product’, ‘tax_query’ => … Read more