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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.