The above code is in my functions.php file. I wanted to get it working before separating out the JS into a separate file. I am a beginner in terms of my AJAX knowledge, so I am not sure I know how to to the $post suggestion you’ve made. Is there some support document for supplying post ID arguments in ACF function calls? Thank you for your help!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users