Support

Account

Home Forums General Issues Get Field from Custom Post Typ Reply To: Get Field from Custom Post Typ

  • Assuming events is a taxonomy, you would need to get the term ID and use that in the get_field code.

    $term = get_queried_object()->term_id;
    $date_and_time = get_field('date_and_time', $term);

    Code untested