Support

Account

Home Forums ACF PRO Get values from Taxonomy terms on archive.php page = NULL Reply To: Get values from Taxonomy terms on archive.php page = NULL

  • OK that makes some sense.

    So if I have it set to return the ID, how do I then get the term, currently it outputs the ID number via the echo, so presumably I’d need something like:

    echo $job_title->term_id;

    But then I’m back to using this block:

    $queried_object = get_queried_object(); 
    $taxonomy = $queried_object->taxonomy;
    $term_id = $queried_object->term_id;  

    Which produces the errors.