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
- How do you get the count of posts in an archive page?
- tag.php doesn’t work with tags on a custom post type post?
- How to show Y number of custom posts after every X normal posts?
- Load custom posts with same tag as page
- Custom Post Type Pagination Not Working On Archive Page
- Archive page…limiting posts per page
- Adding custom post type to loop
- Get posts with tag all post types
- Order custom posts by taxonomy?
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy posts on Archive page
- How to show related posts by category or custom post type?
- associate custom post type with tags with specific pages
- Posts navigation in custom post type single.php not working
- Display custom field of specific post where post title matches variable
- Remove duplicated values from a loop
- How to connect two custom post types with nested loops
- Normal pages as children of my Custom Post Type
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Group posts by custom post type
- Custom Post Type Loop throws 500 error when used in widget
- Show one item per category of a custom post type
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Group CPT posts by custom taxonomy
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Display Custom Taxonomy Alphabetically
- Problem: wp_query outputs all images on site
- The loop seems stuck to a single (now deleted) post
- Custom Post Types strange pagination problem
- Display related custom taxonomy posts in sidebar
- Targeting custom post type
- Does WP have a global of $id?
- Conditional for a Single Post That Belongs to a Category?
- data-type=”” … needed post tags stripped of characters
- Dynamically output a class to an anchor tag depending on what tag is chosen
- Bootstrap accordion looping through posts incorrectly
- Using wp_query to modify the loop in index.php for a CPT
- Custom WP_Query doesn’t display all posts
- Query & the_content() is showing in the header
- Strip Characters From Tag Name
- Why does my taxonomy have a category style div id?
- Listing custom post types on archive page with array
- looping though custom post types and only return results in a given taxonomy
- How to conditionally add Custom Post Type to Front Page
- Pagination not working on custom query on a page
- Search Filter CPT, Custom Loop
- get custom post type value in header.php [closed]
- 404 Page Not Found on /Page/2/ on Tag Page
- get_terms() parent, child and grandchild
- Default post_tag for custom post type
- Custom post type tags not showing in search
- pre_get_posts works in post type archive but not in single post
- Why is the output of a call to the_excerpt different when the call seems to be identical?
- Custom PT, Taxonomys and wordpress query
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Only looping through pages that have children or subpages
- One post auto attached to many another items
- How can i loop through custom post type according to custom meta field?
- Changing WordPress sort order for returned child pages
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Page that lists publications by classifying them by taxonomy
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- Exclude a specific post in a Custom Post Type
- Filtering posts based on three taxonomies
- How to set “section categories”?
- Add extra elements to the_post in a custom post_type
- Accessing download link from the loop with WP Download Manager Pro
- Custom WordPress theme not displaying posts from category
- Custom Post Type has wrong label and is not found when called by a loop
- Error in the page of a CPT file in WordPress
- List all posts associated under custom taxonomy
- Custom taxonomy template for custom fields loop [closed]
- How to show terms used only for particular custom post type. Filter creation perpose
- How to prevent post to repeat on my loop?
- 2 custom posts types, in their own columns, one pagination for both
- Custom post type with custom taxonomy permalinks
- Pagination on custom post types
- How to get past and upcoming post by defining date in custom field?
- How can I include custom post types on a tag page?
- How to query all custom posts of a certain type and checking what category they have
- Generating List of Tags from Custom Post Type
- Post data in separate divs with incrementing class using WP_Query
- Redirection loop error after login from a custom post type post
- Load different template for CPT (in loop) in my plugin?
- Return all wordpress custom posts in specific multidimensional array
- Custom Loop and Standard Blog Loop Issue
- Custom loop won’t work, can’t find problem
- Categories and page filtering with pre_get_posts
- Tags and Taxonomy links not working for Custom Post Types
- Loop to pull content from parent element in custom post type [duplicate]
- How to exclude certain portfolios from a loop
- how insert how many post type in this function?
- How to create custom page templates with default page layout framework?
- How to loop through a custom post type using a shortcode and output each element in the loop using shortcodes