Support

Account

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