Hello,
I am new to ACF. I was looking into the documentation and on google but i wasn’t able to find the answer on my question.
I would like to filter in the relationship field on the child pages of the current page. So I can select one child page of the current page. Is there a possibility to add some kind of filter to the relationship field by using some php code in the functions.php?
Thanks for your support and your answer.
Regards,
Jan Willem
Hi @janwbouma
you can use the filter here to modify the $args used to display relationship field results. http://www.advancedcustomfields.com/resources/filters/acf-fields-relationship-query/
you can add in a parent argument (please read the WP_Query docs before hand)
Thanks
E