• For some reason I can’t fathom, WP won’t let me leave a page slug as just a number without adding a “-2” to the end of it. So if I create a new page with the URL:

    http://crossedgenres.com/archives/022/

    When I save, it comes out as:

    http://crossedgenres.com/archives/022-2/

    I tried manually changing the slug back, but it just reverts automatically. When I add a letter (“i022”) it thinks that’s fine.

    I’ve used URLs ending in 001 through 021 without this ever occurring. Is there a way to fix this? I have a pattern of URLs that’s been consistent for almost 2 years and I don’t want to change it now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • These are put on the end of duplicate slugs. You will need to delete the old posts and them delete them permanently from the trash to stop this from happening.

    Michael

    Thread Starter crossedgenres

    (@crossedgenres)

    RoseAppleMedia, that didn’t work. At this point I’m pretty sure it’s because WP is seeing the all-number slugs as problematic with the ID #’s. It didn’t use to care, but I guess with the upgrade to WP3 it matters. I had to use something else, which is damn annoying.

    WordPress uses numbers in the default post ID. These may be conflicting with the default ID’s.

    Michael

    Moderator James Huff

    (@macmanx)

    That’s correct. WordPress now automatically adds -2 to the end of any solely numeric page/post slugs to prevent any potential conflicts with post IDs and numeric archive slugs.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WP auto-changing page slugs’ is closed to new replies.