Yes, since WP 3.2 you can set the ‘relation’ arg:
'meta_query' => array(
'relation' => 'OR',
array('key' => '_product_make','compare' => 'LIKE','value' => $strsearch),
array('key' => '_product_model','compare' => 'LIKE','value' => $strsearch)
)
Related Posts:
- Search Custom Post Type with all meta attached?
- Including Custom Meta with posts_where query
- Including metaboxes from custom post types in global search — continued
- Display custom post type for specific user
- Custom Form / Search with Custom Post Type Data
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- Sort CPT by taxonomy AND THEN by custom field
- Advanced search form with filters for custom taxonomies and custom fields
- Multiple orderby values in WP_Query
- Prevent pre_get_posts filter on specific post type
- Custom Taxonomy with Custom Post Type Finds No Posts
- Sorting a query by custom field date
- How to sort CPT by custom meta value (date), and return posts month by month
- Custom Post Type with Custom Title
- Backend search; include CPT meta?
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Search results ordered by custom post types are not grouped
- How can I customize “Pages” admin (edit.php) and “Edit Page” admin (post.php) for bulk edit of custom content type?
- Comparing timestamps in meta query doesn’t work
- Search tags in CPTs
- Impossible to get Attachments Outside WordPress?
- Conditional to modify query results
- wp_query to find posts by year and month
- How to create an advanced filter search?
- Assigning the same custom meta box to multiple post types
- Get all Posts If has same custom field values in Posts
- How to structure a site with product variations pages?
- WP_Query: include custom post type only with specific meta value
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- search also in taxonomy, tags and custom fields
- Filter custom posts using auto populated dropdown selectors
- How can I get the number of custom post type posts that have a specific attachment image set?
- Problem querying Custom post type by custom fields
- Orderby CPT custom fields not working
- Query custom post type with ACF Date
- Query Multiple Custom Posts by Custom Fields
- Order Custom Post Type by Custom Field Value
- WP_Query custom post type query not showing the exact post type
- How do i search authors from search form using author’s name
- Possible to filter custom post type with multiple meta data?
- Searching Custom Fields
- don’t publish custom post type post if a meta data field isn’t valid
- Query based on custom fields start and end date
- Redirect to another page using contact form 7? [closed]
- Detect inside a custom query the kind of post type to assign custom classes
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- custom post data – how to
- WP Query ‘posts_per_page’
- How to customize work area / admin area in a custom post type without plugins?
- How to display custom field value on page?
- Custom filter for main search: how to exclude specific post_type from search results
- How to get specific post meta by title or id
- how to get this tax_query working?
- find custom post type post by searching its custom field with my string
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- Custom Post type loop with ACF not displaying properly
- Filtering custom posts by custom fields (ACF) [closed]
- How to hide a custom field from admin?
- Search CPT Title AND Meta
- Cache issue with WP_Query and custom field filtering
- How do I list a custom field and custom taxonomies for each result in a loop?
- Change search query in wordpress custom post type
- Adding a location field to buddypress activity
- Alike Shortcode using in Custom Shortcode
- Query custom post type that has a serialized relational advanced custom field value
- Sort custom post column by generated value?
- How can I query and sort custom-post type using WP_Query
- Filter posts by their related field’s custom field
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- Post Filtered by Custom Field Value
- How to Disable option of meta field if that option is selected for any other post in custom post type?
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- Advanced search form with multiple custom fields
- sorting in wp query based on custom field value
- Meta_Query refuses to return results
- Multiple WordPress Sites, Same Database but Filtered Content
- Search facility with directories
- Create Second Search Page Only for Custom Post Type
- WordPress query in which condition uses custom field
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Error in WP Query. If variable is empty it is displaying previous post value
- Query events post type after current date and timezone
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Conditional posts in WP_query for search
- Manually build WP_Query
- WP_Query for CPT with filter by another WP_Query
- How to stop wp_query searching pages as well as the specified CPT
- WP_Query and two custom fields returns no posts
- Is it good practice to search for custom posts based on custom field values?
- Storing/querying custom date data
- 404 on Pages for Custom Post Type & Query_Posts
- How can i display on front page a movie that is atached in a post type
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?
- How to show all posts of specific custom post type with their custom fields values?
- Custom post archive with search, is_search() is false?
- Creating post custom field text area
- querying to custom field over ACF REST API
- How to display *block number* instead *date value* on WordPress posts?