I found a solution.
I have to use ['post__in']
$resume_args = array();
$resume_args['post_type'] = 'resume';
$resume_args['posts_per_page'] = -1;
$resume_args['post__in'] = array(9046, 9346); //works!
$resume_args['s'] = 'gassi gehen';
$resumes = new WP_Query($resume_args);
Related Posts:
- Get posts by menu ID
- Slow SQL_CALC_FOUND_ROWS Query
- Order by custom table and multiplication
- why update and delete query not worked in custom table?
- How to implement a new row_count method in WordPress?
- how to get Nearby zipcode
- Why last row deleted when refresh page
- Fix wp_term_relationships slow query in get_posts
- WP_Query always returning the last custom post
- SQL query into to WP query
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- Return only Count from a wp_query request?
- Use REGEXP in WP_Query meta_query key
- Order by DESC, ASC in custom WP_Query
- How to prevent execution of default query, while preserving ability to use WP_Query in template?
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- Add indexing to meta_value in wp_postmeta
- Getting wrong relationship value in $args in wp_Query?
- find a random blogid across my multisite network that has at least one post published
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- What kind of object type is WP_Query?
- How can I save an array from a random post sequence for later use?
- Getting an array out of WPQuery
- What is an efficient way to query based on post_meta?
- assign 2 $args to one wp_query
- SQL query equivalent to WP User Query
- Use Transient API to cache queries for all posts in all categories?
- What’s wrong with this WP query?
- Stop all SQL_CALC_FOUND_ROWS wordpress queries
- How to count post meta key values for all posts in database
- Group posts by meta_key
- How to search for posts IN OR title OR content OR author?
- WP_Query hit max joins… How else can I build a search function that uses custom fields?
- WP Meta Query for some meta (array) values
- meta_query with array as value
- Would this post meta be better added to the post table rather than post_meta table
- Placing a div or img in between a post array using WP Query [closed]
- Show one post per author and limit query to 8 posts
- How to find if a post with custom_field == X exists?
- Order By Multiple Meta Fields
- meta_query on a date range using an array of values
- WP_Query Performance Issues with meta_query
- if statement on database query
- Should close $wpdb via $wpdb->close()
- How to speed up wp_query, took more 5s to run against 100k posts
- Get the post permalink within the loop but without additional DB query
- Filter WordPress posts by between parameter
- SQL User Query by Multiple Roles using PHP
- Retrieve featured image (thumbnail) url from multiple posts with one query
- WordPress Query is taking more then 20 second and stuck on creating index
- How add a custom posttype name using ACF field to a query post array
- Get the Plugin Which Triggered a MySql Query in WordPress?
- How To Get Some Data From WordPress Database Using WordPress $wpdb Query?
- How can I get an array of all IDs from the current queried object?
- How can I pick a single post from the latest 3?
- WP Query for variable taxonomies
- What’s faster? One big query, or several smaller ones?
- Mysql query LIKE not working
- How to get posts on a specific date – WP Query
- Using WP_Query and WP_Meta_Query Outside of WordPress
- How WordPress attaches its Featured Images with posts?
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Improve wp query perfomance on large db
- wpdb custom post_type problem
- Single meta_query query using OR instead of AND in request’s WHERE statement
- Minimize database queries to user tables?
- (Solved) WP_Query ($ args) -> How to sort letters and numbers within the same array
- How to use MySQL’s MATCH AGAINST in WP_Query?
- Slow WP_Query for custom post type
- Performance when getting post meta for post retrieved by meta value
- Adding an array from a query string to a WP meta_query
- Create WP_Query to search for posts by their categories or their parent/child categories
- Hide Administrators From User List except current user (administrator)
- Add “Category” to Mysql Query
- Mysql query and order meta value
- Help with WP_Query – Too many mySQL queries
- Using hook to use DISTINCT in a wp_query
- pagination with ‘no_found_rows’ => true,
- Weird orderby => post__in issue
- Order by summing multiple values
- How to list custom fields as headers and list all pages sharing that custom field under it?
- querying data via $wpdb and get_row
- wp_Qwery works to slow
- Show all data in database table and make it into an interactive table
- Wp query show post by author name or post title or post content
- inserting a post from an extern php file but post content doesn’t show on wp site
- No results found from a $wpdb->get_results() query when trying to join more than one meta key query
- database query with more than a couple meta hangs and doesn’t complete
- Query most popular terms by taxonomy over 2 week period
- Query all posts if multiple meta key don’t exist
- Get posts by list of post IDs ordered by those IDs?
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- How to access custom WordPress database tables
- Removing duplicate values between two wordpress queries
- Include current post into loop
- how update data through ajax and jquery
- Is it possible to query from external database? [duplicate]
- Meta Query doesn’t works as espected
- WP User Query with Custom Fields and Search Results
- Combine results of multiple WP_Query to resemble single WP_Query