How do I use it?
Here's a walkthrough:
- Enable the Twenty Eleven theme.
- Disable all plugins except Category Posts in Custom Menu.
- Create a post with title "Post 1" and add a _new_ category "Category A"
- Save the post
- Go to Appearances > Menus
- Click "create a new menu"
- Add the category "Category A" by opening "Categories", checking that category and clicking "Add to menu"
- Open the menu item and check "Create submenu containing links to posts with this tag."
- Do not change anything else about the menu item
- Scroll all the way down and check under "Theme Locations" the checkbox "Primary Menu"
- 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.