- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
関数リファレンス/get taxonomy template
このページ「関数リファレンス/get taxonomy template」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
目次
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
- Uses: get_query_template() which applies 'taxonomy_template' filter on found path.
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
最新英語版: WordPress Codex » Function Reference/get_taxonomy_template (最新版との差分)