• 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

Codex:Template 一覧

提供: WordPress Codex 日本語版
移動先: 案内検索

このサイトの編集のために用意してある Wiki テンプレートの一覧です(WordPress のテンプレートではありません)。引数など詳しい使い方は、各テンプレートページの説明をご覧ください。

ページ編集状態表示

読者にページが完全でないことなどを知らせるとともに、作業が必要なページを参加者が見つけられるようにするために貼ります。

テンプレート 用途 表示例

スタブ

{{Stub}}

このページ「Template 一覧」はまだ書きかけで、情報が不足しています。続きを書いて WordPress を手助けしましょう.


草稿

{{Draft}}

このページはラフドラフトで、まだ内容の検証が済んでいません。情報が間違っていたり書き直されることがあります。
執筆中のため、執筆者の許可なく編集しないでください

未翻訳

{{NeedTrans}}

  • 用途:原文コピーのまま、または、未翻訳部分が残っており、和訳が必要なページに。
  • 翻訳着手前に、コピーが古くないか確認すること。
  • 翻訳終了時に削除。チェック希望時は {{CheckTrans}} に差し替える。
  • Category:未翻訳

このページ「Template 一覧」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

翻訳チェック待ち

{{CheckTrans}}

  • 翻訳し終えたが、正確なチェックが必要なページに。
  • 原文をコメントアウトで残すか、履歴の差分で比較できるようにすること。
  • Category:翻訳チェック待ち

この項目「Template 一覧」は、翻訳チェック待ちの項目です。加筆、訂正などを通して、Codex ドキュメンテーションにご協力下さい。

要更新

{{Old}}

  • 用途:情報が古くなっている可能性が高く、最新版のチェック・更新が必要なページに。
  • 最新版への更新時に削除。
  • Category:要更新

このページ「Template 一覧」は 情報が古くなっている可能性があります。最新版英語)も合わせてご覧ください。最新に更新してくださる協力者を求めています

要編集

{{Copyedit}}

  • 用途:翻訳時に原文が要編集であるとマークされていた場合に使う。
  • Category:要編集
この記事は翻訳時に編集が必要であるとマークされていました。その為Codex原文が大きく編集されている可能性があります。内容を確認される際は原文を参照していただき、可能であれば本項目へ反映させてください。よりよいCodexを作成するためのお手伝いをお願いします。
改名提案

{{Rename}}

ページ名検討中: このページ名「Template 一覧」について改名が提案されています。ご意見をお寄せください。

注釈

テンプレート 用途 表示例

お知らせ

{{Notice}}

  • ページの内容について知らせたいことがあるときに。
  • お知らせの見出し・要約・案内ページを指定可。

お知らせこのページのノートをご覧ください。

募集中

{{募集中}}

情報募集中 次の情報を求めています。 該当部分を編集するか、このページのノートまたはフォーラム等で教えてください。

非推奨

{{非推奨}}

  • 非推奨となったテンプレートタグ・関数などのページに。
  • 後継タグ、バージョンなどを指定可
  • Category:非推奨

このテンプレートタグは非推奨となりました。後継となる新しいテンプレートタグが作られたか、動作対象外となり、WordPress の将来のバージョンで削除される見込みです。 このタグを使っていた場合は、後継のテンプレートタグがあれば切り替えてください。

WordPress ME 向け記述

{{相談中}}

  • 他の参加者に意見を求めたいときに。
  • コンテンツではなく、話し合っているノートページなどに貼ります。
  • Category:相談中
現在相談中の項目があります。

ページナビゲーション

ドキュメントの見る順序などをナビゲート

テンプレート 用途 表示例

スタートガイド

{{スタートガイド}}

  • WordPress 検討~インストール・初期設定までの手順に沿ってページを案内。
  • 引数を与えると、下位ページを展開表示。
  • ページ最上部に挿入
テーマ・テンプレートガイド

{{テーマ・テンプレートガイド}}

管理画面ガイド

{{管理画面ガイド}}

各テンプレートタグページのフッタ

通常は原文(英語版 Codex)に埋め込まれているので、自分で挿入する必要はありません。原文にないページを作成するときは、用途に合わせて挿入してください。

