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">
                    // 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>
                <?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.