Can I use a number for a post/page slug?

It’s only Pages where this is an issue. Posts are fine.

Seems like a bug to me, but regardless of whether or not it’s a bug, you can not use numeric slugs on pages.

This is because number slugs like “/750/” interfere with posts years “/2010/” etc. and WordPress can’t tell the difference.

If you save two pages to draft with the same number (say 750) then WordPress assigns the slug 750-2 to both. Upon publish, the first will stay 750-2 while the second will update to 750-3. There is no normal way to get slug 750 on a page as of 3.0

Update: http://core.trac.wordpress.org/ticket/11917 is the ticket that outlawed numeric slugs.

Leave a Comment