テンプレート 用途 表示例

著者テンプレートタグ用
{{Tag Author Tags}}

作成者タグ: the_author(), get_the_author(), the_author_link(), get_the_author_link(), the_author_meta(), get_the_author_meta(), the_author_posts(), get_the_author_posts(), the_author_posts_link(), get_author_posts_url(), get_the_modified_author(), the_modified_author(), wp_dropdown_users(), wp_list_authors()

リンク管理テンプレートタグ用

{{Bookmark Tags}}

ブックマークタグ: wp_list_bookmarks, get_bookmarks, get_bookmark get_bookmark_field

カテゴリーテンプレートタグ用

{{Tag Category Tags}}

カテゴリータグ: the_category(), the_category_rss(), single_cat_title(), category_description(), wp_dropdown_categories(), wp_list_categories(), get_the_category(), get_the_category_by_ID(), get_category_by_slug(), get_the_category_list(), get_category_parents(), get_category_link(), is_category(), in_category()

コメントテンプレートタグ用

{{Tag Comments Tags}}

コメント関数:

cancel_comment_reply_link(), comment_author(), comment_author_email(), comment_author_email_link(), comment_author_IP(), comment_author_link(), comment_author_rss(), comment_author_url(), comment_author_url_link(), comment_class(), comment_date(), comment_excerpt(), comment_form_title(), comment_form(), comment_ID(), comment_id_fields() / en, comment_reply_link(), comment_text(), comment_text_rss(), comment_time(), comment_type(), comments_link, comments_number(), comments_open(), comments_popup_link(), comments_popup_script(), comments_rss_link(), get_avatar(), next_comments_link(), paginate_comments_links(), permalink_comments_rss(), previous_comments_link(), wp_list_comments()


日時テンプレートタグ用

{{Tag Date Tags}}

日時に関連するタグ: get_calendar(), get_day_link(), get_month_link(), get_the_date(), get_the_time(), get_year_link(), single_month_title(), the_date(), the_date_xml(), the_modified_date(), get_the_modified_date(), the_modified_time(), get_the_modified_time(), the_time()

サイト・ディレクトリへのリンクタグ用

{{Directory URL Tags}}

WordPress ディレクトリ:
home_url() ホーム URL http://www.example.com
site_url() サイトディレクトリ URL http://www.example.com または http://www.example.com/wordpress
admin_url() 管理画面ディレクトリ URL http://www.example.com/wp-admin
includes_url() /en インクルードディレクトリ URL http://www.example.com/wp-includes
content_url() /en コンテンツディレクトリ URL http://www.example.com/wp-content
plugins_url() /en プラグインディレクトリ URL http://www.example.com/wp-content/plugins
wp_upload_dir() /en アップロードディレクトリ URL (配列を返す) http://www.example.com/wp-content/uploads


編集リンクタグ用

{{Edit Link Tags}}

リンク編集

edit_post_link, edit_comment_link, edit_tag_link, edit_bookmark_link /en

一般テンプレートタグ用

{{Tag General Tags}}

記事

コードドキュメンテーション

  • クラス: WP_Query - WP_Query クエリの詳細概要
  • オブジェクト: $wpdb - $wpdb オブジェクトの使い方概要
  • 関数: get_query_var()
  • 関数: query_posts() - 追加カスタムクエリの作成
  • 関数: get_post() - 項目の ID を使ってその投稿のレコードをデータベースから取得する
  • 関数: get_posts() - 項目の配列を返す特別な関数。
  • 関数: get_pages() - ページの配列を返す特別な関数。
  • 関数: have posts() - クエリが記事を返すかどうか判断する条件分岐。
  • 関数: the_post() - クエリの後に自動的にループを設定するのに使われる。
  • 関数: rewind_posts() - 現在のループをクリアする。
  • 関数: setup_postdata() - ループ内で単一クエリ結果のデータを設定する。
  • 関数: wp_reset_postdata() - 以前のクエリを復元する(通常、ループ内のもう一つのループで使われる)。
  • 関数: wp_reset_query()
  • 関数: is_main_query() - 変更するのがメインクエリであるよう保証する。
  • アクションフック: pre_get_posts - 実行される前に WordPress クエリを変更する。
  • アクションフック: the_post - 投稿オブジェクトをクエリの後に変更する。
  • フィルターフック: found_posts - found_posts WP_Query オブジェクトの値を変更する


