Hi, I have a repeater set up on a page ID of 98 and am trying to pull that data over to my homepage template via the following code:
The ID works for a standard the_field query, but for some reason it’s not pulling in the repeater data. Any thoughts? All help appreciated!
<?php<br />if( get_field('event-data, 98') ): ?>
<?php while( has_sub_field('event-data, 98') ): ?>
<?php the_sub_field('event-title, 98'); ?>
<?php the_sub_field('event-date, 98'); ?>
<?php the_sub_field('event-time, 98'); ?>
<?php the_sub_field('event-description, 98'); ?>
<?php endwhile; ?>
<?php endif;?>
The ID works for a standard the_field query, but for some reason it’s not pulling in the repeater data. Any thoughts? All help appreciated!