Home › Forums › General Issues › Sorting woocommerce products by ACF Date Picker field › Reply To: Sorting woocommerce products by ACF Date Picker field
I would I suggest you fix it? I haven’t got an answer. WP_Query cannot be used to sort these values in any meaningful way. I suspect that this is one of the reasons the save format setting was removed from later versions of ACF.
You can still use the return format in ACF, as long as you are using get_field() to get these values in your functions then those functions should not be affected by what is stored in the database.
I’ve started to type suggestions several times and deleted them. I can’t even come up with a valid plan for replacing all the fields in the DB. In the end I would likely create a new field, manually update every product and then re-code the site to use the new field. This would be a big job.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.