Creating a new menu item
-
I’m working on a theme, and one of the options I want to incorporate is an addition to the available menu choices available in the admin panel under Appearance/Menus. There is an existing menu item for Posts and for Categories, but these are static selections. I’m wanting to change the functionality of these to always show all categories (updates the menu as new categories are created), and for Posts would like it to show the last X posts. For this theme there would be a single menu line just below the site header.
I read somewhere under theme development that if a theme used any menus, that this had to go through the WordPress menu functions. But I’m not seeing a way to add additional types of menus like what I’m looking for.
I’ve found some plugins that will add similar functionality to sidebars, but not the menus. My google searching hasn’t yielded the right results because of the basic terms involved, most results have been for registering menus and such, not creation of a new type of menu for the theme.
- The topic ‘Creating a new menu item’ is closed to new replies.