Home › Forums › General Issues › ACF shortcodes not working in Full Site Editing templates › Reply To: ACF shortcodes not working in Full Site Editing templates
I don’t know much about the block editor or FSE, I do not use them.
That said.
ACF must be able to determine the post to get the value from. If you put the shortcode in a block then I’m pretty sure the block ID will be used, but not sure.
If this is not block related then the shortcode, like any call to ACF functions, must be inside “The Loop”. This is the main loop for posts while (have_posts)....
If where you are adding the shortcode is not in the loop then you must supply the post ID.
I do not know how you would do this in the editor you are using.
Perhaps someone that knows more about it will come along or you can try contacting ACF devs to see if they can give you any guidance.
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.