[wp-hackers] Allowing numeric-only titles for posts

Heiko Rabe heiko.rabe at code-styling.de
Mon Mar 2 23:49:44 GMT 2009


Having full numeric post titles with leading category will be handled as 
it would be a static page, that has been paged.
This is normal behavoir and need no plugin. The <!--nextpage--> has be 
supported by TinyMCE since a lot of versions but
the button has not been shown at the editor. Only TinyMCE Advanced was 
able to attach it.

May be, that needs a re-ordering of post at front of rule sets and 
afterwards the static pages, but with a huge amount of posts, it will 
take some time to match static pages than.

Also the paged pages can be re-used and extended to act as columns (for 
static pages only) and can be tested here 
http://wordpress.org/extend/plugins/page-columnist/

regards

Heiko Rabe
(http://www.code-styling.de)
> 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
>
>   



More information about the wp-hackers mailing list