Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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"

share|improve this question

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

share|improve this answer
    
+1 Maybe you want to write "but it's probably not a great idea" bold :) –  kaiser Mar 10 '12 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 '12 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 '12 at 18:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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