Home Forums Front-end Issues Display image-field in custom menu Reply To: Display image-field in custom menu

  • Hi Elliot / ACF Forums,

    I’m having an issue getting a feature to work with ACF on a site I’m currently building. I’m using WP v4.2.4 and ACF v4.4.2.

    Specifically, I’m trying to display images associated with Taxonomy Terms in pages using wp_get_nav_menu_items and the Menus feature in the WP Dashboard, inspired by @zcdb and his provided code. His example which works perfectly with “Image URL” selected in my custom field, but doesn’t work when I select “Image ID”. I want to display images using “Image ID” instead of “Image URL” so I can designate a smaller image size to display instead of the full size image that is currently being output.

    I’ve looked through ACF’s documentation, and have been able to successfully display images using the “Basic display (ID)” technique, but after several hours of testing and scouring the forums I’m at a loss on how to do the same with @zcdb’s example.

    Is there a way to achieve the result I’m after?

    Thanks in advance for any advice you can offer!