thanks for your help. Your code is still giving me a bug. At the end the closing ?> is missing. I added it, then the output will be done. But now all entries are output without commas and not only the last one.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users