Support

Account

Home Forums ACF PRO WYSIWYG Widgets/Widget Blocks With ACF PRO Reply To: WYSIWYG Widgets/Widget Blocks With ACF PRO

  • Yes, well, that’s where I’m a tad confused. I’m using a repeater in a Widget Block and supplied images of what my Widget Block and Widget look like and the code at the bottom. Using the below code, nothing is posting.

    My code:

    <?php if( the_field('Industries', 691) ): ?>
    <div class="industries group">
                <?php
                    // vars
    				$rows = get_field('repeater');
                    $pagelink = get_sub_field('page_link');
                    $image = get_sub_field('image');
    				$title = get_sub_field('title');
            ?>
                 
                <?php if( have_rows('repeater') ): ?>
    
    	         <?php while( have_rows('repeater') ): the_row(); ?>
    		
    			       <div class="indus col-sm-3">
    				  	<p><a href="<?php $pagelink; ?>">
                        <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /><?php echo $title; ?></a></p>
                      </div>
    
                <?php endwhile; ?>
                       
        	    <?php endif; ?>
                
           		</div><!--end container-->
                 
    <?php endif; ?><!--end 'repeater' if-->