Support » Plugin: WooCommerce » Automatically add product categories to custom menus
3 years, 9 months ago
I’m aware that I can add product categories to custom menus by enabling it in screen options.
However, I want a custom menu to be automatically updated when a new product category is created.
Currently I have to add new categories to a custom menu manually, then drag them to the correct child level.
Is there a more efficient way or a plugin that can help in adding product categories to a menu?
You can probably do this by extending the walker menu class.
I have no idea how to use the walker menu class. Can I use wp_list_categories to do it instead?
No, if you want to retain the ability to use the backend wp menus, you need to use a custom walker class…
I’m okay with replacing the custom menu with a fixed one that only displays a list of product categories with the correct hierarchy.
Does anyone have a simpler way to do this? I really have no idea on how to start with the walker class.
3 years, 4 months ago
I am looking for this myself.
It is very time consuming having to add every productpage to the menu manually each time.
I found this about the Walker Class:
Too complicated for me at this point. Is there no easier way to make this standard option, just like with the auto add pages?
@logologics: If you require assistance then, as per the Forum Welcome, please post your own topic. This topic references an old version of WordPress.