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 am tempted to change my blog to be site.com/postname.

I know that for new posts Wordpress is smart enough to add a unique number to them, but what about old posts that would get updated?

I can run a database check for duplicates and manually fix them but I was wondering if this was already covered by some Wordpress magic?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Any time you have a duplicate slug for a post or taxonomy, WordPress just adds '-2' to the end of the slug.

share|improve this answer
    
So it doesn't matter if it's an "old" post or what your permalink settings are, WP ensures that all slugs are unique? –  jjeaton Jul 27 '11 at 21:26
    
That's right. The same goes for tags and categories. –  Jeff Sebring Jul 27 '11 at 21:50

I don't believe it's covered by WP magic; and lately there's been much discussion of how bad it can be performance-wise to use %postname% alone, for example http://digwp.com/2011/06/dont-use-postname/ You might have better luck with %year%/%postname. Best of luck!

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.