Ah okay. Yeah I didn’t test the code live so it’s possible some small error in my writing is causing this. You’re getting an fatal error so something is wrong with the syntax rather than the way the code works.
Please activate wp_debug and check your errors and you should be able to find the error easily.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users