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.
Here's a walkthrough:
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.
The CSS class 'current-post-ancestor' is not applied correctly. This is a bug in WordPress that I have reported here: https://core.trac.wordpress.org/ticket/32918 This is not something I am able to fix in the plugin, it has to be fixed in WordPress. I'm sorry for the inconvenience.
The plugin is potentially very expensive, especially when you decide to build your entire menu out of nothing but category posts.
The solution would be to cache the menu using transients, as reported here https://wordpress.org/support/topic/performance-problem-many-database-queries?replies=11#post-7829450
$my_cached_menu = get_transient( 'my_cached_menu');
if( $my_cached_menu === false )
$my_cached_menu = wp_nav_menu( ... );
set_transient( 'my_cached_menu_', $my_cached_menu, YEAR_IN_SECONDS );
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:
Requires: 3.2.1 or higher
Compatible up to: 4.3.3
Last Updated: 3 weeks ago
Active Installs: 6,000+
4 of 7 support threads in the last two months have been marked resolved.
Got something to say? Need help?