This is in a JS file thats being enqueued in the themes functions.php
It’s probably easier to tell you what i’m trying to achieve.
I have a page that loads a custom post type called projects in a isotope.js grid.
I’ve got some filtering going on using a URL hash. EG. /projects/#tag=green or /projects/#network=bbc
When a tag is loaded i want to be able to pull a title & an acf field from the taxonomy term of the tag “green” and update a classes innerhtml with the loaded data.
As far as i’m aware php can’t access the hash and java is the way to do it.
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!