Home › Forums › Bug Reports › Javascript API returning NULL › Reply To: Javascript API returning NULL
Hi John,
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
that’s all handled in javascript.
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!
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.