Home › Forums › General Issues › Query relationship fields based on added date › Reply To: Query relationship fields based on added date
You cannot. There is nothing stored about when a post is added to a relationship field.
It might be possible but you’d need to build some way of recording this information yourself. For example you could create an acf/save_post action that fires before ACF has saved new values (priority < 10). In this action you can compare the old value using get_field() with the new value looking in $_POST[‘acf’] and then somehow record when new values are added.
And you’d need to figure out how to store that value show that it can be queried, and I thinking about that I can’t come up with anything that could be stored in a single query-able field.
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.