1

I have a page called "Orlando" and for some reason the page url is /orlando-2/. I have never made another "Orlando" page on this site and there are no pages living in the trash. There is also no other page with the word "Orlando" in it. I know this happens when you have multiple pages of the same name but can't find any fix if there are no dups.

Thanks

3
  • Is there an image called orlando? Search your database if you can.
    – Howdy_McGee
    Commented Jun 29, 2016 at 18:26
  • @Howdy_McGee yes there is. I just deleted it and tried to go back to the page and change the URL and its still forcing -2 Commented Jun 29, 2016 at 18:29
  • @Howdy_McGee Never mind, it is all working now. Thank you so much! Commented Jun 29, 2016 at 18:30

1 Answer 1

1

Duplicates don't just come from Pages and Posts, WordPress also defines Images and Files from the Media Library as "Posts". This means if you have a file / image in the Media Library with the same name as a page, it will assign the next duplicate a -2 ( from the wp_unique_post_slug() function ) so there's no URL conflicts.

TL;DR - Duplicate? Search for Pages, Posts, and Images.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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