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!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.