# テンプレート

## `get_template_part`経由でテンプレートを読み込む

`locate_template`関数について書く。

## テンプレートがどのように選択されるかとテンプレート階層について

メインクエリーを使ってテンプレートがどのように選択されるのかの記述。テンプレートがどのように選択されるのか、子テーマがどのように読み込まれるのかについて。テンプレート階層図を表示。

## functions.phpとプラグイン

## スタイルシートの読み込み

スタイルシートを正しく読み込ませる

## テンプレートとプラグイン

`template_include`フィルター

## フォーム

テーマ内で別のスタンドアローンのPHPファイルをサブミットするフォームはよくありません。ページテンプレート上で基本的なフォームサブミッションをどのように扱うかの例

## 下層ページ

投稿やアーカイブと関連付けられていないページ/URL、例えばショッピングカートやAPIのエンドポイントが必要なとき。

## さらに詳しくは

* テンプレートダイアログへのリンク
* インタラクティブなテンプレートダイアログ


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.wptherightway.org/japanese/templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
