Support

Account

Home › Forums › ACF PRO › Taxonomy field return used in post query › Reply To: Taxonomy field return used in post query

  • A term object is returned and $cat->ID has no value. This should be causing an error.

    I don’t know why your calling esc_html

    
    $cat_id = $cat->term_id;