Home › Forums › General Issues › Query relationship fields based on added date › Reply To: Query relationship fields based on added date
Do you mean the post date of the Person that is added in the relationship, yes and no.
The problem is that the this post date is not part of the post where the relationship is. What you need to do is to get the post IDs only of for the related field and then run a query using this list of post IDs in the “post__in” argument of the query combined with a post_date query.
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.