Home Forums ACF PRO Custom field does not shown on taxonomy loop


Custom field does not shown on taxonomy loop

  • 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.

    				$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;">
                             <a href="<?php echo $term->slug;?>"><h1 class=""><?php echo $term->name;?></h1></a>
                    <?php endforeach; ?>
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.