WooCommerce - excelling eCommerce
Automatically add product categories to custom menus (8 posts)

  1. sjj1991
    Posted 2 years 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?


  2. Roy Ho
    Posted 2 years ago #

    You can probably do this by extending the walker menu class.

  3. sjj1991
    Posted 2 years ago #

    I have no idea how to use the walker menu class. Can I use wp_list_categories to do it instead?

  4. Roy Ho
    Posted 2 years ago #

    No, if you want to retain the ability to use the backend wp menus, you need to use a custom walker class...

  5. sjj1991
    Posted 2 years ago #

    I'm okay with replacing the custom menu with a fixed one that only displays a list of product categories with the correct hierarchy.

  6. sjj1991
    Posted 2 years ago #

    Does anyone have a simpler way to do this? I really have no idea on how to start with the walker class.

  7. LogoLogics
    Posted 1 year 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?


  8. esmi
    Forum Moderator
    Posted 1 year ago #

    @LogoLogics: If you require assistance then, as per the Forum Welcome, please post your own topic. This topic references an old version of WordPress.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic