• Resolved webviaggi

    (@webviaggi)


    Hi, as the title says, i need to add all product categories to a menu automatically (it’s a multivendor store, so all the vendor can create categories) so that categories created by vendors will show up automatically

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @webviaggi

    Site menus are controlled by the WordPress core software itself and not WooCommerce. There is however no functionality within the WordPress Admin > Appearance > Menus section to automatically have categories added to those particular menus.

    What should work for you though is to use a widget called Product Categories List. This will display a list of all product categories added to a site and update automatically as new categories are added.

    You can add widgets in WordPress by navigating to WordPress Admin > Appearance > Widgets.

    Thread Starter webviaggi

    (@webviaggi)

    Hi @stuartduff ,

    so there’s no option to do it in menus? even if i use a php script in the theme’s functions.php?

    Plugin Support mouli a11n

    (@mouli)

    @webviaggi
    There is not default option to automatically add categories to the menus, but as @stuartduff mentions, there are widgets that generate a list of categories that can be displayed in any of your themes widget areas.

    However, this can certainly be achieved using custom code in your themes functions.php file, but as I am not a developer I can’t help you with this.
    I did find this thread that might get you started though, but bear in mind that it is a couple of years old.
    https://www.ads-software.com/support/topic/how-to-automatically-add-categories-sub-categories-in-wordpress-nav-menu/

    I also found this plugin:
    https://awesometogi.com/product/dynamic-menu-product-categories-plugin-for-woocommerce/
    However as it is not a WooCommerce.com product I cannot endorse or support it but you are welcome to try it.

    I hope that helps you to figure it out.

    Thread Starter webviaggi

    (@webviaggi)

    Hi @mouli ,
    Sadly that article is for wordpress posts categories and not woocommerce product categories, but I’ll try to use some of the code from the plugin you sent me to make it work, thank you!

    Hi @webviaggi

    Sadly that article is for wordpress posts categories and not woocommerce product categories,

    As mentioned by Stuart above, site menus are controlled by the WordPress core software itself and not WooCommerce, hence, Mouli suggested that thread to you.

    but I’ll try to use some of the code from the plugin you sent me to make it work, thank you!

    Best of luck and we hope that this plugin meets your requirements.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce – automatically add/show product categories in a menu’ is closed to new replies.