Untested, but I think you’d need to do two separate queries and merge them together:
$args = array(
'post_type' => 'featured-posts'
);
$featured_posts = get_posts($args);
$args = array(
'post_type' => 'review-posts',
'category_name' => 'featured-category'
);
$review_posts = get_posts($args);
$result = array_merge($featured_posts->posts, $review_posts->posts);
$final_query = WP_Query($result);
Related Posts:
- Retrieving 3 latest post from each of 5 different custom post types
- Quickest way to get last or oldest post date – WP Query
- Stuck in Order by more then one
- Query Multiple Custom Posts by Custom Fields
- Group by custom field value (start and end times)
- Get posts by category name
- How to properly use Categories with Custom Post Types
- date_query empty results with custom post type
- Query a custom taxonomy in a function to create an csv file
- Query posts based on user preferences
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Get post from Category by Priority
- How can you use a page for a custom post type?
- This wp_query will not return any posts and only seems to work with post_status inherit?
- shortcode for recent custom type post
- How do I correctly query posts from a post ID?
- Meta query with boolean true/false value
- Get Posts in a Custom Post Type category
- Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?
- Search multiple custom fields by using meta_query
- category__in not working on custom post type
- Displaying Posts Related to Other Posts by a Taxonomy Term?
- Date query for a custom meta field
- Querying Posts by Taxonomy From Alternate Network Site
- How to query for posts (in hierarchical custom post type) that have children?
- Set default option in dropdown of WP_Query?
- Combine tax_query and meta_query in WP_Query
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- Query for posts in 2 taxonomies
- Parent / Child formatting in a list of post of a custom post type
- How do I create an archive page for standard posts?
- Custom WP_Query not returning results when querying custom post type
- Combining sorted and random CPT
- Display CPT posts based on specific taxonomy
- WP_Query: include custom post type only with specific meta value
- showing custom post types of a certain category only
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Problem querying Custom post type by custom fields
- Custom taxonomies relationship
- WP_Query orderby and tax_query
- Configuring a meta query with multiple post types that have the same relationship on a single page
- Different Ways to Query Custom Post Types?
- can these 3 queries be re-written as 1 query?
- cannot override post_types in WP_Query()
- Wrapping x posts in html without leaving empty html
- Loop for custom post types filtered by a taxonomy
- Loop increase number
- Custom filter for main search: how to exclude specific post_type from search results
- Is This Code Efficient – Or is there a better way?
- how to get this tax_query working?
- find custom post type post by searching its custom field with my string
- wordpress lists similar type of posts in a custom post type
- Custom post type and custom taxonomy 404 on page 2
- Shortcode with WP_Query more than once on one page
- Can’t change posts per page in WordPress Post Type Query
- Creating a Tabbed Widget
- Using WP meta query to show custom post types by a start and finish date
- How do I list a custom field and custom taxonomies for each result in a loop?
- Getting the list of the latests posts and custom type posts in the homepage
- Wp Meta Query does not work while simple Query Works
- set object terms after some some time of published post – functions.php
- Change search query in wordpress custom post type
- Display related CPT with custom taxonomy
- Custom post type data not displaying If I select the category from the dropdonw
- build child and anchestor three from post parent
- Limiting the Number of User Posts to Their Own Posts
- How can I query and sort custom-post type using WP_Query
- Custom query result empty on page 2
- How select query is generated in a Custom Post Type?
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Output all terms slugs for a loop filter
- WP_query sort by taxonomy
- Post Query , breaks layout if a post is deleted
- Linking posts together with Advanced Custom Fields “both ways”
- Not able to get my custom search result using meta_query and tax_query together?
- Multiple WordPress Sites, Same Database but Filtered Content
- Custom Field as Custom Post type element class
- Display posts on parent post if author coincides
- WordPress query in which condition uses custom field
- How to get Current week and current date record wp query
- Error in WP Query. If variable is empty it is displaying previous post value
- Certain number of posts with certain excerpt length
- Custom post type not being pulled in widget
- WP_Query function for custom post type
- Modify shortcode to work with custom taxonomies and slugs
- Query posts from multiple post types sorted by overarching menu order
- Custom Taxonomy Query by Taxonomny not working
- query and paginate multiple post types
- Custom Post Type meta oembed html output resulting in WSoD
- WP_Query and two custom fields returns no posts
- Storing/querying custom date data
- Fallback if statement based on the number filtered from it
- Custom Post-type not returning the right child_of
- How do I hide single category post on my post page
- Get images only from a certain post type
- Can I add a wordpress page using the slug for a CPT rewrite
- Assign a tag to custom post type using a query
- Create a hierarchical list of posts that’s grouped and nested by category
- Query order by a numeric ACF field
- post__in select all custom posts and not the selected array of ids