Support

Account

Home Forums ACF PRO Repeater field and link list Reply To: Repeater field and link list

  • This is what I was looking for, found the corresponding snippet after long google sessions:

    	<?php
    	$linklist = array();
    	$links = get_field('ti_links');
    	if($links) {
    		foreach($links as $link) {
    			$linklist[] = '<a href="' . $link['url'] . '">' . $link['linktext'] . '</a>' . ' (' . $link['linksprache'] . ')';
    		}
    		echo implode(" | ", $linklist);
    	}
    	 ?>

    I just didn’t know how to apply the implode, that was all. Still not sure why this magic works, but it works.