I don’t think ACF has a built-in function to do what you want. You can use get_field to retrieve a value from any post, but it requires a post ID if you want the value from anything other than the current post.
So instead, we can query posts using WP_Query and pass the meta key of our custom field.
Here is an example.
$args = array(
'post_type' => 'page', // Add your post type here
'meta_key' => 'test_repeater' // Add your repeater name here
);
$the_query = new WP_Query($args);
if ($the_query->have_posts()):
while ($the_query->have_posts()) : $the_query->the_post();
if(have_rows('test_repeater')): // Add your repeater here
while (have_rows('test_repeater')) : the_row(); // Add your repeater here
// display your sub fields
the_sub_field('sub_field_one');
the_sub_field('sub_field_two');
endwhile;
else :
// no rows found
endif;
endwhile;
endif;
I added the above code to a page template, it will spit out the values of my test_repeater
for any page
that has those custom fields filled out.
Tested and works.