Forums › Forums › Search & Filter Pro › Ordering by ACF date field not working
Tagged: ACF Field, date, meta value, ordering
- This topic has 9 replies, 2 voices, and was last updated 4 years ago by Trevor.
-
Anonymous(Private) November 9, 2020 at 3:25 pm #265670
Hey people, me again.
An earlier project’s back on track, with some modifications asked by the client. There’s a list of CPT which is possible to filter by taxonomies and it now should be ordered by an ACF date field.
I’ve set the order to be meta_value, ascending, and marked the field as a date field. What am I missing here? 🤔
Some things I think that could affect this: date is set to dd/mm/yyyy and the field (data-encerramento) is inside a group (encerramento)
Thank you!
Anonymous(Private) November 12, 2020 at 2:45 pm #266203Ok, with final content all items will have the final date field filled, I’ll insert random dates to test this then.
Do you believe this would solve this issue? I’ll test this later and return.
Can you please try to login again with the same credentials?
Trevor(Private) November 12, 2020 at 4:05 pm #266219At least one post has an incorrectly formatted date, as you can see here:
https://www.screencast.com/t/b4i9omO8lr1S
I do not know which one.
You might also try sorting as a number.
Trevor(Private) November 16, 2020 at 3:37 pm #266579Ah. Go to the field in the form. If the field is not in the form, add a Post Meta to the form (temporarily, no need to save). Select the Choice option at the top, then select the date field’s meta key name. You will see an option below to select field values Automatically or Manually, set it to Manual. Then hit the browse button to see all the values that our plugin finds for that key in the database. Unfortunately, it does not tell you which posts have which values, or how many posts have each value.
-
AuthorPosts