Support

Account

Home Forums ACF PRO How do I add separators to a Relationship field list?

Helping

How do I add separators to a Relationship field list?

  • Hi.

    I want to display an inline list of elements that come from a relationship field. The relationship field is linked to my WP posts. I want to add separators between each element, but not at the end. Any ideas on how to do this?

    Thanks!

  • Without more information I can’t give you much detail. But to do this you use implode() https://www.php.net/manual/en/function.implode.php

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.