Support

Account

Home Forums General Issues want to display Category Image in loop Reply To: want to display Category Image in loop

  • Hi James, I saw this topic and I am facing the same issue as some others here. Maybe you can help me out too, here 😉

    I have the following code:

    <?php
    
                        foreach ( $terms as $term ) {
    
                       $image = get_field('berufe-thumb', $term->taxonomy . '_' . $term->term_id );
                        echo '<pre>';
    
                        echo "Image field value:";
                        var_dump($image);
    
                        echo '</pre>';
                         
    
                ?>

    The result is: Image field value:NULL

    Could you have a look at it, please?