Home › Forums › ACF PRO › Repeater field and link list › Reply To: Repeater field and link list
Ok, I’m pretty stucked. I’ll explain one more time what I want to achieve.
I want to build a list of links in one line with a separator like this:
“Links: Link1 | Link2 | Link3 | LinkX…”
I have a repeater field called ti_links with three subfields url, linktext and linksprache.
For each link, I want to echo this:
<a href="$url">$linktext</a> ($linksprache)
I’ve built a new code snippet with the check have_rows and a while loop, but I’m to embarrassed to show it here. At least it doesn’t produce errors but simply prints the values, nothing else. What I don’t get is how to put the subfields into an array and implode it for the output with separator.
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.