Home › Forums › General Issues › Same image on category page and all its child pages with ACF › Reply To: Same image on category page and all its child pages with ACF
Hi John!!
Great solution!!
I didn’t get any values to $taxonomy & $category->term_id so I changes $taxonomy to category and $category->term_id to $category
$value = get_field(‘featuredimage’, category . ‘_’ . $category);
if ($url) { -statement was very good. I added default image on CSS if category image hasn’t been set.
John, I really appreciate you helping me!
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.