WordPress.org

Ready to get started?Download WordPress

Forums

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

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

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

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

  3. sjj1991
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 8 months ago #

    Hello,

    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:
    http://wp.tutsplus.com/tutorials/creative-coding/understanding-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?

    Thx,
    Annie

  8. esmi
    Forum Moderator
    Posted 8 months 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

About this Topic