Home › Forums › ACF PRO › WYSIWYG Widgets/Widget Blocks With ACF PRO › Reply To: WYSIWYG Widgets/Widget Blocks With ACF PRO
Based on the screenshot, the Location Rule is “Post Type = wysiwyg-widget”.
Widget Block ID = 691
Custom Field Group ID = 687
So with that, the code should look like this:
<?php if( the_field('Industries Widget Blocks', 687) ): ?>
<div class="industries group">
<?php
// vars
$rows = get_field('repeater', 691);
$pagelink = get_sub_field('page_link', 691);
$image = get_sub_field('image', 691);
$title = get_sub_field('title', 691);
?>
<?php if( have_rows('repeater', 691) ): ?>
<?php while( have_rows('repeater', 691) ): 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-->
With that being said, I still cannot get the content to post. I have requested assistance from the plugin developer for further information.
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.