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 | 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)
Note: See
TracTickets for help on using
tickets.
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.