Browsing articles tagged with " menus"
Feb
23
2014

Code to Add a New Menu Item Type

My latest diversion. The code at this link adds a new meta box on the Appearance>Menu screen. The defaults are Page, Custom, and Category. This particular one adds a divider type. It doesn’t have any code beyond getting the meta box to show. There is a plugin that adds a custom menu item called Dynamic […]

Feb
22
2014

SQL to Pull WordPress Menu Info

I wanted to see how WordPress stored its menus. I assumed there must be a table in the database somewhere but I couldn’t find it. Turns out that’s because menu items are stored as posts with a ‘nav_menu_item’ post type. In all there where about 4 or 5 tables the information was spread over. I […]