• Resolved mpmchugh

    (@mpmchugh)


    Does this version work with the repeater field in ACF PRO v5x?

    I can’t seem to retrieve the Link Picker Field values when used in a Repeater field.

    Does anyone have a front-end code example of how the values are pulled into a template?

    Just trying to create a simple ol list of related links.

    Thanks,
    Michael

    https://ww.wp.xz.cn/plugins/acf-link-picker-field/

Viewing 1 replies (of 1 total)
  • Thread Starter mpmchugh

    (@mpmchugh)

    Figured it out. This worked just fine:

    <ol>
    <?php
    
    if( have_rows('related-links') ):
        while ( have_rows('related-links') ) : the_row();
    		$rltdlink = get_sub_field('link'); ?>
            <li><span><?php the_sub_field('link-description'); ?> <a href="<?php echo $rltdlink['url']; ?>" target="<?php echo $rltdlink['target']; ?>"><?php echo $rltdlink['title']; ?></a></span></li>
    <?php    endwhile;
    else :
        // no rows found
    endif;
    ?></ol>
Viewing 1 replies (of 1 total)

The topic ‘Repeater field example?’ is closed to new replies.