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.

How do I rewrite a category url that has a number at the end, to a url with no number using wordpress url rewriter? and... Why is there a number appended to all category url's?

http://www.latestnewsexplorer.com/news/gaming/pc-gaming-2/

share|improve this question
1  
the number is appended because you already have a taxonomy term with that same slug. slugs have to be unique across all taxonomies, because they're all stored in the same table with slug as a unique key. –  Milo Oct 31 '11 at 18:10
1  
I could be wrong, but I believe it is because you have or had another category whose slug was pc-gaming. –  v0idless Oct 31 '11 at 18:11

1 Answer 1

up vote 1 down vote accepted

You cannot use the same term for a category, page, tag as they need to be unique.

When you do, you'll get a number next to the slug

To fix them you'll need to fix the tag or page slug otherwise edit the category slug last

http://wordpresssites.net/links/how-to-edit-change-fix-duplicate-category-slugs-in-wordpress/

share|improve this answer

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.