Hi,
I was wondering if anyone could help please. I’m having massive issues getting an acf repeater to actually echo any content to screen.
The code I am using is below. The repeater control is inside a field group and the repeater field itself is called mail_services. The subfield is called mail_heading.
`<?php if(get_field(‘mail_services’)): ?>
<?php while(has_sub_field(‘mail_services’)): ?>
<?php $heading = get_sub_field(‘mail_heading’);
echo $heading; ?>
<?php endwhile; ?>
<?php endif; ?>
I have also tried the following code: –
<?php if( have_rows(‘mail_services’) ): ?>
<?php endif; ?>