Hi,
Just purchased a license for single site installation. I’m adding a repeater to a widget and am receiving the following PHP error:
Notice: Undefined variable: acfw in widget-sponsors.php on line 3
ACF Pro version 5.5.14
Wordpress version 4.8
Here is the source:
<?php
// check if the flexible content field has rows of data
if( have_rows('sponsor_list', $acfw) ):
// loop through the rows of data
while ( have_rows('sponsor_list', $acfw) ) : the_row();
// check current row layout
$logo = get_sub_field('sponsor_logo', $acfw);
?>
<ul>
<li class="slide"><img src="<?php echo $logo['image']; ?>" alt="<?php echo $logo['alt'] ;?>" /></li>
</ul>
<?php
endwhile;
else :
// no layouts found
endif;
?>
Assistance would be greatly appreciated. Thank you