WP Menu Walker Function wrap menus in divs with descriptions?

Can a wp walker wrap a top-level menu item and all its children in a div where the div ID is the menu-item description?

This is very much like the question linked below, but I think I’d need to use the item->description in the start_lvl instead of the start_el. I’m not sure if that is possible. Attempts so far have failed.

WP Menu walker function to display parent description and wrap parent in own div

Read more here: WP Menu Walker Function wrap menus in divs with descriptions?

Leave a Reply

Your email address will not be published. Required fields are marked *