Opened 3 years ago

Last modified 3 years ago

#13949 new enhancement

Add a sprintf style argument to wp_list_categories() for title tag.

Reported by: mfields Owned by:
Priority: normal Milestone: Future Release
Component: Taxonomy Version:
Severity: normal Keywords: needs-patch
Cc:

Description

By default, wp_list_categories() will use the value of $term->description for the title tag of every link that it generates. If the argument "use_desc_for_title" is set to false, it will produce a string like: "View all posts filed under $term->name". With the inclusion of custom post_types into core, it would be wonderful to have more control over this title. The best solution that I can think of is to add a sprintf style argument which will allow themes and plugins to provide a custom format. Something like:

'title_format' => 'View all tacos posted under %s.'

Change History (1)

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Seems fine to me.

Note: See TracTickets for help on using tickets.