PHP7 is running on the server and the field is a repeater. I’m trying to get a count of the repeater items with $count = count( get_sub_field( 'testimonials_module' ) );. I’ve even tried this with get_the_ID() as the second param to force this but that did not work either. A dump of get_the_ID() is pulling the correct ID by the way.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users