WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

Last modified 4 years ago

#84 closed defect (bug) (wontfix)

the_category() sorts _only_ by category ID

Reported by: skippy Owned by: matt
Priority: normal Milestone:
Component: General Version:
Severity: minor Keywords:
Cc:

Description

I have a post that lives in three categories: "Technology", "Free Software", and "WordPress". The "Free Software" category is a sub-cat of "Technology". My blog displays the categories this way:

Free Software, WordPress, Technology

Due to the way I've shuffled and re-arranged my categories over time, the_category() displays categories in an appearantly haphazard way.

I would like to have options to:

  • group parent/child categories
  • sort alphabetically by category name
  • sort ascending or descending
  • do all of the above at once! (sort top-level categories reverse alpha by category name, and display child categories immediately after each of their parent categories)

Change History (3)

comment:2 matt8 years ago

  • Patch set to No
  • Status changed from new to assigned

comment:3 matt8 years ago

  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 90
  • Status changed from assigned to closed

This should probably be a new function, preferably in a plugin, since this has not been widely requested

Note: See TracTickets for help on using tickets.