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-->
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?
— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 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.