I hope I am not creating a thread that has been used before.
I have a site that has a homepage and a services page. The services page has ACF Field group called Services and a repeater field called Service. They display perfectly on the Services page however I want to also display them on the homepage.
I have tried doing
if( have_rows('service', 'services') ):
while( have_rows('service', 'services') ): the_row();
$service_title = get_sub_field('service_title');
$service_short_text = get_sub_field('service_short_text');
$service_graphic = get_sub_field('service_graphic');
$service_link = get_sub_field('service_link');
$service_display = get_sub_field('service_display');
// I output these variables in the loop here
// And others go below
Nothing shows up.
Any ideas? It is probably straight forward but am starting to feel stooopid here.