orderby
should be meta_value_num
, or meta_value
, not the name of the key. See WP_Query orderby parameters.
Related Posts:
- Trying to perform complex custom field query with order by set to field value
- Order Posts by Closest Numeric Values
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Filter WP_Query for posts having a certain meta-value
- Can I query custom meta data through WP_Query
- Meta Query with AND & OR?
- Sorting posts by custom date fields (non standard date format)
- Sort posts by custom field numeric value using dropdown
- How do I search an array stored in a custom-field using WP_Query?
- How do I order by multiple custom fields using wp_query?
- Query meta field using between
- Is there a way to do multiple ordering on a multiple meta_query?
- 2 orderby in wp_query with 2 custom fields
- Order by custom field date with ASC order
- Order posts by date and then by custom field
- How to get a meta value from all post
- Revolution Slider Orderby Two Custom Fields
- Compare meta_query decimals not working right
- Order Custom post type loop by custom field (datepicker)
- Sorting within nested queries / multiple meta keys
- Ordering posts by anniversary using only day and month
- Order by Custom Field date not recognized
- Comments form custom fields order
- WP_Query multiple use of relation and/or
- If value present, order posts by two consecutive custom fields
- Query Problem – Show posts within category ‘x’ that have a custom field between ‘y’ and ‘z’
- Using OR in WP_Query negates the “NOT EXISTS” compare
- WP_query : meta_key with custom rule for specific value
- How can I combine meta_query queries?
- How to filter a dd/mm/yyyy date from a custom field in a query
- Difference between ‘LIKE’ and ‘IN’ in meta queries
- Compare WP Custom Field date
- Order by value in serialized custom field
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- Order Posts by meta value AND published date
- Sorting posts by custom fields in meta_query
- Adding Custom Fields to Search
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- Any way to include custom fields in WP_Query results?
- WP Query Returning All Posts
- How do I use wp_query for WordPress search?
- Meta query with timestamp using WP_query
- Conditional custom field query
- Order query by meta_value with multiple custom fields
- Auto Populate Custom Field with Complex Value That Increase by One?
- How can I sort posts by the date and a custom meta field?
- Order by empty custom field
- Order Custom Post Type by Custom Field Value
- Alter main archive, to show posts with meta as last
- meta_value_num not ordering all items
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Custom WP_Query for WordPress Search Results with meta_query
- Change order of posts
- Meta Query And/Or
- How to combine custom fields to make one order-able value
- Meta query with multiple custom fields for archives page ordering problem
- Ordering posts by custom field named “date” in backend
- query posts custom field calculation value
- WP Query – Is this correct?
- Passing meta_box string to post__in?
- Using abs() with custom field in orderby statement
- ORDER BY custom field value out of where clause
- meta_value and meta_key filtering returning no posts [closed]
- Select custom posts by meta_value and sort by a different meta value
- Can’t query by meta_key
- Adding custom field and querying from post table
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Sortable Custom Columns not sorting correct
- Sorting posts by Multiple custom fields in defined order
- Meta query relation ‘OR’ not working as expected
- The best way to collision check in WP
- Order custom fields alphabetically
- Custom Query Fields – Altering Meta Value
- How to query for posts with either one or another custom field
- Multiple Custom Field Query
- How to update custom field of a posts in a particular category
- Problem with writting correctly a query posts args in WordPress
- How to query posts by month based on date custom field?
- How can I modify my meta_query to work with prices that are stored in the database that contain dollar signs and commas?
- Ordering by ACF custom field vaule
- Sort by an ACF field in a tax_query
- WordPress Admin – Automatically Sort Custom Posts by Custom Field Date Value in d-m-Y Fomat
- Order 2 meta_queries differently in WP_Query?
- (woocommerce) How to get product id form order id & then retrieve custom meta linked to product?
- How to properly get popular Posts by multiple Values
- Order Custom Field by Price
- $args Orderby The number
- query_posts with sorting on a custom datestamp
- Order a query by meta_value and then by post_date
- WP Query multiple select form – meta_query help
- How to Order Posts by Custom Fields?
- Order by custom field in query multiple
- WP_Query based on multiple metadata comparisons
- 404 on Pages for Custom Post Type & Query_Posts
- Display posts where date field matches current month?
- Show posts containing or not custom field
- Display agents (custom post type) alphabetically, except one who always shows last
- Can’t sort custom column on user.php by number / meta_value_num?
- Query posts by Custom Meta (checkbox) & Genesis Grid Loop
- WP_Query sort by ACF date field (newest first) with blank dates first