I added one slug and page with the same name and they worked fine, but when creating a second WP forced me to rename the page (being created after the category) with an additional "-2" how to clear the additional "-2".

if i delete the category and create new category in same name then it display as "-3"

1 Answer 1


You cannot have duplicate slugs or taxonomies, to remove the number you will need to delete them.

There is a database hack to have duplicate terms but it's probably not a great idea, Removing the number in a category slug

  • +1 Maybe you want to write "but it's probably not a great idea" bold :)
    – kaiser
    Mar 10, 2012 at 11:42
  • I don't know what hack you're talking about but I have a page and a post with the same slug. It can cause problems, but there is no warning ahead of time.
    – AlxVallejo
    Apr 3, 2012 at 16:08
  • This was fixed in a more recent version of WordPress, maybe yours is outdated or it's possible you made those posts when WordPress allowed it. Also some plugins like WPML allow this.
    – Wyck
    Apr 3, 2012 at 18:34

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.