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
- Custom taxonomy.php not working
- Array as ‘key’ in WP_Query
- How to remove the most recent post from $the_query
- different for loop if screen resolution < 1000px
- WP_Query loop else statement not executing
- Change query from cat id to slug or name?
- Modify Search Query if original Query gave no results
- Using Wp_Query without the loop?
- Is_single() conditional tag returns null in query
- How do I rewrite this loop as a new WP_Query style-loop?
- Transient api Caches confused
- Issue with front page navigation after upgrading to 3.4
- Include current post into loop
- wp_query to print posts if have X custom field value
- Custom WP_Query id
- Best choice for multiple loop in page?
- wp_query get data from advanced custom field in wordpress
- Why is WP_Query not displaying expected data?
- get_template_part causes 500 error
- WP Query – order posts by meta field first and then order the rest
- 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
- How to display the featured image for each post?
- How do I amend wp_query before it is run/executed?
- Assign custom parameter to each post in query
- How to provide meta_key array to wp_query?
- wp_query search not taking keywords with together for multiple words
- Wp_query with 2 meta keys and array of meta values
- Adding a html class based on post count
- Check for the main query from the template
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- Trying to retrieve random post, getting a page
- 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
- Posts in loop all show the same author when there are many authors
- Exclude recently updated post from custom WP_Query using multiple loops
- Get a list of posts by specific category
- get_posts output always same post
- WordPress Custom Search Form Displaying Unexpected Results
- Multiple Rows in a using wp_query
- How to use WP_Query() on single.php?
- Search Page Returns Nothing
- sort and display posts by custom field (wp-query and the loop))
- Can’t query by meta_key
- How to create custom query by keyword in post title?
- difference between querying database and using the loop
- If have posts a week old, display, else display a different loop
- WP_Query – Adding “offset” posts to the end of the loop
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Loop increase in while loop not working
- Create a loop on my pages with new “WP_Query”
- Get posts that do not have the same tags as current
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- posts archive page – closing WP_Query loop correctly [closed]
- Create a page template for “top rated posts” but show full content and not just a list
- has_excerpt() not working inside wp_query
- Redirect Search to Form When No Product Results Are Found
- How to properly use AND / OR in custom search
- wp_query is showing posts from other categories
- Daily drip of posts – based on user ‘startData’ – ordered oldest to newest
- How to add tax_query to $args with concatenation
- Should I reset $wp_query?
- Meta query compare for ID’s greater than specific ID
- Exclude a Woocommerce product from WP_Query
- How to avoid bypass of search bar rules?
- Hide products in uncategorized category from search results
- WP_QUERY with group by with custom fields