[wp-trac] [WordPress Trac] #8341: The category list in the archives page of the default theme needs to fix

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 25 09:33:13 GMT 2008


#8341: The category list in the archives page of the default theme needs to fix
--------------------+-------------------------------------------------------
 Reporter:  tai     |       Owner:     
     Type:  defect  |      Status:  new
 Priority:  normal  |   Milestone:  2.7
Component:  Themes  |     Version:  2.7
 Severity:  normal  |    Keywords:     
--------------------+-------------------------------------------------------
 The category list (wp_list_categories) of the archives page template
 (archives.php) outputs like below:

 {{{
 <h2>Archives by Subject:</h2>
 <ul>
 <li class="categories">Categories
 <ul>
 <li class="cat-item cat-item-1"><a href="http://xxx">Cat 1</a></li>
 <li class="cat-item cat-item-2"><a href="http://xxx">Cat 2</a></li>
 </ul>
 </li>
 </ul>
 }}}


 We don't need "<li class="categories">Categories xx</li>" here, so give
 wp_list_categories() the argument 'title_li=', then the html will be
 below:


 {{{
 <h2>Archives by Subject:</h2>
 <ul>
 <li class="cat-item cat-item-1"><a href="http://xxx">Cat 1</a></li>
 <li class="cat-item cat-item-2"><a href="http://xxx">Cat 2</a></li>
 </ul>
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8341>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list