Support

Account

Home Forums General Issues Get term ACF Image Field Reply To: Get term ACF Image Field

  • Thanks for the feedback @jarvis . When I Use this updated code:

    $terms = get_terms( 'molecules_of_the_month', $args );
    if ( ! empty( $terms )   ) :
        $termid = get_queried_object()->term_id;
        var_dump($termid);
        $summaryimage = get_field('summary_preview_image', 'tax_name_'.$termid);
        // print_r($summaryimage);
        $size = 'full'; // (thumbnail, medium, large, full or custom size)
        $count = count( $terms );
        $i = 0;
        $term_list = '<p class="molecule-of-the-month">';
        ?>

    does however not work … yet either. The var_dump shows me string(0) “”. So besides me not specifying the taxonomy (month here though acf group with field preview_image is attached to term month and year) something else is still needed I think.