Support » Fixing WordPress » purging old slug definitions

  • Resolved tallhat


    i’ve got a weird problem with pages not displaying correctly. it seems that WP is remembering some old slug definitions and is for some reason turning ‘pages’ where i reuse those slug definitions into ‘posts’! very odd…

    i’ve tried deleting stuff and emptying trash but they seem to be remembered somewhere. how do i purge unwanted/old/deleted ‘slugs’?

    if i edit the slug for a problem page to something new the page displays fine. if i edit the slug back it does the weird thing again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Those ‘old’ slugs are kept in the postmeta table. Using phpMyadmin you could delete them ALL with:

    DELETE FROM wp_postmeta WHERE meta_key = '_wp_old_slug';

    Or delete them individually in that table.

    Backup your database before attempting.

    turns out the ‘old slug’ bit was a red herring.
    it actually seems to be a really weird (and inconsistent) conflict between an uploaded image ‘title’ and a page slug. the fix seems to be to delete the image in question and reupload.
    hard to replicate the problem as it’s inconsistent, so not really sure what really happened…

    E Anderson


    Note: Also have to delete the old page from the “trash” folder before you can use the old slug.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘purging old slug definitions’ is closed to new replies.