Found the problem – i was using array, when i just needed to use such arguments:
$args = array(
'post_type'=> 'post',
'paged' => $paged,
'posts_per_page' => 9,
'meta_key' => 'summary',
'meta_value' => $thesearch,
'meta_compare' => 'LIKE'
);
Thanks for help guys.
Related Posts:
- Can I force WP_Query to return no results?
- Group posts by custom field
- Refine search results using WP_Query
- Search Posts with Custom Fields as query
- How to Filter Posts by Custom Fields?
- Custom Search Not Consistent with Results
- Orderby is working with one query but not with other
- Get a list of posts with associated meta_value
- Extend product search with meta in WooCommerce
- Order by empty custom field
- How to make search for posts using get method?
- Categorising search results based on Custom Fields
- Search posts missing a particular custom field
- How do I get my custom query to work with search results after the first page?
- Conditional operator OR not working with custom fields
- WP ForLoop to compare meta information of posts to determine what post to display
- Query only displays one page_id
- Search.php – return number of results but cannot loop through
- display ACF repater field in archive page
- Categories In English version showing not canonical URL, instead shows query search result
- Problem with my loops
- WP_Query a custom field value bringing back 0 results
- Loop through multiple custom fields with increasing number
- How do I display posts with specific value in a custom field into my loop?
- Custom Search Query – include only custom fields and title
- Help with showing text when something is entered in my search bar
- How to include custom fields in wordpress search
- Extend search query to search meta keys values based on search string
- Using a custom WP_Query with get_template_part loop
- Display posts the match taxonomy term linked from wp_list_categoies?
- Merging a complex query with post_rewind and splitting posts into two columns
- Pagination wont work with search results template [duplicate]
- Pagination Not working on Home Page with 2 Query
- meta_query not working properly
- Exclude post on loop by multiple meta key value
- Sort by meta key on archive page
- Custom Field sort not working (WP 3.8.1)
- Query sticky posts with thumbnails
- Show all parents and children in custom post type in right order
- Searching through different categories on different pages code is not working
- Ignore post by meta value in the main query
- WP_Query’s “request” SQL Query
- How to retrieve current page WP_Query arguments?
- is_search was called incorrectly
- How do I search inside specific taxonomies in WordPress
- How to limit WP_Query to one result on the loop?
- Complex date range with WP_Query and BETWEEN
- Random loop with code to prevent duplicate output returns no output at all from time to time
- How to loop for every result found in the_content() when using the search query?
- How to use offset in WP_Query
- showing all search result in one template
- WP_Query orderby modified to include custom meta changes
- Multiple Search Terms WP_Query
- Filtering posts from different categories into different section by doing WP_Query only once
- WP Query Args – Title or Taxonomy Value
- wordpress search word, “hello world” ===> ‘hello+world’ ===> ‘hello’, ‘world’
- Large AND OR query timing out
- using pre_get_posts for search results not found
- Custom taxonomy.php not working
- different for loop if screen resolution < 1000px
- sort and display posts by custom field (wp-query and the loop))
- Redirect Search to Form When No Product Results Are Found
- Issues with search after added meta_query
- Display posts with specific value first in query
- inserting content of 1 Post to in another with a template hierarchy
- get_posts custom field
- wp_query posts with custom fields number smaller than
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- Filtering by multiple conditions in the loop
- How to access $wp_query object from array of posts given by get_posts?
- Display all attached image of every post of custom post type and link to original post
- WordPress Queries Not Working?
- Filter subpages in while loop from WP Query object
- How to filter a static post page with ajax and $wp_query
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- Custom query does not find pages
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- $wp_query->found_posts not returning correct value
- How to search by slug and old slug in single API
- Pagination repeating posts on search results
- Filter admin ajax data by url query
- Related posts queries
- Query against multiple locations within single custom post type post
- WP_Query, ACF field and array
- How to debug none working search query?
- Order by Date Custom Field
- update_post_meta() not updating
- how to show more than 1 post into three columns query
- active link for most recent post on vertical tabs
- custom query – offset to pagination
- Order Custom Field by Price
- WP_Query to show post from a category OR custom field – Not 100% answered
- Order by multiple meta keys on wordpress
- wp_query pagination links producing 404
- Display First posts without the default featured image
- Can’t seem to get an else statement correct? [closed]
- Output ACF field dynamicaly within a taxonomy loop [closed]
- Why does WP_Query not search for two ‘meta_query’ keys separated with OR?
- How do I split a large query with a semi-expensive function included into multiple smaller queries
- Query All Posts: Either Display Most Recent or One with Particular ACF Value Chosen