WordPress.org

Plugin Directory

Category Posts in Custom Menu

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

How do I use it?

Here's a walkthrough:

  1. Enable the Twenty Eleven theme.
  2. Disable all plugins except Category Posts in Custom Menu.
  3. Create a post with title "Post 1" and add a _new_ category "Category A"
  4. Save the post
  5. Go to Appearances > Menus
  6. Click "create a new menu"
  7. Add the category "Category A" by opening "Categories", checking that category and clicking "Add to menu"
  8. Open the menu item and check "Create submenu containing links to posts with this tag."
  9. Do not change anything else about the menu item
  10. Scroll all the way down and check under "Theme Locations" the checkbox "Primary Menu"
  11. Save the menu

If you now look at your blog, you will have a menu with only one item: "Category A". If you hover over that item with the mouse, it will open, and a post is displayed titled "Post 1". Add additional posts to Category A and you will see these additional posts in the menu.

Can't see it working in any way

Problem: "I can't see what effect it has had. Nothing has changed (not that I can see) in the Appearance > Menu page. Just like before."

This problem should only occur if:

  • Your WordPress version is 3.0 or before: Issue 14527 (http://core.trac.wordpress.org/ticket/14527) may be the cause. When adding a menu item but before saving it, you will indeed see none of the promised checkboxes. So be sure to save your menu after you add a Category/Tag to your menu. Then you'll see the added functionality. Please update your WordPress version to at least 3.0.1.
  • You're using an old version of Category Posts in Custom Menu (1.0.0 and before). Please update to the latest version of CPCM.
  • You're using another plugin that has a higher priority than CPCM and does not use the wp_nav_menu_item_custom_fields hook to add its fields to Appearances > Menus. This other plugin overwrites all fields instead, which means CPCM's fields won't show. Verify by disabling all other plugins and check if the CPCM fields now show.
  • Other theme or plugin conflicts. Please disable all themes and plugins except CPCM; verify that the CPCM fields show; enable other plugins and themes one by one to determine which plugin/theme conflicts with CPCM.

Requires: 3.2.1 or higher
Compatible up to: 4.1.5
Last Updated: 2015-4-6
Active Installs: 5,000+

Ratings

5 out of 5 stars

Support

0 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

0,1,0
67,3,2
100,2,2
100,1,1
100,1,1
100,4,4
0,1,0
50,2,1
100,1,1
100,1,1 0,2,0 100,1,1
100,1,1
100,1,1 100,2,2
100,2,2
100,2,2
67,3,2
100,2,2