Skip to main content
5 events
when toggle format what by license comment
Oct 22, 2011 at 11:53 comment added Marventus That would be a good workaround in general, but in this particular case, wp_get_nav_menu_items won't retrieve the images because the img tags are not stored in the actual custom menu (only their filenames are in the description field, e.g., "image1.png"). The custom walker is what allows me to insert the img tags in the menu output.
Oct 22, 2011 at 3:45 comment added saq what if you dont use a custom walker, instead you use a regular nav_menu and extract the items with wp_get_nav_menu_items() with your custom image
Oct 22, 2011 at 2:05 comment added Marventus I updated my original post to include this for clarity.
Oct 22, 2011 at 1:35 comment added Marventus Hi Saq, I forgot to mention that one of the solutions that did not work was to create a custom nav_menu function and add that code as an additional argument to the function's defaults. Sadly, it did not work. I didn't try to include it in the walker, but I don't think that would work either for the same reason I mentioned above, mainly that the wp_nav_menu does not have an "exclude" argument, but I could be wrong.
Oct 22, 2011 at 0:11 history answered saq CC BY-SA 3.0