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.