Such condition is impossible to express in current WP API. You can use search for title/content matches and meta query for LIKE matches on post meta, but there is no way to establish OR relationship between the two.
The closest API way would be two–stage query where you query IDs for two sets of results (one for search, one for meta), then query full data for their combination.
Outside of that it is realm custom SQL. Not impossible, but relatively hard to write and harder to maintain.
Related Posts:
- Exclude post ID from wp_query
- Can I force WP_Query to return no results?
- Use the page slug in a WP_Query?
- paginate_links() adds empty href to first page and previous link
- Using OR conditions in meta_query for query_posts argument
- Get array of posts from the current archive page loop
- Get posts by menu ID
- Last post ordered by publish date using WP_Query on front page
- Meta Query with date and time on the same Day before given time
- In loop: posts have thumbnail AND other variables
- How to grab metabox value in wp_query meta_query key
- Add and in the header while looping over custom query in page template
- Stop all SQL_CALC_FOUND_ROWS wordpress queries
- Single page theme
- Pagination not working on static page
- How can I create a WP_Query that returns posts where one meta_value
- ‘paged’ in wp_query doesn’t work
- Get posts from the Main site to sub site – WordPress MultiSites Network
- Custom Field Query – Meta Value is Array
- Multiple search queries on one page
- Filtering WP_Query result by category
- posts order by title second word
- Merged two WP_Queries, posts per page and pagination not working
- Why WP_Query::is_date() returns false when ‘date_query’ argument is set?
- Custom Post order for homepage
- Arrange BBpress topics by created
- Query all posts in a given taxonomy
- Warnings in nav-menu when visiting query pages [closed]
- Page navigation doesn’t show when query category
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- Sorting posts DESC based on the number of comments using WP_Query
- Create unique page without header.php for json feed
- $wpdb select date range of posts
- get_posts() not working with multiple statuses
- Unexpected end of file
- WP_Query To call data from diffrent tables
- Performance when getting post meta for post retrieved by meta value
- Clean up WordPress code that repeats
- Exclude an array
- WP_Query: “post_parent” and “post_type” combination returning strange results
- How to use the query hook/filter?
- Cutom wp_query for geolocation search, pagination not working
- Tax query AND/OR meta query [duplicate]
- WP_query return more results than SQL query. post_count > found_posts
- How do I exclude the lowest level terms in a taxonomy?
- WP_Query (list) posts according to author’s custom field
- Need to convert string of term ids into comma separated integers for use in an arguments array
- How can I allow sticky posts but cap the query to 1 post?
- How do I get my custom query to work with search results after the first page?
- Need Sub-category with main Category
- Easy way to write complex queries in wordpress
- Error with function in functions.php?
- I am having problem sorting custom post type using WP_Query
- WP_Query and is_page_template() conditional
- difference between querying database and using the loop
- How to do logical OR in terms in WP Query?
- Slow Query On Search
- Loop posts based on permalink term
- Custom query filter by ACF date custom field
- Child pages not affected by orderby
- Write WP Query that selects posts that are part of the same two categories
- Error in meta_query not get result
- Sorting posts by Multiple custom fields in defined order
- Custom wp_query – I’m getting ‘all’ post, not the specific post in the query
- Phpmyadmin – post editing
- wp Query Posts to display in Nivo Slider
- Query not sorting DESC
- Prioritising and Ordering Posts By Category Name Using A Custom Loop
- Filter products on category AND tag
- meta_query – check for multiple meta values in key which holds an array of values
- How to sort wordpress posts already selected by WP_QUERY
- Searching for a specific month in a metadata saved as Timestamp (Wp_Query)
- Doing $wpdb->get_results returns NULL, doing the same query in my DB returns correct value
- SEARCH QUERY PLEASE HELP | call_user_func_array() expects parameter 1 to be a valid callback php
- WP_Query on custom key and value
- Set “editor” role to existing user
- how to get wp_query posts only first letter of alphabet A?
- How to mix two orderby-parameters into one ordered result
- Custom Post Type WP_Query with filters and search
- Merge wp-query and get_users
- WP_Query how to add a thumbnail to the first post from the last 5 posts?
- How order by works?
- Query by meta value (add a dropdown of all values)
- WP Query issue for multiple values
- Calling a function with WP_Query only ever brings the first result
- get last child post by wp_query
- WP_Query don’t working with fixed post_id and term_taxonomy
- How To Query All Attachment Images Found In Post Galleries
- WordPress meta_query not working
- Create multiple sections for all categories and then queries all the posts for each of those categories
- Using orderby with 2 meta keys
- $wp_query when new WP_Query
- Query to get all the posts of more than 2 meta_value having same meta_key?
- Unable to pass variable
- WP Query get posts by specific author IDs if one of several logged in authors
- Query specific number of posts for each post type in specific order
- Edit WordPress loop, taxonomies, & filter
- WordPress website links redirect to homepage
- How to display posts from a specific term first then another posts from another terms using tax_query
- Why am I getting no results of a query placed after another query?