There are similar posts on this site about the same topic, if you look around. But here is your answer: To make this work you need to change your date format.
You can sort alphabetically, or numerically, not calender-merically. The only human date format that orders correctly is YYYY/MM/DD
. The separator are optional and shouldn’t matter. Your format is never going to sort the way you want.
Alternately, you could store your dates in Unix time format and convert them to ‘human’ when you display them, which is what I’d do.
You could also write your own function to sort things but you will need to query and then sort, which is extra overhead.
Related Posts:
- Sort custom post type by multiple custom fields
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Where are custom field values stored in the database
- Orderby meta_value only returns posts that have existing meta_key
- ORDER BY custom field value
- Advanced Custom Fields – Get custom fields from parent page
- Add custom field to the archive page?
- Matching Serialized Arrays with meta_query
- How to position a custom field before the editor
- Auto sort the wp-admin post list by a meta key
- Display post_object content using Advanced Custom Fields plugin
- Remove old custom field after import
- Unable to get Preview of Uploaded image within a Custom Meta box
- Date, Time, and Timezones
- get_pages sort alphabetically by meta value
- Retrieve custom fields on Categories, using WP-API
- Archive sorting functions by custom fields (front-end)
- How to sort a table of custom posts by column containing custom field
- Order by custom field date with ASC order
- Change content before writing to database
- Order Custom post type loop by custom field (datepicker)
- Ordering posts by anniversary using only day and month
- Using Custom Function With Advanced Custom Fields
- Localized Date Format for Custom Field
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- Problem with adding exta field in metabox in custom post type
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Copying Custom Meta Values from existing post to a duplicate post
- How can I query on the year part of a complete date in a custom field?
- Calculate the sum of certain the_sub_fields
- Is it possible to order posts by two meta values?
- Displaying posts with only upcoming dates according their custom field date value
- Displaying Custom Fields on Post with Genesis Child Theme
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Login & Register & Custom details WITHOUT plugin
- Sorting posts by multiple values, combined
- Send Multiple Custom Field Values Through the URL
- Sort by posts that have a featured image?
- ACF won’t load from a custom JSON location
- Custom column sorting in WordPress admin post table
- Show ACF fields only on certain page in the backend
- Update posts after populating ACF field value [closed]
- How can I pass a variable set by ACF to header.php?
- sort search results by custom fields using dropdown
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- Sorting posts ordered by custom field value
- Sorting WordPress Posts via Custom Field Values?
- ACF: How to get the full field name (meta_key) by a field key?
- Dynamically fill a post custom field with post publish date
- How can I store a file in the database in the same way WordPress and ACF do?
- Will loading too many ACF Fields cause slow down?
- Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date
- WP_User_Query pulling ACF to loop
- Calling the “wp-link-wrap” pop-up modal
- Print custom field in Query Loop block
- How to add Advenced Custom Fields In Single Post
- How to schedule a custom field value update?
- WP_Query order by custom field, then randomly order some of results
- Order RSS content by an advanced custom field value
- Add new image block, set default class name and update it using Javascript
- Advanced search by two criteria – sort by location and date (ascending or descending)
- Get an advanced custom field after post publish
- How to create a dropdown select of all items in an ACF field group
- Advanced Custom Fields dynamic update_field
- WooCommerce – Adding Custom Fields To Invoice
- Change the sort order for posts to include custom field
- Sort alphabetically by custom field
- Trying to sort and display categories(not posts) by custom field: ‘order’
- WP Group posts by year(desc) > month(desc) > date(asc)
- Ordering posts by custom field named “date” in backend
- Sort WP_Query with numeric custom field
- Vimeo thumbnails
- Advanced Custom Fields WYSIWYG More tag
- Walker class for sub-menu with ACF fields
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- ORDER BY custom field value out of where clause
- Get all the posts where meta field with multiple choice has several values checked
- wordpress custom loop ascending descending posts by custom field
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- Custom fields issue [closed]
- Querying posts by latitude and longitude to build a Google Maps with several markers
- Select custom posts by meta_value and sort by a different meta value
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- Get users based on month ACF datepicker field
- Sort custom post type by most current date picker
- How to copy data from a custom field to the post_content?
- WordPress creates new lines in postmeta table on post update
- change order of images attached to post
- Sort posts by clicks on download button
- ul list with only as many li’s as filled custom fields
- Retrive Image URL of Custom Fields in Theme
- Display custom field from the front page on another page
- Convert all dates stored in custom field
- How to Pass values to Custom Field through PHP in WordPress Posts?
- Let Users Filter Posts by Custom Fields
- Filter posts by custom field (Advanced Custom Fields)
- Advanced Custom fields not available yet during publish_page action
- How can I output the custom fields wrapping with HTML