Make WordPress Core

Opened 12 years ago

Closed 9 years ago

#20730 closed feature request (wontfix)

make function wp_list_categories rewritable for templates (File: category-template.php)

Reported by: wpuser12584's profile wpuser12584 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: template Cc:

Description

Inserting

$list_categories_template = locate_template(array('listcategories.php'));
        if ( '' != $list_categories_template ) {
                require($list_categories_template);
                return;
        }

under

function wp_list_categories( $args = '' ) {

Change History (3)

#1 @wpuser12584
12 years ago

  • Summary changed from make function wp_list_categories rewritable for templates to make function wp_list_categories rewritable for templates (File: category-template.php)

#2 @nacin
10 years ago

  • Component changed from Template to Taxonomy
  • Focuses template added

#3 @boonebgorges
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Sorry for the delayed review. WP doesn't generally do this sort of drop-in file support. It doesn't play nicely with variable scope, and it makes it difficult to return (as opposed to echo) the generated markup. You should be able to make all required customizations with the 'wp_list_categories' filter.

Note: See TracTickets for help on using tickets.