Home › Forums › Feature Requests › Parent post or page › Reply To: Parent post or page
Hi @cyberwani
If you are using the relationship field, you will be happy to know there is a WP filter available to modify the query args.
You could use the current $post_ID parameter to modify the question to only load posts which have a parent of $post_ID
The filter is documented here:
http://www.advancedcustomfields.com/resources/filters/acf-fields-relationship-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.