0

On my Localhost installation I have 3 menus assigned to the specific term ID's. Example:

  1. Footer Menu (solutions) - (ID 24)
  2. Footer Menu (resources) - (ID 23)
  3. Main Menu - (ID 25)

After exporting XML file and importing it in the production demo the ID's are changing:

  1. Footer Menu (solutions) - (ID 63)
  2. Footer Menu (resources) - (ID 62)
  3. Main Menu - (ID 64)

After some experiments I found that after activating WooCommerce plugin on a clean installation it creates rows in the wp_terms table and writes it's data to these ID's:

  • simple (ID 2)
  • grouped (ID 3)
  • variable (ID 4)
  • external (ID 5)
  • exclude-from-search (ID 6)
  • exclude-from-catalog (ID 7)
  • featured (ID 8)
  • outofstock (ID 9)
  • etc.

How to prevent this bug and avoid menus ID's to change?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.