After another search in WordPress codex I find the solution:
Search Parameter Show posts based on a keyword search.
s (string) – Search keyword. Show Posts based on a keyword search
Display posts that match the search term “keyword”:
$query = new WP_Query( array( ‘s’ => ‘keyword’ ) );
http://codex.wordpress.org/wp_query#Search_Parameter
For my example:
$resume_args = array();
$resume_args['post_type'] = 'resume';
$resume_args['posts_per_page'] = 7;
$resume_args['paged'] = $paged;
$resume_args['order'] = 'DESC';
$resume_args['orderby'] = 'ID';
$resume_args['s'] = 'foo';
$resume_search_cat = array(
'key' => '_resume_category',
'value' => str_replace('-', ' ',$kategorie),
'compare' => 'LIKE'
);
/** Enable multiple meta query **/
$resume_args['meta_query'] = array(
$resume_search_cat
);
$resumes = new WP_Query($resume_args);
Related Posts:
- How to retrieve all post titles of a specific post type?
- How to use a custom post type as front page?
- How to order custom post type by multiple custom fields?
- Sort Order for a Custom Query in a Post Type Archive Not Working
- Custom Taxonomy with Custom Post Type Finds No Posts
- Display several random posts, but make sure a condition is met
- How can I generate a RSS feed based on a custom WP_Query?
- Custom query – alternate posts by category
- Search Custom Post Type with all meta attached?
- Query by 2 values of a repeater ACF field
- Custom post type loop split/ordered by taxonomy
- Display two post types ordered by two custom fields
- Display children and grandchildren of a custom post type
- Getting all custom posts with a certain category
- Sort by two dates. Default entry date and custom field if present
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- Custom post_type search’s $wp_query->query_vars do not correspond
- wp_query custom post type by taxonomy & standard post by taxonomy
- Query Custom Post Types & category_name?
- Conditional to modify query results
- WP_Query is printing out only one post when posts_per_page is set to multiple
- WP Query to displaying date and posts for that date?
- Use WP_Query() to Output the 4th to 6th Most Recent Posts of a Custom Post Type
- Get all Posts If has same custom field values in Posts
- Custom Post Types not showing, custom WP_Query
- Filter by custom taxonomy slug on a custom post type
- Sorting multiple custom post types without a meta key/value pair by sort order
- Display custom post type from dynamic custom field
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- wp_query check if integer exists in custom field’s array
- Previous/Next Link by Meta Value in CPT
- Custom-Posttype & Custom Taxonomy WP_Query
- orderby rand is not working for a custom post types
- Stuck in Order by more then one
- Display featured image from one CPT within another CPT query
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- Why is my category template ignoring post type?
- pagination not working for category.php (custom post types in categories)
- Query based on custom fields start and end date
- Retrieve custom post types by custom taxonomies with WP_Query
- Add ‘last’ class to second post in featured post loop
- Different Limit number of post on different archive page
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- WP_Query Custom Post Type if Category ID Equals
- Using page slug in wp_query
- Custom taxonomy wp_query woes.
- Trouble with pagination
- Select2 AJAX and WP Query Returns ALL and does not filter
- WP_Query orderby not work with meta_key
- Different options per post type in WP_Query
- Returning a custom content types with meta values
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- List categories, subcategories and posts from custom taxonomy and custom post type
- Custom Post type loop with ACF not displaying properly
- Sort results without WP_QUERY?
- Using Wp_Query, Json to add Highcharts series data
- Display the current post in browser as the first post in a loop (for a slideshow)
- How to query Posts from a custom post type which contains a custom taxonomy?
- Searching post types
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- wp_query not returning my custom post
- filter the_content, custom post type, and wp_query
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Get_the_term_list inexplicably adds values in foreach
- Single parent post lists child posts with pagination
- custom taxonomy pagination 404 error
- wp_query can’t get max_num_pages in custom post type
- Custom Form / Search with Custom Post Type Data
- Get next and prev item from custom WP_Query and Custom Post Type
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- Query to show post current day
- Using ACF values in nested WP queries for CPT with date values in the past
- Pagination Not Working When Used With WP_Query() `offset` Property
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- Help understand and create a loop with WP_query
- How do I insert a custom post type query after a certain number of recent posts and then resume recent posts?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- how to display new private message to users?
- Make pagination work as a carousel (custom query)
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- Search result based on URL
- subtracting the current post form then whole loop, which is generating all CPT titles
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Imported Content Doesnt Show Up On Frontend
- Get posts associated with custom taxonomy alternate way
- Calling specific page with wp query
- display news with pictures 3 small and one large (loop)
- tax_query showing no results
- Can’t use orderby in WP_Query
- display post types alternately
- Trying to combine multiple WordPress queries
- Cannot query custom post type taxonomy from theme options array
- Query Custom Post Type by Tag
- How to store queried custom data and use it in multiple pages?
- Adding custom shortcode to page leads to page without styling
- Attaching multiple custom taxonomies to one CPT?
- How to insert a post from a different post type after every nth post
- Sort CPT by taxonomy AND THEN by custom field
- Complex Custom Loop with Includes