table data for nav_menu_items
-
Hi Everyone, really starting to have a lot of fun working with WordPress.
Just finishing my first truly decent commercial WordPress site and encountered a problem with the data WordPress is putting into one of it db tables.
I’ve noticed slugs for pages having -2 added to the end. There were no copies in the trash; only an identically named slug for the page’s nav_menu_item in the WP_Posts table.
Normally, these nav_menu_items are named with a post_name field equal to their ID field. This only changes to a verbose form upon changing the content of the Navigation Label and Title attributes within the Menus Dash.
The only way to keep my client’s URLs from having -2 appended is to delete navigation items from the nav, re-name the page slug, then add the navigation item back in and re-configure the Navigation Label and Title for the item, which means I now have two rows in WP_Posts with the same post_name for each nav_menu_item I chose to alter from default.
I hope I haven’t misdiagnosed this, but I haven’t found this explanation for the *-2 slug problem before, and my methods do correct it. Thanks & good day!
- The topic ‘table data for nav_menu_items’ is closed to new replies.