[wp-hackers] Allowing numeric-only titles for posts
Otto
otto at ottodestruct.com
Mon Mar 2 22:21:02 GMT 2009
Known issue. Numeric slugs don't work anywhere in WordPress.
http://core.trac.wordpress.org/ticket/5305
Core reason is that it uses digit matching as part of the permalink
patterns for year/month/day type of things, so numeric slugs confuse
it.
No real fix at present.
On Mon, Mar 2, 2009 at 3:50 PM, Dan Fellars <danf at eliresearch.com> wrote:
> I've confirmed this with a new install with no plugins to make sure
> nothing was interfering. Is there a reason why wordpress won't
> recognize a title that is purely numeric in the permalink? If this is
> by design, should it give a warning on saving of the post to notify it
> is not a valid slug. I would actually prefer to allow this
> functionality. Maybe it is just a bug but wanted to make sure this is
> not by design first.
>
>
>
> Example: using permalinks as: /%category%/%postname%/ (note: if I set
> to just /%postname%/, then it works - but I want to have the category)
>
>
>
> Have a category with slug: test
>
> Have a post with title/name: 12345
>
>
>
> It will not recognize this as a valid url:
> http://mydomain.com/test/12345/ - Returns a 404
>
>
>
> If I change the slug to be A12345, then I can go to:
> http://mydomain.com/test/A12345/
>
>
>
> I am building a medical code lookup site where I actually want a numeric
> number to be the title of the post - by adding another character to the
> title, I actually make it more confusing to user. I can do something
> like: 'Code-12345', but would prefer to keep it as '12345'
>
>
>
> Any reason why I shouldn't be able to accomplish that? When I changed
> the permalink structure to just /%postname%/ it worked, but then I lose
> the category. So, why shouldn't it work when I include the category in
> permalink?
>
>
>
> Thanks,
>
>
>
> Dan
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
-Otto
Sent from: Memphis Tennessee United States.
More information about the wp-hackers
mailing list