Home › Forums › General Issues › orderby date picker field in get_terms › Reply To: orderby date picker field in get_terms
Scenario 1
If I’m understanding correctly, no, you cannot do this. You want to reorder the “terms” in a taxonomy based on a date edited when adding a “post”. You can’t order the terms according to something associated with the posts in those terms. To do this you would need to build something custom to somehow record the most recent date of all of the posts in a term and store that information in a way that is related to the term so that you can then use the date added to the term to order the terms.
Scenario 2
You already have most of this, you just need to add a meta_key and order by the meta key in your query. https://www.advancedcustomfields.com/resources/orde-posts-by-custom-fields/
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.