Home › Forums › General Issues › Query taxonomy for fields › Reply To: Query taxonomy for fields
Hi @marek-234
So you want wp_list_categories
to also output an ACF created image?
To modify the wp_list_categories()
functions output you’d need to create a custom walker.. You can read more about it here: https://codex.wordpress.org/Template_Tags/wp_list_categories
If you just want to get the current terms icon you can do this:
$icon = get_field('icon', $current_term->taxonomy . '_' . $current_term->term_id);
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.