One of the nicest features of the latter versions of WordPress includes the custom menu system. Although people can always introduce too many areas in which custom menus can be introduced, the core feature and customization options make it possible to do some really cool stuff with custom menus.
Case in point: With many of the popular front end frameworks that are now available, such as Foundation and Bootstrap, it’s really easy to add tabbed navigation in WordPress in templates, widgets, and so on.
Though there are a number ways of to do this, one flexible way that I’ve used multiple times requires two things:
- A function for retrieving the post IDs for the post types contained in a custom menu
- An instance of `WP_Query`
At that point, all you need is the name of the menu for which you want to retrieve the post IDs.


