[wp-hackers] wp_list_categories()

Lynne Pope lynne.pope at gmail.com
Wed Dec 31 02:45:44 GMT 2008


The unordered list output (ul) is correct for most sites and should not be
changed. Definition lists are used when something actually has pairs of
definitions or related terms. For most sites, the unordered list is the
right one to use. Some sites that have a very specialised focus may be
better using a definition list for categories.
To replace the unordered lists for those sites I have just edited
category-templates.php but maybe this could be added to pluggable.php so
users could easily override the function and change the unordered list to a
definition list (or even an ordered list) easily?

Lynne

2008/12/31 Alex Hempton-Smith <hempsworth at googlemail.com>

> I think default behaviour should be as-is, without definitions.

<snip>

>
>
> On Wed, Dec 31, 2008 at 1:46 AM, Daiv Mowbray <daiv at daivmowbray.com>
> wrote:
>
> >
> > I don't understand why it writes a ul list to start with.
> > It should be a data list:
> > <dl>
> > <dt>link to cat level1</dt>
> > <dd><dl>
> > <dt>link to cat level2</dt>
> > <dd><span>link to post level2</span>
> > <span>link to post level2</span>
> > <dl>
> > <dt>link to cat level3</dt>
> > <dd><span>link to post level3</span>
> > <span>link to post level3</span>
> > </dd>
> > </dl>
> > </dd>
> > </dl>
> > <span>link to post level1</span>
> > </dd>
> > </dl>
> > Makes css and javascript control much more practical. IMHO.
> >
> >
> >
> >
> > On Dec 28, 2008, at 7:17 AM, Mike Schinkel wrote:
> >
> >  Secondly, Nested lists, The <ul> -has- to be within a <li> for it to be
> >>>
> >> valid HTML, It can either be <li><a>...</a><ul class="children" or
> >> <li><a>..</a></li><li><ul class=children> but that causes issues with
> >> numbered lists or for that matter, any list which has any form of bullet
> >> or
> >> marker before it..
> >>
> >
> >
> > ----------
> > Daiv Mowbray
> > daiv at daivmowbray.com
> > ----------
> >
> >
> >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> 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