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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.