WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#8341 closed defect (bug) (wontfix)

The category list in the archives page of the default theme needs to fix

Reported by: tai Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: Themes Keywords:
Focuses: Cc:

Description

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>

Attachments (1)

archives.diff (615 bytes) - added by tai 6 years ago.

Download all attachments as: .zip

Change History (3)

@tai6 years ago

comment:1 @westi6 years ago

  • Cc westi added
  • Milestone changed from 2.7 to 2.8

Personally I prefer the distinction that what is being displayed is the categories here.

I think it would be better to improve this page in 2.8 to display a tag cloud as well.

Moving to 2.8.

comment:2 @ryan6 years ago

  • Milestone 2.8 deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.