1

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?

2 Answers 2

3

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

2
  • 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, 2011 at 21:26
  • That's right. The same goes for tags and categories. Jul 27, 2011 at 21:50
2

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!

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.