Home › Forums › General Issues › Category images not appearing in sidebar › Reply To: Category images not appearing in sidebar
Hi @dannyfoo
The $post_id parameter mush be a mixture of the taxonomy and the term_id.
Please change your code to:
'product_categories_'.$category->term_id
You can also just pass in the $term object like so:
$image_url=get_field('product_category_image', $category);
Thanks
E
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.