The same problem had been discussed earlier( For reference: Filter by one custom field, order by another? ). Hope this will solve your issue.
Related Posts:
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Sort by posts that have a featured image?
- Custom Query Fields – Altering Meta Value
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- WP_Query – Order results by meta value
- Orderby meta_value only returns posts that have existing meta_key
- ORDER BY custom field value
- 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 a query by custom field date
- Auto sort the wp-admin post list by a meta key
- 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?
- Archive sorting functions by custom fields (front-end)
- Trying to perform complex custom field query with order by set to field value
- Query meta field using between
- Order Posts by Closest Numeric Values
- Order by custom field date?
- Can serialized arrays in DB be matched against serialized arrays with meta_query?
- Sorting Posts by custom field
- How to get a meta value from all post
- WP_Query multiple use of relation and/or
- Query Problem – Show posts within category ‘x’ that have a custom field between ‘y’ and ‘z’
- How can I sort get_users() by any value (last_name, user defined fields and more)
- 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?
- Is it possible to order posts by two meta values?
- How to filter a dd/mm/yyyy date from a custom field in a query
- Using WP Query to search by multiple meta fields
- Difference between ‘LIKE’ and ‘IN’ in meta queries
- Sorting posts by multiple values, combined
- Compare WP Custom Field date
- WP_Query display next custom post from today’s date
- Order by value in serialized custom field
- $wp_query meta_key naming issue [closed]
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- Meta_query and numeric comparison [closed]
- 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?
- sort search results by custom fields using dropdown
- Multiple relationships in a query
- 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
- Sorting WordPress Posts via Custom Field Values?
- Auto Populate Custom Field with Complex Value That Increase by One?
- WP_Query order by custom field, then randomly order some of results
- Advanced search by two criteria – sort by location and date (ascending or descending)
- WordPress Comments sort by custom meta key
- Understanding the orderby in WP_Query?
- Change the sort order for posts to include custom field
- Sort custom post type by multiple custom fields
- Sort alphabetically by custom field
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Custom WP_Query for WordPress Search Results with meta_query
- Meta Query And/Or
- How to combine custom fields to make one order-able value
- WP Group posts by year(desc) > month(desc) > date(asc)
- Sort WP_Query with numeric custom field
- Passing meta_box string to post__in?
- ORDER BY custom field value out of where clause
- wordpress custom loop ascending descending posts by custom field
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- meta_value and meta_key filtering returning no posts [closed]
- Can’t query by meta_key
- Adding custom field and querying from post table
- Sort posts by clicks on download button
- How to use a dropdown to filter posts by custom field
- Meta query relation ‘OR’ not working as expected
- The best way to collision check in WP
- How To Show Get Adjacent Posts If Posts Are Sorted By Custom Field
- WP_query multiple custom fields not working
- Listing the most popular 8 city (custom fields) as used in posts
- How to sort by custom field value?
- Multiple Custom Field Query
- How to order posts by number of Vimeo Likes
- How to update custom field of a posts in a particular category
- Compare ACF date field (if exists) and post date and order DESC
- Order 2 meta_queries differently in WP_Query?
- Sort posts on custom field AND after that sort on date?
- sorting in wp query based on custom field value
- Wrap group of wp query posts to parent div by date/year
- Sorting posts by meta values: 2 different orders
- Sort custom fields in admin by last field added
- query_posts with sorting on a custom datestamp
- WP Query multiple select form – meta_query help
- How to Order Posts by Custom Fields?
- Complex WP_Query Using Post Date And Post Meta
- Show posts containing or not custom field
- list pages by 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?
- Order by a meta field in query loop
- WP_Query – order with usort by custom meta
- Sort CPT by taxonomy AND THEN by custom field