Hi,
I try to use a repeater field outside the loop in portfolio.php of enfold theme.
I’m using
// check if the repeater field has rows of data
if( have_rows('prods', $id) ):
// loop through the rows of data
while ( have_rows('prods', $id) ) : the_row();
// display a sub field value
$output .= the_sub_field('prod_name');
endwhile;
else :
$output .= "no rows found";
endif;
but I get no results.
Anyone has tried with this?
Kind regards
M