Plugin Directory

Category Posts in Custom Menu

Dynamic menus: This plugin automatically replaces selected Category links / Post Tag links / Custom Taxonomy links in a Custom Menu by a list of their

The custom menu only allows adding a link that leads to a category or tag page. I wanted to insert all posts from a certain category/tag themselves into the menu, so I wrote a little plug-in. If you want to list posts the posts themselves in the menu and if you want WordPress to do this automatically for you, then I hope you will find this plugin useful.

Now also works for custom post taxonomies!

Using it

Enable the plugin and go to Appearance > Menus. Create your Custom Menu. If you use Categories or Post Tags in your Custom Menu, be sure to save the menu first. Next, you can choose whether you would like to list the original link, or if you would like to replace it by the posts in that taxonomy (Category/Post Tag). Note that custom taxonomies and post types are not supported at the moment.

For each Category or Post Tag item in the menu, you now have the following extra configuration options:

  • replace the link by a list of posts in the menu y/n;
  • specify the (maximum) number of posts you want to show for this item (-1 = all), and
  • their ordering (ascending/descending by none, ID, author, title, date, modified, parent, rand or comment_count);
  • specify the title for the menu items: for this you can use the wildcards %post_title and %post_author, or wildcards for custom fields, like %post_my_field, where 'my field' or 'my_field' is a custom field;

Details

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.

Requires: 3.2.1 or higher
Compatible up to: 3.3.2
Last Updated: 2012-5-15
Downloads: 2,933

Average Rating

4 stars
(6 ratings)

Support

2 of 2 support threads in the last three weeks have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0
67,3,2
100,2,2
100,1,1