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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.