Title: How to add mega menu properties with programming code?
Last modified: February 11, 2022

---

# How to add mega menu properties with programming code?

 *  [cesarhr91](https://wordpress.org/support/users/cesarhr91/)
 * (@cesarhr91)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/how-to-add-mega-menu-properties-with-programming-code/)
 * Hello
 * I request your support, I am building a menu that is automatically filled with
   all the product categories that the project has.
 * The issue is that the display mode of the menu items is created by default as
   a flyout menu and I would like to add them as a grid layout
 * I am currently getting the properties of each menu item with the “wp_get_nav_menu_items”
   function but it seems that the megamenu settings are not included and I don’t
   know how to change the item property to grid layout
 * is there a way to do it?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/how-to-add-mega-menu-properties-with-programming-code/#post-15364138)
 * Hi cesarhr91,
 * I think the best way would be to set up a grid layout sub menu (using our options),
   then add a widget to each column in the grid that pulls in the product categories.
   You could custom code that widget or use an existing one – e.g. recent posts 
   extended or Content Views.
 * I don’t think it would be possible to automatically populate the whole sub menu.
 * Regards,
    Tom

Viewing 1 replies (of 1 total)

The topic ‘How to add mega menu properties with programming code?’ is closed to 
new replies.

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [megamenu](https://wordpress.org/support/users/megamenu/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/how-to-add-mega-menu-properties-with-programming-code/#post-15364138)
 * Status: not resolved