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
- Post_count only shows the number of results per page
- How do I query for posts by partial meta key?
- Meta query with string starting like pattern
- WP Query where title begins with a specific letter
- WordPress retrieving meta data for all custom post types in list view
- meta_query: using BETWEEN with floats and/or casting to DECIMAL
- Query Custom Meta Value with Increment
- Get_post() with meta_key when compare is a date
- querying with custom meta field with meta_query
- Pagination not working for Custom search form & custom result template
- Pagination broken when merging search results with additional WP_Query
- Multiple keyword search
- Using next/previous_posts_link with customised search
- WP Query post meta value
- WP_Query, custom sort and custom filter
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- wp_query with multiple custom fields
- Query post with meta_query where date is not in future
- Modifying the Search Results
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- wp_query add arguments using array_push if variable met
- Custom Search Result Page displaying only 1 result.
- Including Custom Meta with posts_where query
- Inserting serialized value into wp_postmeta using update_post_meta
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- Search pages that are a child of the current page
- Include tags in WP_Query
- Custom Search Not Consistent with Results
- How to use wp_query to post count by search term > group post count by date > convert to json. (ex. result 12-21-2020 – 343)
- Orderby is working with one query but not with other
- Including metaboxes from custom post types in global search — continued
- meta_value_num not ordering all items
- echo a specific meta_key queried through a custom post
- How can you include custom post meta in search without calling each key?
- Filter posts by comparing custom meta value against postdate
- wp_query search not taking keywords with together for multiple words
- WP_Query – Accessing MetaValue from Query Result
- Order post type by sum of two custom fields
- How to get specific post meta by title or id
- How to avoid bypass of search bar rules?
- Hide products in uncategorized category from search results
- How do you determine if a result in a search query is a post or a page?
- wp_query show all values
- How can I update post meta inside a WP_Query loop or the WordPress loop?
- add_query_arg to compare and display events from a certain date
- Ignore image urls in wp_query search
- Search CPT Title AND Meta
- How to prevent WP_Query from filtering on ‘s’ but keep ‘s’ for other purposes?
- How to add a “base” filter for all posts visible to visitors on the site?
- Add dynamic search to paginated WP_Query
- meta_query is overriding default search
- Multiple WP_Query args combinations according to post type
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Order 2 meta_queries differently in WP_Query?
- WordPress search page pagination displaying but not functional
- Order posts by title and custom field value?
- How to create URL parameters to run custom queries?
- How can I modify standard search query to include also ACF custom fields values?
- Custom WP_query and integrating into theme file
- WP Meta Query at depth 2
- Query postmeta values, and return multiple post_titles for common meta value
- Loop through multiple custom fields with increasing number
- Return a single custom post from multiple meta queries
- new WP_query using custom fields
- loop through custom post types with meta data
- Custom search: Search posts but display parent page in results
- Query posts by custom fields
- Searching in specific custom post type
- Help with showing text when something is entered in my search bar
- Get posts by meta value except one post [closed]
- Custom Taxonomy in custom REST API search