Hi, I have created a Taxonomy named ‘marked_category’ , Then with market category I added a custom field to add an image and some repeater text field. but when I loop through only first taxonomy shows the image rest of the taxonomy don’t show the image, even not the repeater text field. Can anyone help me?
Here below I add all of my code.
<?php
$terms = get_terms( 'market_category', array(
'hide_empty' => false,
)
);
?>
<?php foreach( $terms as $term ) : ?>
<div class="single-market-image">
<img src="<?php echo $image = get_field('market_category_image', $term);?>" alt="" style="width:500px;height:300px;">
</div>
<a href="<?php echo $term->slug;?>"><h1 class=""><?php echo $term->name;?></h1></a>
<?php endforeach; ?>
</div>