Make WordPress Core

Opened 14 years ago

Closed 11 years ago

#20730 closed feature request (wontfix)

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

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

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
14 years ago

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

#2 @nacin
13 years ago

  • Component TemplateTaxonomy
  • Focuses template added

#3 @boonebgorges
11 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

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.