Home › Forums › Front-end Issues › Display image-field in custom menu › Reply To: Display image-field in custom menu
Hi @zcdb
Great question.
I would stay away from the wp_nav-Menu function as it will be too hard to customize the HTML, but instead go for a more data friendly function like:
http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items
Use this to get you menu (or a similar function you find), and then loop through the items. Each taxonomy item will have a taxonomy and a term_id. You can use these pieces of data to construct the $post_id needed to load data from the term!
You can load how to load data from the term from this doc:
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-taxonomy-term/
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.