get_taxonomy_template()获取分类法列表页模板文件taxonomy.php

目录

描述

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.

get_taxonomy_template() 描述

用法

<?php get_taxonomy_template() ?>

get_taxonomy_template() 用法

参数

返回值

(string) 

get_taxonomy_template() 返回值

注意

Filters

  • 调用 'taxonomy_template' 过滤器 on found path:
    apply_filters('taxonomy_template', $template)

get_taxonomy_template() 注意

历史

添加于 版本: unknown (2.6.0 most likely)

get_taxonomy_template() 历史

源文件

get_taxonomy_template() 函数的代码位于 wp-includes/template.php.

get_taxonomy_template() 源文件