[wp-hackers] style current archive, similiar to category

Moritz mo at cobalt.cc
Sat Dec 15 10:01:05 GMT 2007

Hi there, im new to this mailinglist-thing in general and just stumbled 
upon a little thing which forced me to hack a wp core file, something i 
dont really like to do.
if you insert something like $current to the <li> -> <li$current>, you 
can style the li tag via css in a similiar way to wp_list_categories. If 
this is old and i just dont know about it, dont hang me ;).

$current = ('html' == $format && is_archive() && !is_category() && $text 
== get_the_time('F Y')) ? ' class="current-archive"' : '';

regards, mo

More information about the wp-hackers mailing list