Home › Forums › Add-ons › Repeater Field › Trying to retrieve page objects in repeater › Reply To: Trying to retrieve page objects in repeater
I was just about to set this up to test because I didn’t see anything wrong with it when I noticed the problem when I looked back at your code to get the name of the sub field I needed to set up.
This $post_objects = the_sub_field('choose_pages');
Should be this $post_objects = get_sub_field('choose_pages');
I must have looked at the code 5 time trying to figure out what ACF was generating at error without seeing it.
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.