関連

固定ページ: get_all_page_ids(), get_ancestors(), get_page_link(), get_page_by_path(), get_page_by_title(), get_page_children(), get_page_hierarchy(), get_page_uri() /en, get_pages(), is_page(), page_uri_index() /en, wp_list_pages(), wp_page_menu()


リスト・ドロップダウン関数: wp_list_authors(), wp_list_categories(), wp_list_pages(), wp_list_bookmarks(), wp_list_comments(), wp_get_archives(), wp_page_menu(), wp_dropdown_pages(), wp_dropdown_categories(), wp_dropdown_users()

ジオタグ用

{{Geo Tags}}

(ver.1.2.x までのタグなので不要と思われる)

print_Lat(), print_Lon(), print_UrlPopNav(), print_AcmeMap_Url(), print_GeoURL_Url(), print_GeoCache_Url(), print_MapQuest_Url(), print_SideBit_Url(), print_DegreeConfluence_Url(), print_TopoZone_Url(), print_FindU_Url(), print_MapTech_Url()

パーマリンクタグ用

{{Permalink Tags}}

get_permalink(), the_permalink(), post_permalink(), permalink_anchor(), permalink_single_rss()

投稿テンプレートタグ用

{{Tag Post Tags}}

投稿タグ: body_class(), next_image_link(), next_post_link(), next_posts_link(), post_class(), post_password_required(), posts_nav_link(), previous_image_link(), previous_post_link(), previous_posts_link(), single_post_title(), sticky_class(), the_category(), the_category_rss(), the_content(), the_content_rss(), the_excerpt(), the_excerpt_rss(), the_ID(), the_meta(), the_shortlink(), the_tags(), the_title(), the_title_attribute(), the_title_rss(), wp_link_pages(),

固定ページテンプレートタグ用

{{Page Tags}}

固定ページ:

get_all_page_ids(), get_ancestors(), get_page_link(), get_page_by_path(), get_page_by_title(), get_page_children(), get_page_hierarchy(), get_page_uri() /en, get_pages(), is_page(), page_uri_index() /en, wp_list_pages(), wp_page_menu()

投稿画像タグ用

{{Post Image Tags}}

投稿サムネイル: has_post_thumbnail(), the_post_thumbnail(), get_post_thumbnail_id(), get_the_post_thumbnail(), add_image_size(), set_post_thumbnail_size()

投稿メタ情報タグ用

{{Post Meta Tags}}

カスタムフィールド: the_meta(), get_post_meta(), add_post_meta(), update_post_meta(), delete_post_meta(), get_post_custom(), get_post_custom_values(), get_post_custom_keys() (post_meta 関数の例 /en も参照)

投稿タイプタグ用

{{Post Type Tags}}

投稿タイプ: register_post_type(), add_post_type_support(), remove_post_type_support(), post_type_supports(), post_type_exists(), set_post_type(), get_post_type(), get_post_types(), get_post_type_object(), get_post_type_capabilities(), get_post_type_labels(), is_post_type_hierarchical(), is_post_type_archive(), post_type_archive_title()

タグ・テンプレートタグ用

{{Tag Tag Tags}}

タグ: get_tag(), get_tag_link(), get_tags(), get_the_tag_list(), get_the_tags(), is_tag(), the_tags(), single_tag_title(), tag_description(), wp_generate_tag_cloud(), wp_tag_cloud()

トラックバック・テンプレートタグ用

{{Trackback Tags}}

trackback_url,

trackback_rdf

音声ファイル関連タグ用

{{Audio Tags}}

オーディオ:

wp_audio_shortcode(), wp_get_audio_extensions(), get_attached_audio(), get_attached_media(), get_embedded_audio(), get_embedded_media(), wp_embed_handler_audio(), wp_mediaelement_fallback(), wp_read_audio_metadata(), wp_add_id3_tag_data(), the_post_format_audio(), get_the_post_format_media(), get_content_audio(), get_content_media()


