Search
Generic filters
Exact matches only

Stop wordpress adding -2 to new pages

4th May 2018

Wordpress - Show

wordpress category

WordPress may rename pages like this /myhouse-2
instead of /myhouse

Yes we all know that having a page named the same in your bun can cause problems. So permanently delete this first. Then try again.

But also I can confirm, any items in the media library with the same name as your page will also cause the numbers to be added to your page permalink name.

So rename those images. Would be great if wordpress told you this!

Was this code snippet helpful?

Comment on this Code Snippet?