Dynamic menus: List all posts from a category in your menu. Also works for tags, custom taxonomies as well as pages and custom post types.
The custom menu only allows adding a link that leads to a list of posts and pages belonging to a taxonomy (category, tag, etc). If you want to list the posts and pages themselves and if you want WordPress to do this automatically for you, then I hope you will find this plugin useful.
Also works for custom taxonomies and custom post types!
Enable the plugin and go to Appearance > Menus. Create your Custom Menu. Add a taxonomy (category/tag/custom) to the menu. Next, you can choose if you would like to replace the original link (to a page that lists the items) by the posts and pages themselves.
For each Category or Post Tag item in the menu, you now have the following extra configuration options:
This plugin uses the wp_nav_menu_objects filter hook to remove and replace category items in the menu by the posts in that category. It extends Walker_Nav_Menu_Edit to add input fields to Appearance > Menus and adds some CSS to style this properly.
The plugin now supports the wp_nav_menu_item_custom_fields hook and should be compatible with other plugins that also use this hook.
You can control the title of the menu items generated by the plug-in with the following wildcards:
The following wildcards are deprecated:
You can control the ordering of the items in the menu by sorting ascending or descending on the following properties:
The plugin behavior can be extended.
To extend the backend with your own controls and use them in the posts query, add the following:
To add your own wildcards, add the following:
You can see an example in the sample-cpcm-extension directory, included in the plugin code.
Requires: 3.2.1 or higher
Compatible up to: 4.4.4
Last Updated: 6 months ago
Active Installs: 7,000+
Got something to say? Need help?