Support

Account

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

  • This worked very nicely, James. THANK YOU! I was struggling for a few days on this.

    Final code, with your modifications:

    <div class="industries group">
                <?php
                    // vars
                    $rows = get_field('repeater', 691);
    			?>
                 
                <?php if( have_rows('repeater', 691) ): ?> 
    
    				<?php while( have_rows('repeater', 691) ): the_row();
    					$pagelink = get_sub_field('page_link');
                        $image = get_sub_field('image');
                        $title = get_sub_field('title');
    				?>
            		
                       <div class="indus col-sm-3">
                          <p><a href="<?php echo $pagelink; ?>"><img style="max-width: 100%; height:auto" src="<?php echo $image; ?>" /><?php echo $title; ?></a></p>
                      </div>
    
                <?php endwhile; ?>
                       
                <?php endif; ?>
                
    </div><!--end container-->

    YOU GUYS ARE GREAT!