ACF – How to get custom taxonomy term image field

I found a solution for this:

<?php
    $current_term_id = get_queried_object_id();
    $taxonomyName = "car-brand";
    $parent_tax_ID = $current_term_id;
    $parent_tax = get_term($parent_tax_ID);
    $terms = get_terms( $taxonomyName, array( 'parent' => $parent_tax_ID, 'orderby' => 'slug', 'hide_empty' => false ) );
    foreach ( $terms as $term ) {
      $image2 = get_field('am-brand-img', $term);
        echo '
        <div class="am-ts-item">
          <a href="' . get_term_link( $term ) . '">
              <div class="am-ts-img">
              <img src="'.$image2['url'].'" alt="'.$image2['alt'].'" />
                  <span>2004 - 2007</span>
              </div>
              <div class="am-ts-info">
                  <h2>' . $term->name . '</h2>
              </div>
          </a>
        </div>
        ';
    }
?>

deneme bonusudeneme bonusu veren sitelerpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casino