By default wp_query
returns posts of type ‘post’ only, unless tax_query
is set. So you would have to set 'post_type' => array( 'post', 'your-cpt-name' )
to get posts from your CPT as well.
You can set the post_type
to any
as well, but that will also return other post types, such as attachments that might have the same tag.