テーマで使用する テンプレート読み込み 関数のリストと各テンプレート読み込み機能 タグの説明と使い方。 template.php テンプレートファイルはwp-includesディレクトリに保存されています。
template.php リスト

WordPress テンプレートPHP タグ リスト
wp-includes/template.php
| コード | 説明 | タイプ |
|---|---|---|
| {$ type} _template | {$ type} _template とは、照会されたテンプレートのパスをタイプごとにフィルターします。 | hooks |
| {$ type} _template_hierarchy | {$ type} _template_hierarchy とは、使用するテンプレートを取得するときに検索されるテンプレートファイル名のリストをフィルタリングします。 | hooks |
| get_404_template() | get_404_template() とは、現在のテンプレートまたは親テンプレートの404テンプレートのパスを取得します。 | functions |
| get_archive_template() | get_archive_template() とは、現在または親のテンプレートのアーカイブテンプレートのパスを取得します。 | functions |
| get_attachment_template() | get_attachment_template() とは、現在のテンプレートまたは親テンプレートの添付ファイルテンプレートのパスを取得します。 | functions |
| get_author_template() | get_author_template() とは、現在のテンプレートまたは親テンプレート内の作成者テンプレートのパスを取得します。 | functions |
| get_category_template() | get_category_template() とは、現在のテンプレートまたは親テンプレートのカテゴリテンプレートのパスを取得します。 | functions |
| get_date_template() | get_date_template() とは、現在のテンプレートまたは親テンプレートの日付テンプレートのパスを取得します。 | functions |
| get_embed_template() | get_embed_template() とは、現在のテンプレートまたは親テンプレートの埋め込みテンプレートパスを取得します。 | functions |
| get_front_page_template() | get_front_page_template() とは、現在のテンプレートまたは親テンプレートのフロントページテンプレートのパスを取得します。 | functions |
| get_home_template() | get_home_template() とは、現在または親のテンプレートでホームテンプレートのパスを取得します。 | functions |
| get_index_template() | get_index_template() とは、現在のテンプレートまたは親テンプレートのインデックステンプレートのパスを取得します。 | functions |
| get_page_template() | get_page_template() とは、現在のテンプレートまたは親テンプレートのページテンプレートのパスを取得します。 | functions |
| get_post_type_archive_template() | get_post_type_archive_template() とは、現在のテンプレートまたは親テンプレート内のポストタイプのアーカイブテンプレートのパスを取得します。 | functions |
| get_query_template() | get_query_template() とは、テンプレートへのパスを取得する | functions |
| get_search_template() | get_search_template() とは、現在のテンプレートまたは親テンプレートの検索テンプレートのパスを取得します。 | functions |
| get_single_template() | get_single_template() とは、現在または親テンプレート内の単一テンプレートのパスを取得します。単一の投稿、単一の添付ファイル、および単一のカスタム投稿タイプに適用されます。 | functions |
| get_singular_template() | get_singular_template() とは、現在のテンプレートまたは親テンプレート内の特異テンプレートのパスを取得します。 | functions |
| get_tag_template() | get_tag_template() とは、現在または親テンプレートのタグテンプレートのパスを取得します。 | functions |
| get_taxonomy_template() | get_taxonomy_template() とは、現在のテンプレートまたは親テンプレートのカスタム分類用語テンプレートのパスを取得します。 | functions |
| load_template() | load_template() とは、 WordPress環境でテンプレートファイルが必要です。 | functions |
| locate_template() | locate_template() とは、存在する最優先のテンプレートファイルの名前を取得します。 | functions |
| ソース ファイル | wp-includes/template.php | File |
WordPress バージョン 4.8.1 wp-includes
| wp-includes/ フォルダ | |
| wp-includes/ certificates | wp-includes/ pomo |
| wp-includes/ css | wp-includes/ random_compat |
| wp-includes/ customize | wp-includes/ Requests |
| wp-includes/ fonts | wp-includes/ rest-api |
| wp-includes/ ID3 | wp-includes/ SimplePie |
| wp-includes/ images | wp-includes/ Text |
| wp-includes/ IXR | wp-includes/ theme-compat |
| wp-includes/ js | wp-includes/ widgets |