動画ファイル関連タグ用

{{Video Tags}}

ビデオ:

wp_video_shortcode(), wp_get_video_extensions(), get_attached_video(), get_attached_media(), get_embedded_video(), get_embedded_media(), wp_embed_handler_video(), wp_mediaelement_fallback(), wp_read_video_metadata(), wp_add_id3_tag_data(), the_post_format_video(), get_the_post_format_media(), get_content_video(), get_content_media()


PHP関数型テンプレートタグ用

{{PHP Function Tag Footer}}

クエリ文字列型テンプレートタグ用

{{Query String Tag Footer}}

パラメータなしテンプレートタグ用

{{No Param Tag Footer}}

テンプレートタグ新分類用:

テンプレート 用途 表示例

一覧出力テンプレートタグ
{{Lists Tags}}

リスト・ドロップダウン関数: wp_list_authors(), wp_list_categories(), wp_list_pages(), wp_list_bookmarks(), wp_list_comments(), wp_get_archives(), wp_page_menu(), wp_dropdown_pages(), wp_dropdown_categories(), wp_dropdown_users()

ログインテンプレートタグ用

{{Login Tags}}

ログインタグ: is_user_logged_in, wp_login_url, wp_logout_url, wp_lostpassword_url, wp_logout, wp_loginout, wp_register

インクルードタグ・条件分岐タグ:

テンプレート 用途 表示例

インクルードタグ
{{Include Tags}}

インクルードタグ: get_header(), get_footer(), get_sidebar(), get_template_part(), get_search_form(), comments_template()

条件分岐タグ

{{Conditional Tags}}

条件分岐タグ

is_404(), is_admin(), is_admin_bar_showing(), is_archive(), is_attachment(), is_author(), is_category(), is_comments_popup(), is_date(), is_day(), is_feed(), is_front_page(), is_home(), is_local_attachment(), is_main_query, /is_multi_author, is_month(), is_new_day(), is_page(), is_page_template(), is_paged(), is_plugin_active(), is_plugin_active_for_network() /en, is_plugin_inactive() /en, is_plugin_page() /en, is_post_type_archive(), is_preview() /en, is_search(), is_single(), is_singular(), is_sticky(), is_tag(), is_tax(), is_taxonomy_hierarchical(), is_time(), is_trackback(), is_year(), in_category(), in_the_loop(), is_active_sidebar(), is_active_widget(), is_blog_installed() /en, is_rtl(), is_dynamic_sidebar(), is_user_logged_in(), has_excerpt(), has_post_thumbnail(), has_tag(), pings_open(), email_exists(), post_type_exists(), taxonomy_exists(), term_exists(), username_exists() /en, wp_attachment_is_image(), wp_script_is()


テーマ:

テンプレート 用途 表示例

インクルードタグ
{{Theme Support}}

テーマサポート:

add_theme_support(), remove_theme_support(), current_theme_supports()
テーマ機能: サイドバー, ナビゲーションメニュー, 投稿フォーマット, 投稿サムネイル, カスタム背景, カスタムヘッダー, 自動フィードリンク, html5, コンテンツ幅, editor-style


Theme Modification API の関数

{{Theme Mod Tags}}

set_theme_mod(),

get_theme_mod(), get_theme_mods(), remove_theme_mod(), remove_theme_mods()


各関数ページのフッタ

API:

テンプレート 用途 表示例

ショートコード関数
{{Shortcode Tags}}

ショートコード: do_shortcode(), add_shortcode(), remove_shortcode(), remove_all_shortcodes(), shortcode_atts(), strip_shortcodes(), shortcode_exists(), has_shortcode(), get_shortcode_regex(), wp_audio_shortcode(), wp_video_shortcode(), フィルター no_texturize_shortcodes /en

ウィジェット関数

{{Widget Tags}}

ウィジェット API:

is_active_widget(), the_widget(), register_widget(), unregister_widget() / en, wp_register_widget_control() / en, wp_unregister_widget_control() / en, wp_convert_widget_settings() / en, wp_get_widget_defaults() / en, wp_widget_description() / en


