may i suggest you use instead get_posts()?
example
$args_t10 = array(
'tag_id' => 10,
);
$postslist_t10 = get_posts( $args_t10 ); ?>
$args_t10_v = array(
'tag_id' => 10,
'post_type' => 'videos'
);
$postslist_t10_v = get_posts( $args_t10_v );
you then can merge and filter the duplicates
$postmixed = array_merge($postslist_t10, $postslist_t10_v);
$uniqueposts = array_unique(postmixed);
reference
wp: get_posts() and parameters
php: array-unique() , array_merge
Related Posts:
- Custom Tag Description unable to display just below and outside of the Loop
- Tag page only display 10 posts
- Loop multiple taxonomy in custom post
- WordPress Custom Post Type and sort by Tags
- Query Custom Post Type by Tag
- Problem: wp_query outputs all images on site
- Get custom post type’s fields in a while loop as variables
- Custom Post Type within the Loop on Homepage (Page Template)
- The loop seems stuck to a single (now deleted) post
- Posts per row on archive page (custom post type)
- Cross reference custom post types
- How do I know the ‘meta_key’ for ordering my custom post type
- How to get all tags of a custom post type by id
- Custom Theme With Custom Loops
- Custom Post Types strange pagination problem
- Custom post type conditional in loop
- How can I show 1 featured post in a styled element, and the next few below differently styled
- Listing all term items alphabetically / sorting loop
- Display related custom taxonomy posts in sidebar
- pagination not working for category.php (custom post types in categories)
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- How do I control the output of a custom post type in the loop?
- Display custom post type posts first, then default posts
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Three Most Recent Posts, One Per Term
- Targeting custom post type
- Does WP have a global of $id?
- WordPress Loop if/else
- get_the_title() is returning results from previous loop
- Custom Post Loop pulling all custom posts, not just one
- Conditional for a Single Post That Belongs to a Category?
- Wrapping x posts in html without leaving empty html
- WP Query post__in not returning correct results
- Custom Post Type single.php template only shows the latest post
- Sort posts in loop by the WooCommerce Membership of the author
- Show all tags on custom post type
- Best way to specify “article type” in URL
- Including all post id’s of a custom post type into an array
- How to include custom post type posts on a page?
- 4 column-loop ordered alphabetically with entries grouped (and labeled) by their first letter
- data-type=”” … needed post tags stripped of characters
- Dynamically output a class to an anchor tag depending on what tag is chosen
- Creating tags via API
- How can I group posts by months and years?
- Pagination Error : Duplicate argument being outputted
- get_post_type is always post
- Multiple Custom Post Type queries, how to DRY it up
- Custon Content within WordPress Loop
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- Bootstrap accordion looping through posts incorrectly
- Main query not querying any posts in custom taxonomy template
- Loop increase number
- Custom post type showing same Post on all Pages
- How to display custom post type tags?
- get_post_meta is not working inside shortcode
- Display posts with tag for custom post type only
- Using wp_query to modify the loop in index.php for a CPT
- the_post() is printing titles in page footer
- Custom WP_Query doesn’t display all posts
- Query & the_content() is showing in the header
- Meta data (Tags and Categories) for Custom Posts not showing.
- get_the_tag_list() returns bad links
- Create Array from custom post type to display a slider
- Tags not working in my custom post type
- Move Genesis Single Page/Single Post Title
- get parent content inside child posts
- 3 random images from custom post type, each in a div with a diffrent class
- How to list tags from custom post type attachments?
- Two column layout with alphabetical ordering
- Strip Characters From Tag Name
- Post loop count is not in order
- Control content before and after custom post type loop
- Why does my taxonomy have a category style div id?
- Listing custom post types on archive page with array
- get_pagination not working on a custom post type query (using WP_Query)
- How to Make infinite loop of post
- portfolio custom type tags support
- How can I create an automatic drop down menu with my tags?
- WP_Query with custom post type ID
- Need help deciding on a taxonomy
- Displaying multiple post types on home page
- looping though custom post types and only return results in a given taxonomy
- display custom taxonomies limited to custom post type?
- Shortcode leaves no space for other elements?
- How to conditionally add Custom Post Type to Front Page
- Dynamically insert code to custom post type loop
- hide specific div on single.php [closed]
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Get Posts by Category, Tag , and CPT Taxonomy
- Looping Through Categories of a CPT
- Is it possible to have “two” sets of tags?
- WordPress admin display post type tags as checkbox
- Search Filter CPT, Custom Loop
- The Difference Between Categories and Tags and Taxonomies and Terms
- How do you output an unknown number of images in a custom post type with desired markup?
- Get data from PHP to JavaScript to set position of each post on front page
- Pull in taxonomy field of custom post type in new query