WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/get taxonomy template

Contents

Description

Retrieve path of taxonomy template in current or parent template.

Retrieves the taxonomy and term, if term is available. The template is prepended with 'taxonomy-' and followed by both the taxonomy string and the taxonomy string followed by a dash and then followed by the term.

The taxonomy and term template is checked and used first, if it exists. Second, just the taxonomy template is checked, and then finally, taxonomy.php template is used. If none of the files exist, then it will fall back on to index.php.

Usage

<?php get_taxonomy_template() ?>

Parameters

None.

Return Values

(string) 

Examples

Notes

Filters

  • Calls 'taxonomy_template' filter on found path:
    apply_filters('taxonomy_template', $template)

Change Log

Since: unknown (2.6.0 most likely)

Source File

get_taxonomy_template() is located in wp-includes/template.php.

Related

See also index of Function Reference and index of Template Tags.