[wp-hackers] Best pratice categories ordering

Leo Baiano ljunior2005 at gmail.com
Wed Jun 15 14:06:13 UTC 2011


To avoid compatibility problems in future it would be interesting, instead
of creating afield in the table, create a relationship table?

2011/6/15 John Blackbourn <johnbillion+wp at gmail.com>

> On 15 June 2011 06:23, Lox <lox.dev at knc.nc> wrote:
> > Hello,
> >
> > How would you advice me to order categories in database ? I have made the
> > drag/drop UI now, I am not sure how I should store them.
> >
> > I went adding a term_order column in the plugin's activation hook.
> >
> > Can this becomes an issue with WP future updates or anything else?
>
> The 'My Category Order' plugin [1] adds a term_order field to the
> terms table. A similar plugin of my own (not released yet) adds a
> term_order field to the term_taxonomy table instead.
>
> Adding table fields can potentially be an issue in future WordPress
> versions. If a term order field is added it's likely it would work in
> a similar way to your plugin or existing plugins, so I doubt
> compatibility would be too big of a problem.
>
> John
>
> [1] http://wordpress.org/extend/plugins/my-category-order/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Amplexos,

Leo Baiano
http://www.leobaiano.com
http://www.blog.ljunior.com
http://www.mcelebridades.com
http://www.twitter.com/leobaiano


More information about the wp-hackers mailing list