[wp-hackers] wp_list_categories()
Daiv Mowbray
daiv at daivmowbray.com
Wed Dec 31 01:46:51 GMT 2008
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
----------
More information about the wp-hackers
mailing list