Thi is how I solved it:
<div class="dest-box">
<div class="rk-row">
<?php
$counter=1;
$terms = get_terms( 'region' );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
echo '<div">';
foreach ( $terms as $term ) {
if ($term->parent > 0) { continue; }
$term_link = get_term_link( $term );
$image = get_field('region_image', $term->taxonomy . '_' . $term->term_id);
$size = 'homepage-thumb';
$thumb = $image['sizes'][ $size ];
$width = $image['sizes'][ $size . '-width' ];
$height = $image['sizes'][ $size . '-height' ];
echo '<div class="col-md-6">';
echo '<div class="destination-loop">';
echo '<img src="' . $thumb . '"/>';
echo '<h3><a href="' . esc_url( $term_link ) . '">' . $term->name . '</a></h3>';
echo '<p>' . $term->description . '</p>';
echo '</div></div>';
if ($counter == 2) {
echo '<div class="clearfix"></div></div><div class="rk-row">';
$counter=0;
}
$counter++;
}
}
?>
<div class="clearfix">
</div></div>
</div>
Thanks very much mate !
Actually I got it working now 🙂
Thanks man !
Hmm
Looks nice but it doesnt work for me at all..
Im using ACF Pro.
Can some one give me a hint please.
Thanks