Forums

WP auto-changing page slugs (5 posts)

  1. crossedgenres
    Member
    Posted 1 year ago #

    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.

  2. Michael
    Member
    Posted 1 year ago #

    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

  3. crossedgenres
    Member
    Posted 1 year ago #

    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.

  4. Michael
    Member
    Posted 1 year ago #

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

    Michael

  5. James
    Happiness Engineer
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic