Ah, that just makes the site have a critical error. I copied that solution from my ‘product tag archive’ pages – it works on there and displays a custom image field. I’m assuming this is because I’m not on an actual archive page, as the code in question is from a flexible content block that will be used on multiple pages.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users