アクション関数

{{Action Tags}}

アクション:

has_action(), add_action(), do_action(), do_action_ref_array(), did_action(), remove_action(), remove_all_actions()


フィルター関数

{{Filter Tags}}

フィルター:

has_filter(), add_filter(), apply_filters(), current_filter(), remove_filter(), remove_all_filters()


設定関数

{{Setting Tags}}

Settings API:

register_setting(), unregister_setting(), add_settings_field(), add_settings_section(), add_settings_error(), get_settings_errors(), settings_errors(), settings_fields(), do_settings_sections(), do_settings_fields()


その他の一般関数:

テンプレート 用途 表示例
管理メニュー関数

{{Admin Menu Tags}}

管理メニュー: add_menu_page(), remove_menu_page(), add_submenu_page() /en, remove_submenu_page() /en, add_dashboard_page() /en, add_posts_page() /en, add_media_page() /en, add_links_page() /en, add_pages_page() /en, add_comments_page() /en, add_theme_page() /en, add_plugins_page() /en, add_users_page() /en, add_management_page() /en, add_options_page()

オプション関数

{{Option Tags}}

Options API:

add_option() /en, add_site_option() /en, delete_option() /en, delete_site_option() /en, form_option() /en, get_site_option() /en, get_site_url(), get_user_option() /en, get_option() /en, update_option() /en, update_site_option() /en, update_user_option() /en, wp_load_alloptions() /en


ターム関数

{{Term Tags}}

タームタグ:

is_term(), term_exists(), get_objects_in_term(), get_term(), get_term_by(), get_term_children(), get_term_link(), get_terms(), get_the_terms(), get_the_term_list(), has_term(), sanitize_term(), the_terms(), get_object_taxonomies() is_object_in_taxonomy() the_taxonomies() wp_get_object_terms(), wp_set_object_terms(), wp_get_post_terms(), wp_set_post_terms(), wp_delete_object_term_relationships()


タクソノミー関数

{{Taxonomy Tags}}

カスタム分類:

get_taxonomy(), taxonomy_exists(), register_taxonomy(), get_taxonomies(), the_taxonomies(), get_taxonomy_labels(), get_taxonomy_template(), is_object_in_taxonomy(), get_the_taxonomies(), get_post_taxonomies(), get_object_taxonomies(), is_taxonomy_hierarchical()


無害化用の関数

{{sanitize functions}}

サニタイズ関数: sanitize_email(), sanitize_file_name(), sanitize_html_class(), sanitize_key(), sanitize_meta(), sanitize_mime_type(), sanitize_option(), sanitize_sql_orderby(), sanitize_post_field(), sanitize_text_field(), sanitize_title(), sanitize_title_for_query(), sanitize_title_with_dashes(), sanitize_user()

メール送信用の関数

{{Email Tags}}

各テンプレートページのフッタ

テンプレート 用途 表示例

テーマ・テンプレート
{{Theme Templates}}

テンプレート階層:

カテゴリーテンプレート, タグテンプレート, タクソノミーテンプレート, ページテンプレート, 投稿タイプテンプレート, 投稿者テンプレート, 日付テンプレート, 検索テンプレート, 404 テンプレート, 添付ファイルテンプレート, ループテンプレート /en


外部リンク

テンプレート 用途 表示例

Codex 原文へのリンク

{{原文}}

  • ページ本文の下・カテゴリの上に挿入
  • 版番号の指定により差分リンクも表示

最新英語版: WordPress Codex » 英語版 Codex ページ名

他のテンプレートタグサイトへのリンク

{{TagLink}}

原文

ソースコードへのリンク

{{BrowseSource}}

  • WordPress 本体のソースコードを参照できるよう Trac のソースブラウザにリンク
  • tags/x.x.x/ または trunk/ 下へリンク
  • 詳しくはテンプレートページ参照
readme.html

共用コンテンツ

コンテンツの部品としてテンプレート化し、他の複数ページ内に挿入するページ。

警告: 既定のソートキー「Templateいちらん」が、その前に書かれている既定のソートキー「かんりかめん」を上書きしています。