Home › Forums › General Issues › Remove the comma (,) in the line break. › Reply To: Remove the comma (,) in the line break.
I’d say, in each iteration of the foreach loop, do a str_replace where you replace the comma with an empty string before you echo it:
$tag = str_replace(',','',$tag);
And as a side note: even though I don’t know the rest of your HTML, I doubt that h6 is the semantically correct element to use. It would probably be better to use a div instead; to make it look as you like you should style it with CSS.
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.