Home › Forums › Add-ons › Repeater Field › Repeater field returns string › Reply To: Repeater field returns string
Here’s another recent topic, http://support.advancedcustomfields.com/forums/topic/acf-pro-options-pages-with-repeaters-not-working/, but I do remember others that use genesis having this problem.
But this is usually a problem when people try to use get_field to return then entire array and not something that is usually a problem when using the acf have_rows and while loop, so this is a little confusing and I’m not sure that it’s the same issue or that my first post is right
It should work no matter what is in $post_object (object or ID) but you could try
if( $post_object ):
if( have_rows('project_images', $post_object->ID) ):
while ( have_rows('project_images', $post_object->ID) ) : the_row();
the_sub_field('project_image');
endwhile;
endif;
endif;
The only other thing I see to ask about is what it the ‘project_image’ sub field set to return, an image array, ID or URL?
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.