try changing 'orderby' => 'meta_value_num' to 'orderby' => 'meta_value meta_value_num'
Related Posts:
- Use REGEXP in WP_Query meta_query key
- Display products from specific category in shop page
- Getting attachments by meta value
- Query Custom Meta Value with Increment
- What is an efficient way to query based on post_meta?
- WP_Query not working as expected for attachments and custom meta_query
- How can I create a WP_Query that returns posts where one meta_value
- WordPress altering my custom query, How to fix it?
- WP Meta Query for some meta (array) values
- Exclude post on loop by multiple meta key value
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Order posts by meta value and Date
- Query sticky posts with thumbnails
- Get meta info related to current post
- WP_Query on custom field and order results
- How to make Meta Query case sensitive?
- Performance when getting post meta for post retrieved by meta value
- Get attachment by meta_key value
- Any number in meta key (wp query)
- Fetch Record based on meta key dates
- how to make members list directory through wordpress post custom meta key.
- Large AND OR query timing out
- New WP_Query loop in admin causes problems
- Array as ‘key’ in WP_Query
- Filter posts by comparing custom meta value against postdate
- How to provide meta_key array to wp_query?
- Wp_query with 2 meta keys and array of meta values
- Meta query compare for ID’s greater than specific ID
- Nested array issue in meta_query
- Filtering by multiple conditions in the loop
- Query posts by searching for a string in a meta field
- WP_Query meta compare must include ALL array values
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- WP_Query not returning correct result with meta_query parameter
- How do i create a custom post query when the meta value is an array?
- wp query to use both author id and meta_query
- Meta query ignores multiple values of the key
- Trouble with serialized metadata
- Why can my filter query SOME metadata but not other metadata?
- Query against multiple locations within single custom post type post
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- update_post_meta() not updating
- Meta Query if Values Don’t Exist
- Saving custom fields for WP_Query to retrieve
- Efficient way of querying for a “fallback” post?
- How to show all the associated posts with specific date of data metabox?
- WP Meta Query at depth 2
- WP_Query Posts by Metadata from Option Tree
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Return a single custom post from multiple meta queries
- loop through custom post types with meta data
- WP_Query by meta key not returning any posts
- How to only display posts whose meta_value field is not empty?
- WP Query Args – Title or Meta Value
- Query WooCommerce orders where meta data does not exist
- Query all posts where meta value is empty
- WP_Query min and max values
- Transient pagination not working properly
- query posts in functions.php and update a field
- Woocommerce custom loop to show all the products [closed]
- Meta-value query
- Why does the_content not work like others for a set post id?
- pre_get_posts filter meta_query without conflicting existing meta_query
- Minimising Database Queries when using Advanced Custom Fields
- Complex Orderby Parameters: How to query with multiple orderby parameters using meta_value_num?
- Query multiple meta values
- WordPress Loop and $post
- Excluding pages in WP_query using ACF
- reset to main loop doesnt work
- different for loop if screen resolution < 1000px
- sort and display posts by custom field (wp-query and the loop))
- 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
- Woocommerce: order posts by meta key
- query post by author gender
- Display all attached image of every post of custom post type and link to original post
- How do I add an item to the WP admin menu?
- Multiple meta query from array
- WP_Query with 4 post meta field arguments gives 500 internal server error
- Filter subpages in while loop from WP Query object
- Custom query does not find pages
- Custom meta_query order for Elementor based on post meta key [closed]
- What’s wrong with this meta query? (order by meta key, then title, doesn’t work)
- ElasticPress is (aparently) messing with my search filters
- display the children of the post using the current page as the main parent
- Display 3 levels of categories on page
- I can’t get post based on its postmeta value and key
- Display three sequential posts on each page load, without repeating previous
- Issue in If else condition [closed]
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Display First posts without the default featured image
- WP_Query with several meta_query-statements and order by meta_value
- Query posts by meta value and sort by another meta key
- Output ACF field dynamicaly within a taxonomy loop [closed]
- How do I split a large query with a semi-expensive function included into multiple smaller queries
- WP query with multiple custom meta not respecting orderby
- after refresh the id that shows correct in first time click, changes to 1
- Passing a variable containing a comma separated list of values in a meta-query