Home › Forums › Add-ons › Repeater Field › Divide up content into child pages › Reply To: Divide up content into child pages
When you’re showing the page you will need to get that pages children.
https://codex.wordpress.org/Function_Reference/get_children
Then you’ll need to loop though those child pages in a secondary loop and show the fields from the child page.
ACF will only get fields from the current post id. If you know the ID values of each child page you can then get the field from the child page by including the pages id in the ACF function call.
$child_page_value = get_field('field_name', $child->ID);
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.