'meta_key' => 'clpr_topcoupon',
'orderby' => 'meta_value_num',
'order' => 'DESC'
You can solve the problem by using order by clause then there will no need to write meta query. Please use the above code to solve your problem.It will show the posts according to descending order of the value in meta key.
Related Posts:
- How to check a single number value against an array of meta_key values?
- meta_query key value from array
- last_name + first_name orderby with meta_query [solved]
- meta_query compare “=“ returns nothing when it seems it should
- WordPress meta query with meta serialized data array value
- Reading Content in an Array as it relates to a meta_query
- Trouble with calling an imploded variable in an array
- meta_query for user ID in array
- How to do a meta query using REST-API in WordPress 4.7+?
- Meta query terribly slow
- meta_query sorting by 2 keys
- Get result from meta_query() between two numbers
- How to handle optional end date in compare clause in meta_query
- Can I query custom meta data through WP_Query
- Using meta_query on pre_get_posts to exclude a particular meta_key value
- Query between two meta keys
- Archives for custom post type based on a “date” meta value
- How to query serialized array by comparing greater than (>=)?
- get_users meta_query
- Meta query with multiple logic (AND / OR)
- Best practice – Meta Query vs. post_clauses for “left join” ordering
- meta_query with multiple values
- Different page parameters inside query
- Return posts with specific meta key first, but the rest in alpha order by last name
- How to update single value in multi dimensional Post Meta?
- LIKE %…% Meta Query
- Multiple Values stored as array in Meta Query
- Order by nested named meta queries with ‘exists’ and ‘not exists’
- Documentation for post meta
- Advanced orderby with multiple meta_query
- Arrange Posts By Date In Order Of Closest To The Current Date
- Using get_terms() with meta_query parameters
- WP_User_Query with meta_query array relation ‘OR’
- WP Meta Query for some meta (array) values
- meta_query with array as value
- meta_query problem
- Custom Upcoming Events List for Events Manager Plugin
- Very slow query with meta_query on large database
- How to use meta_query to check if a meta field has something set?
- How to exlude posts that have certain meta_value?
- User Relationship
- meta_query results not the same with and without spaces
- Can an array be used as a meta_query value?
- meta_query all posts between to ages
- How to make a WP REST API query with meta_query in WP4.7?
- List of posts by day of the week
- WordPress Core – Optimizing meta_query generated SQL?
- Edit post_content on posts with Featured Image
- Nested Queries using meta_query
- Display no post when metavalue is 0
- Use both meta query and tax query
- Wildcard with LIKE operator in Meta query
- meta_query, number comparison, not quite working as it should
- Meta Query Compare with Date
- Query posts only if meta_value is not empty
- Does meta_query working with value paramater higher then 999?
- meta_query keys and sticky posts
- How to pass user meta_key and meta_value (values as array)
- WP_Query ordered by meta_value_num doesn’t fetch posts without this meta field
- Adding an array from a query string to a WP meta_query
- Query Multiple values for same key
- Custom post type archive with rand and meta_value
- Comparing a field with several values at once with meta_query
- Meta query with a sub query group possible?
- meta_query compare=’!=’ with multiple custom fields
- Query posts with numeric meta values within a given range
- Meta query: get posts with value in a multidimensional array
- Fastest way to do meta query when I don’t need the actual posts, and just need post_id?
- meta_query not working on live site
- Display a CPT based on a metabox selection
- How to query post only with different excerpt?
- How do you get Posts by multiple meta_keys and meta_values with the Rest API V2?
- Query custom field with date
- Meta query with regular expression does not work
- Searching in title or meta, with a tax query too!
- WP_Query with meta_query no results
- Documentation for post meta
- meta_query issue with multiple numerics
- WP User Query Issues
- How to use meta query for greater than value in array?
- Wp Query custom search by meta query
- Pre Get Posts / Multiple Meta Keys / Orderby Single Key
- Filter posts by meta query?
- Help on multiple meta_query
- Meta query – How to display a null meta key
- pre_get_posts and set
- WordPress Screwing Up ‘orderby’ => ‘meta_value_num’ in ‘pre_get_posts’
- How to query wp_postmeta table for any specific meta_value?
- User meta query results in PHP notice: only variables should be passed by reference
- meta_query with multiple values optimization
- Meta query date column add [x] days to validate
- Grouping posts by a custom meta value
- Get a single post ID based on an exact match of 1 or more meta values
- How to use orderby with meta_query?
- wordpress Meta_query between numbers range (not working)
- meta_query with multiple key
- Orderby doesn’t work like expected on custom query
- I would like to have add_post_meta to return the ID instead of true or false
- Order by meta value
- Querying multiple values from a single key