I have imported a product dataset into Wordpress/WooComerce which has created the required categories and sub-categories correctly when viewed in the Product->Categories page.

When I go to try to create the menus from Product Category structure only a small amount of the subcategories are indenting. The first image show the indenting as it should be, the second image shows where it stops. It looks like it is not listing them in the correct order which may be throwing the sub-category structure which goes 3 levels deep.

There are just over 240 categories so I am not sure if this would cause an issue.

Is there any other way to import a large number of categories into a menu and maintain the structure.

This shows the correct indent

This shows where the indenting stops working

  • 1
    Menus tend to break when you have too many items in them. I would instead use wp_list_categories (you'll need to use 'taxonomy' and set it to whatever name WC uses for Product Categories) in the theme. That way they're always up to date without anyone touching a Menu.
    – WebElaine
    Jul 10, 2017 at 14:49
  • Thanks. I have not used WP at this level before but will look into it and report back to the post.
    – Spionred
    Jul 10, 2017 at 19:04
  • i am facing the same issue in WP customization page Jul 17, 2020 at 4:44

1 Answer 1


I personally would not import all categories into menu. maybe it will not be useful to load into every single page. main categories into menu, then add sub categories into side panel. what do you think ?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.