Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Post::__construct(), 0 passed in /home/tylertor/public_html/gnash/wp-content/plugins/automatic-submenu/automatic-submenu.php on line 255 and exactly 1 expected in /home/tylertor/public_html/gnash/wp-includes/class-wp-post.php:264 Stack trace: #0 /home/tylertor/public_html/gnash/wp-content/plugins/automatic-submenu/automatic-submenu.php(255): WP_Post->__construct() #1 /home/tylertor/public_html/gnash/wp-content/plugins/automatic-submenu/automatic-submenu.php(227): AutomaticSubmenu->createSubmenu(Array, Object(WP_Post), ‘pages’) #2 /home/tylertor/public_html/gnash/wp-includes/class-wp-hook.php(288): AutomaticSubmenu->menu_magic(Array) #3 /home/tylertor/public_html/gnash/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array) #4 /home/tylertor/public_html/gnash/wp-includes/nav-menu.php(765): apply_filters(‘wp_get_nav_menu…’, Array, Object(WP_Term), Array) #5 /home/tylertor/public_html/gnash/wp-includes/nav-menu-template.php(140): wp_get_na in /home/tylertor/public_html/gnash/wp-includes/class-wp-post.php on line 264
]]>Hi,
Does this plugin work for woocommerce product categories as well?
Would I be able to choose which menus would have this option active?
Thanks in advance!
]]>Dear John,
Great plugin!
But I am facing one problem. It is working only with one menu.
When I activate 2nd Posts/Categories menu and checking “Automatically display children as submenu items” only the first menu is working. If I delete the first menu, then the second it is working.
WordPress 4.9.5, PHP 7.0.30
All the best,
Alexandros
Hi John
Have installed your plugin and love its relative simplicity of code and it looks absolutely perfect for what I am looking for except . . .
I am trying to find a way of automatically adding Woocommerce products to their category in our shop menu. We run a festival where products are our events, and every festival the old events (products) are deleted and a new batch published. There are only around 60 products but it would be womderful to generate the submenu automatically than manually adding and deleting the 60 products.
Is this something you would consider adding?
Cheers
David
I love your plugin! I can’t believe how long i searched before finding yours! This is a simple functionality that I would expect to be widely desired, but it is almost impossible to find any code of plugins to do this!
Anyhow, I do have a request: Is there a way to easily configure the plugin to hide empty terms in auto-generated submenus?
Again, thank you!
]]>Showing following error:
Warning: array_merge(): Argument #2 is not an array in /home/x/x/x/wp-content/plugins/automatic-submenu/automatic-submenu.php on line 239
I’ve new install WordPress v.4.9.8 with PHP 7.2
]]>I’d be very interested in the custom taxonomy feature.
And there was a PHP warning you might wanna address with next update, too:
Warning: array_merge(): Argument #2 is not an array in …\wp-content\plugins\automatic-submenu\automatic-submenu.php on line 239
]]>