The code I gave you was to put in your template file. The template file would located on your site in the theme folder for your theme. In order to use the code you must edit the file.
From what it looks like you put the code into the “Content” WYSIWYG editor for the page. PHP code cannot be edited there. This is why I gave you the link to the shortcode documentation for ACF.
At this point I can’t help you because I don’t understand what it is you’re trying to accomplish or where you’re trying to accomplish it. You’ll need to provide more information with a few more details.
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!
© 2022 Advanced Custom Fields.