Quantcast
Channel: Tagged with repeater - Plugin Support
Viewing all articles
Browse latest Browse all 160

Displaying Repeater Information on a Different Page

$
0
0
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:


<?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!

Viewing all articles
Browse latest Browse all 160

Trending Articles