I created a page (with slug "page-title" say), then deleted it.

I created a 2nd page with the same title, and it automatically saved itself with a page slug of "page-title-2".

The first page no longer exists, not in the trash either, but I can't rename the 2nd page's slug to "page-title".

How can I do so?


My first guess would have been that the page was in the Trash, but you've said in the OP that it isn't. So... If you have access to your MySQL database, run this query:

SELECT * FROM wp_posts WHERE post_name = 'page-title'

That will return the post that's using the slug.

| improve this answer | |
  • 1
    My answer was deleted by @toscho, but what I was adding to Shawn's answer was that once you've used the above you can delete that row to start using the slug again. – TomC Apr 1 '14 at 11:22

The page with page-title as the slug is still hanging out in the Trash. You will need to delete it there, or change it's slug if you are wanting page-title-2 to be able to become page-title.

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.