In my case I use a custom query so I can just use:
$query = new WP_Query(array('post_type' => 'akteur', 'meta_query' => array(
'relation' => 'OR',
array('key' => 'wpcf-kurzbeschreibung','compare' => 'LIKE','value' => $suchbegriff),
array('key' => 'wpcf-zusatzinfo','compare' => 'LIKE','value' => $suchbegriff)
)
));
Related Posts:
- Extend search query to search meta keys values based on search string
- Can wp_query return posts meta in a single request?
- Getting attachments by meta value
- meta_query where value is equal to given value
- WordPress altering my custom query, How to fix it?
- Search Posts with Custom Fields as query
- Group WP_Query by meta_key date
- How do I use wp_query for WordPress search?
- exclude posts with a specific custom field and value
- How to make Meta Query case sensitive?
- Display custom field meta outside loop, site wide
- Fetch Record based on meta key dates
- Extend product search with meta in WooCommerce
- how to make members list directory through wordpress post custom meta key.
- Large AND OR query timing out
- Categorising search results based on Custom Fields
- Custom WP_Query for WordPress Search Results with meta_query
- Search posts missing a particular custom field
- Order WP_Query results by meta key value in custom query
- Display post meta conditionally based on it’s value
- How do i create a custom post query when the meta value is an array?
- Trouble with serialized metadata
- Categories In English version showing not canonical URL, instead shows query search result
- Query against multiple locations within single custom post type post
- Meta key in wp_query bug?
- Sorting Posts with meta value not working
- Custom search (wp query by custom fields)
- How to include custom fields in wordpress search
- How to compare a date in custom field with today’s date in custom WP_Query?
- Include post content of linked posts in search
- Replacing search results with custom external query
- Prevent author bio page from showing in search results
- Filter posts by comparing custom meta value against postdate
- WordPress query posts with multiple post_meta data
- How do I amend wp_query before it is run/executed?
- wp_query search not taking keywords with together for multiple words
- WP_Query – Accessing MetaValue from Query Result
- WP_Query Meta_key is text value and need to sort as numeric not working
- filter wp_query result with custom field values
- Order post type by sum of two custom fields
- Wildcard search in WP Query
- Get a list of posts by specific category
- WordPress Custom Search Form Displaying Unexpected Results
- How to get specific post meta by title or id
- Search Page Returns Nothing
- search serialised meta_value for date value?
- Conditional operator OR not working with custom fields
- How do I check if an article is popular this week?
- Redirect Search to Form When No Product Results Are Found
- How to properly use AND / OR in custom search
- WP ForLoop to compare meta information of posts to determine what post to display
- How to avoid bypass of search bar rules?
- Hide products in uncategorized category from search results
- WP_QUERY with group by with custom fields
- How to order posts on each different category?
- Issues with search after added meta_query
- Intiger meta value with ‘>=’ returns posts with lower value
- Display posts with specific value first in query
- How do you determine if a result in a search query is a post or a page?
- get_posts custom field
- Get every post with value in meta key
- Using get_posts to get posts based on a checkbox value with Advanced Custom Fields
- wp_query posts with custom fields number smaller than
- Slow Query On Search
- Sorting search results with custom dropdown
- Posts query according to meta box date
- create metabox to activate slider
- How To Keep Search Title the same on paged Results
- Query posts using less than
- wp_query show all values
- change posts_orderby of the callback wp_query?
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- Retrieve select tag custom values from array and display them in current page with wp_query?
- How to use a dropdown to filter posts by custom field
- Woocommerce: order posts by meta key
- How can I update post meta inside a WP_Query loop or the WordPress loop?
- Excluding posts with certain value of meta_key keeping posts without that meta_key
- Query only displays one page_id
- Nested array issue in meta_query
- Order a WP_Query by meta value where the value is an array
- Querying a large number of posts including their custom fields data
- How to restrict search on a certain page to only return results against custom taxonomies?
- Query using string from custom field as array value
- Filtering by multiple conditions in the loop
- How to show list of posts with custom field value (a date) that are coming soon
- add_query_arg to compare and display events from a certain date
- Filter out a meta key in the Search results page with two CPT
- Query by key or author
- Sort by custom field that is an array?
- Comparing 2 Decimal Numbers from custom fields and displaying posts
- Orderby two meta fields not working
- Sorting posts by Multiple custom fields in defined order
- Display count number of posts with the same specific meta_key meta_value
- Ignore image urls in wp_query search
- Search CPT Title AND Meta
- Query posts by searching for a string in a meta field
- Search.php – return number of results but cannot loop through
- Can I make a search query which includes a space?
- WP_Query meta compare must include ALL array values
- How to filter a static post page with ajax and $wp_query