- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「テンプレートタグ」の版間の差分
提供: WordPress Codex 日本語版
細 (カテゴリにソートキー付加) |
細 (最新情報へのリンクを追加。) |
||
(6人の利用者による、間の53版が非表示) | |||
1行目: | 1行目: | ||
− | + | <div class="important"> | |
− | + | '''このページは最新情報に追随して更新されていません'''。 | |
− | + | 最新のテンプレートタグ一覧については[https://developer.wordpress.org/reference/ コードリファレンス] (英語版) をご確認ください。 | |
+ | </div> | ||
+ | <br> | ||
+ | {{テーマ・テンプレートガイド}} | ||
__TOC__ | __TOC__ | ||
− | + | テンプレートタグは、ブログのデータを動的に表示したり、個性的で面白いブログにカスタマイズしたりするときに、[[テンプレート]]の中で使います。下記は、WordPress で使える一般ユーザー向けタグの機能別一覧です。 | |
− | + | テンプレートタグとテンプレートについての詳しい情報については、次のページをご覧ください。 | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | * [[テンプレートタグ入門]] | |
+ | * [[テンプレートタグ/Anatomy of a Template Tag|テンプレートタグ大解剖]] | ||
+ | * [[/タグパラメータの渡し方|テンプレートタグへのパラメータの渡し方]] (パラメータの使い方の詳細) | ||
+ | * [[インクルードタグ]] (テンプレートファイルを他のテンプレートファイルに読み込むための、下記には載っていないタグ) | ||
+ | * [[条件分岐タグ]] (ページの状況に応じて処理を変えたいときに使える、下記には載っていないタグ) | ||
+ | * [[関数リファレンス]] (その他の関数) | ||
+ | * [[:カテゴリ:非推奨|非推奨の関数]] (非推奨になったその他の関数) | ||
+ | * [[テンプレート]] (テンプレート、テーマ、タグの包括的なリスト) | ||
+ | * [[WordPress サイトデザイン リファレンス]] (テーマ・テンプレート・タグに関するページの総覧) | ||
− | + | <p class="information">各テンプレートタグの使い方を工夫したら、他の WordPress ユーザーのために、ぜひそのタグのページに用例として書き込んでください。</p> | |
− | + | <div id="Files"> | |
+ | == ファイル == | ||
+ | </div> | ||
− | + | テンプレートタグファイルは {{Trac|wp-includes}} ディレクトリに格納されています。他の WordPress ファイルと区別するため、"-template.php" 接尾辞がつけられています。以下が9個のテンプレートタグファイルです。 | |
− | + | * {{Trac|wp-includes/general-template.php}} | |
+ | * {{Trac|wp-includes/author-template.php}} | ||
+ | * {{Trac|wp-includes/bookmark-template.php}} | ||
+ | * {{Trac|wp-includes/category-template.php}} | ||
+ | * {{Trac|wp-includes/comment-template.php}} | ||
+ | * {{Trac|wp-includes/link-template.php}} | ||
+ | * {{Trac|wp-includes/post-template.php}} | ||
+ | * {{Trac|wp-includes/post-thumbnail-template.php}} | ||
+ | * {{Trac|wp-includes/nav-menu-template.php}} | ||
− | + | <div id="Tags"> | |
− | + | == タグ == | |
− | + | </div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | == | + | <div id="General_tags"> |
+ | === 一般タグ === | ||
+ | </div> | ||
− | + | {{Trac|wp-includes/general-template.php}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | * [[関数リファレンス/get_header | get_header()]] | |
+ | * [[関数リファレンス/get_footer | get_footer()]] | ||
+ | * [[関数リファレンス/get_sidebar | get_sidebar()]] | ||
+ | * [[関数リファレンス/get_template_part | get_template_part()]] | ||
+ | * [[関数リファレンス/get_search_form | get_search_form()]] | ||
+ | * [[テンプレートタグ/wp_loginout | wp_loginout()]] | ||
+ | * [[テンプレートタグ/wp_logout_url | wp_logout_url()]] | ||
+ | * [[関数リファレンス/wp_login_url | wp_login_url()]] | ||
+ | * [[テンプレートタグ/wp_login_form | wp_login_form()]] | ||
+ | * [[テンプレートタグ/wp_lostpassword_url | wp_lostpassword_url()]] | ||
+ | * [[テンプレートタグ/wp_register | wp_register()]] | ||
+ | * [[テンプレートタグ/wp_meta | wp_meta()]] | ||
+ | * [[テンプレートタグ/bloginfo | bloginfo()]] | ||
+ | * [[テンプレートタグ/get_bloginfo | get_bloginfo()]] | ||
+ | * [[関数リファレンス/get_current_blog_id | get_current_blog_id()]] | ||
+ | * [[テンプレートタグ/wp_title | wp_title()]] | ||
+ | * [[テンプレートタグ/single_post_title | single_post_title()]] | ||
+ | * [[関数リファレンス/post_type_archive_title | post_type_archive_title()]] | ||
+ | * [[テンプレートタグ/single_cat_title | single_cat_title()]] | ||
+ | * [[テンプレートタグ/single_tag_title | single_tag_title()]] | ||
+ | * [[関数リファレンス/single_term_title | single_term_title()]] | ||
+ | * [[テンプレートタグ/single_month_title | single_month_title()]] | ||
+ | * [[関数リファレンス/get_archives_link | get_archives_link()]] | ||
+ | * [[テンプレートタグ/wp_get_archives | wp_get_archives()]] | ||
+ | * [[関数リファレンス/calendar_week_mod | calendar_week_mod()]] /[[:en:Function_Reference/calendar_week_mod|en]] | ||
+ | * [[テンプレートタグ/get_calendar | get_calendar()]] | ||
+ | * [[関数リファレンス/delete_get_calendar_cache | delete_get_calendar_cache()]] /[https://developer.wordpress.org/reference/functions/delete_get_calendar_cache/ en] | ||
+ | * [[関数リファレンス/allowed_tags | allowed_tags()]] /[https://developer.wordpress.org/reference/functions/allowed_tags/ en] | ||
+ | <!-- * [[関数リファレンス/wp_ajaxurl|wp_ajaxurl()]] ?? Not defined in any WP file, at least until 12/01/19. --> | ||
+ | * [[関数リファレンス/wp_enqueue_script|wp_enqueue_script()]] | ||
− | + | <div id="Author_tags"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | == | + | ===投稿者タグ=== |
+ | </div> | ||
+ | {{Trac|wp-includes/author-template.php}} | ||
− | + | * [[テンプレートタグ/the_author | the_author()]] | |
− | + | * [[テンプレートタグ/get_the_author | get_the_author()]] | |
− | + | * [[テンプレートタグ/the_author_link | the_author_link()]] | |
− | + | * [[テンプレートタグ/get_the_author_link | get_the_author_link()]] | |
− | + | * [[テンプレートタグ/the_author_meta | the_author_meta()]] | |
− | + | * [[テンプレートタグ/the_author_posts | the_author_posts()]] | |
− | + | * [[テンプレートタグ/the_author_posts_link | the_author_posts_link()]] | |
− | + | * [[テンプレートタグ/wp_dropdown_users | wp_dropdown_users()]] | |
− | + | * [[テンプレートタグ/wp_list_authors | wp_list_authors()]] | |
− | + | * [[テンプレートタグ/get_author_posts_url | get_author_posts_url()]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | == | + | <div id="Bookmark_tags"> |
+ | ===ブックマークタグ=== | ||
+ | </div> | ||
+ | {{Trac|wp-includes/bookmark-template.php}} と {{Trac|wp-includes/bookmark.php}} | ||
− | + | * [[テンプレートタグ/wp_list_bookmarks | wp_list_bookmarks()]] | |
− | + | * [[テンプレートタグ/get_bookmark | get_bookmark()]] | |
− | + | * [[テンプレートタグ/get_bookmark_field | get_bookmark_field()]] / [[:en:Function_Reference/get_bookmark_field|en]] | |
− | + | * [[テンプレートタグ/get_bookmarks | get_bookmarks()]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | = | + | <div id="Category_tags"> |
− | + | ===カテゴリータグ=== | |
+ | </div> | ||
+ | {{Trac|wp-includes/category-template.php}} | ||
− | + | * [[テンプレートタグ/category_description | category_description()]] | |
− | + | * [[テンプレートタグ/single_cat_title | single_cat_title()]] | |
− | + | * [[テンプレートタグ/the_category | the_category()]] | |
− | + | * [[テンプレートタグ/the_category_rss | the_category_rss()]] | |
− | + | * [[テンプレートタグ/wp_dropdown_categories | wp_dropdown_categories()]] | |
− | + | * [[テンプレートタグ/wp_list_categories | wp_list_categories()]] | |
− | + | * [[テンプレートタグ/single_tag_title | single_tag_title()]] | |
− | + | * [[テンプレートタグ/tag_description | tag_description()]] | |
− | + | * [[テンプレートタグ/the_tags | the_tags()]] | |
− | + | * [[テンプレートタグ/wp_generate_tag_cloud | wp_generate_tag_cloud()]] | |
− | + | * [[テンプレートタグ/wp_tag_cloud | wp_tag_cloud()]] | |
− | + | * [[関数リファレンス/term_description | term_description()]] | |
+ | * [[関数リファレンス/single_term_title | single_term_title()]] | ||
+ | * [[関数リファレンス/get_the_term_list | get_the_term_list()]] | ||
+ | * [[関数リファレンス/the_terms | the_terms()]] | ||
+ | * [[関数リファレンス/the_taxonomies | the_taxonomies()]] | ||
− | == | + | <div id="Comment_tags"> |
+ | ===コメントタグ=== | ||
+ | </div> | ||
+ | {{Trac|wp-includes/comment-template.php}} | ||
− | + | * [[テンプレートタグ/cancel_comment_reply_link | cancel_comment_reply_link()]] | |
− | + | * [[テンプレートタグ/comment_author | comment_author()]] | |
− | + | * [[テンプレートタグ/comment_author_email | comment_author_email()]] | |
− | + | * [[テンプレートタグ/comment_author_email_link | comment_author_email_link()]] | |
− | + | * [[テンプレートタグ/comment_author_IP | comment_author_IP()]] | |
− | + | * [[テンプレートタグ/comment_author_link | comment_author_link()]] | |
− | + | * [[テンプレートタグ/comment_author_rss | comment_author_rss()]] | |
+ | * [[テンプレートタグ/comment_author_url | comment_author_url()]] | ||
+ | * [[テンプレートタグ/comment_author_url_link | comment_author_url_link()]] | ||
+ | * [[テンプレートタグ/comment_class|comment_class()]] | ||
+ | * [[テンプレートタグ/comment_date | comment_date()]] | ||
+ | * [[テンプレートタグ/comment_excerpt | comment_excerpt()]] | ||
+ | * [[テンプレートタグ/comment_form_title | comment_form_title()]] / [[:en:Function_Reference/comment_form_title|en]] | ||
+ | * [[テンプレートタグ/comment_form|comment_form()]] | ||
+ | * [[テンプレートタグ/comment_ID | comment_ID()]] | ||
+ | * [[テンプレートタグ/comment_id_fields | comment_id_fields()]] / [[:en:Function_Reference/comment_id_fields|en]] | ||
+ | * [[テンプレートタグ/comment_reply_link | comment_reply_link()]] | ||
+ | * [[テンプレートタグ/comment_text | comment_text()]] | ||
+ | * [[テンプレートタグ/comment_text_rss | comment_text_rss()]] | ||
+ | * [[テンプレートタグ/comment_time | comment_time()]] | ||
+ | * [[テンプレートタグ/comment_type | comment_type()]] | ||
+ | * [[テンプレートタグ/comments_link | comments_link()]] | ||
+ | * [[テンプレートタグ/comments_number | comments_number()]] | ||
+ | * [[テンプレートタグ/comments_popup_link | comments_popup_link()]] | ||
+ | * [[テンプレートタグ/comments_popup_script | comments_popup_script()]] | ||
+ | * [[テンプレートタグ/comments_rss_link | comments_rss_link()]] | ||
+ | * [[関数リファレンス/get_avatar | get_avatar()]] | ||
+ | * [[テンプレートタグ/next_comments_link | next_comments_link()]] | ||
+ | * [[関数リファレンス/paginate_comments_links|paginate_comments_links()]] | ||
+ | * [[テンプレートタグ/permalink_comments_rss | permalink_comments_rss()]] | ||
+ | * [[テンプレートタグ/previous_comments_link | previous_comments_link()]] | ||
+ | * [[テンプレートタグ/wp_list_comments | wp_list_comments()]] | ||
− | = | + | <div id="Link_tags"> |
− | + | ===リンクタグ=== | |
− | + | </div> | |
− | + | {{Trac|wp-includes/link-template.php}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | * [[テンプレートタグ/the_permalink | the_permalink()]] | |
+ | * [[テンプレートタグ/user_trailingslashit | user_trailingslashit()]] / [[:en:Function_Reference/user_trailingslashit|en]] | ||
+ | * [[テンプレートタグ/permalink_anchor | permalink_anchor()]] | ||
+ | * [[テンプレートタグ/get_permalink | get_permalink()]] | ||
+ | * [[テンプレートタグ/get_post_permalink|get_post_permalink()]] | ||
+ | * [[テンプレートタグ/post_permalink | post_permalink()]] / [[:en:Function_Reference/post_permalink|en]] | ||
+ | * [[関数リファレンス/get_page_link | get_page_link()]] | ||
+ | * [[テンプレートタグ/get_attachment_link | get_attachment_link()]] | ||
+ | * [[テンプレートタグ/wp_shortlink_header|wp_shortlink_header()]] /[https://developer.wordpress.org/reference/functions/wp_shortlink_header/ en] | ||
+ | * [[テンプレートタグ/wp_shortlink_wp_head|wp_shortlink_wp_head()]] /[https://developer.wordpress.org/reference/functions/wp_shortlink_wp_head/ en] | ||
+ | * [[テンプレートタグ/edit_bookmark_link | edit_bookmark_link()]] / [[:en:Function_Reference/edit_bookmark_link|en]] | ||
+ | * [[テンプレートタグ/edit_comment_link | edit_comment_link()]] | ||
+ | * [[テンプレートタグ/edit_post_link | edit_post_link()]] | ||
+ | * [[テンプレートタグ/get_edit_post_link | get_edit_post_link()]] / [[:en:Template_Tags/get_edit_post_link|en]] | ||
+ | * [[テンプレートタグ/get_delete_post_link | get_delete_post_link()]] / [[:en:Function_Reference/get_delete_post_link|en]] | ||
+ | * [[テンプレートタグ/edit_tag_link | edit_tag_link()]] | ||
+ | * [[テンプレートタグ/get_admin_url|get_admin_url()]] / [[:en:Function_Reference/get_admin_url|en]] | ||
+ | * [[テンプレートタグ/get_home_url|get_home_url()]] | ||
+ | * [[テンプレートタグ/get_site_url|get_site_url()]] | ||
+ | * [[テンプレートタグ/home_url|home_url()]] | ||
+ | * [[テンプレートタグ/site_url|site_url()]] | ||
+ | * [[テンプレートタグ/get_search_link|get_search_link()]] / [[:en:Function_Reference/get_search_link|en]] | ||
+ | * [[関数リファレンス/get_search_query|get_search_query()]] / [[:en:Function_Reference/get_search_query|en]] | ||
+ | * [[テンプレートタグ/the_feed_link|the_feed_link()]] / [[:en:Function_Reference/the_feed_link|en]] | ||
− | + | <div id="Post_tags"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | == | + | ===投稿タグ=== |
+ | </div> | ||
+ | {{Trac|wp-includes/post-template.php}} | ||
− | + | * [[テンプレートタグ/body_class | body_class()]] | |
− | + | * [[関数リファレンス/next_image_link | next_image_link()]] / [[:en:Function_Reference/next_image_link|en]] | |
− | + | * [[テンプレートタグ/next_post_link | next_post_link()]] | |
− | + | * [[テンプレートタグ/next_posts_link | next_posts_link()]] | |
− | + | * [[テンプレートタグ/post_class | post_class()]] | |
− | : | + | * [[テンプレートタグ/post_password_required | post_password_required()]] |
− | : | + | * [[テンプレートタグ/posts_nav_link | posts_nav_link()]] |
− | + | * [[関数リファレンス/previous_image_link | previous_image_link()]] / [[:en:Function_Reference/previous_image_link|en]] | |
− | + | * [[テンプレートタグ/previous_post_link | previous_post_link()]] | |
− | + | * [[テンプレートタグ/previous_posts_link | previous_posts_link()]] / [[:en:Function_Reference/previous_posts_link|en]] | |
− | : | + | * [[テンプレートタグ/single_post_title | single_post_title()]] |
− | + | * [[関数リファレンス/sticky_class | sticky_class()]] (非推奨) | |
− | + | * [[テンプレートタグ/the_category | the_category()]] | |
− | + | * [[テンプレートタグ/the_category_rss | the_category_rss()]] | |
− | + | * [[テンプレートタグ/the_content | the_content()]] | |
− | + | * [[テンプレートタグ/the_content_rss | the_content_rss()]] | |
− | + | * [[テンプレートタグ/the_excerpt | the_excerpt()]] | |
− | + | * [[テンプレートタグ/the_excerpt_rss | the_excerpt_rss()]] | |
+ | * [[テンプレートタグ/the_ID | the_ID()]] | ||
+ | * [[テンプレートタグ/the_meta | the_meta()]] | ||
+ | * [[テンプレートタグ/the_tags | the_tags()]] | ||
+ | * [[テンプレートタグ/the_title | the_title()]] | ||
+ | * [[関数リファレンス/get_the_title | get_the_title()]] / [[:en:Function_Reference/get_the_title|en]] | ||
+ | * [[テンプレートタグ/the_title_attribute | the_title_attribute()]] | ||
+ | * [[テンプレートタグ/the_title_rss | the_title_rss()]] | ||
+ | * [[テンプレートタグ/wp_link_pages | wp_link_pages()]] | ||
+ | * [[テンプレートタグ/get_attachment_link | get_attachment_link()]] | ||
+ | * [[テンプレートタグ/wp_get_attachment_link | wp_get_attachment_link()]] | ||
+ | * [[テンプレートタグ/the_attachment_link | the_attachment_link()]] | ||
+ | * [[テンプレートタグ/the_search_query | the_search_query()]] | ||
+ | * [[関数リファレンス/is_attachment | is_attachment()]] | ||
+ | * [[関数リファレンス/wp_attachment_is_image | wp_attachment_is_image()]] | ||
+ | * [[テンプレートタグ/wp_get_attachment_image | wp_get_attachment_image()]] | ||
+ | * [[関数リファレンス/wp_get_attachment_image_src | wp_get_attachment_image_src()]] | ||
+ | * [[関数リファレンス/wp_get_attachment_metadata | wp_get_attachment_metadata()]] | ||
+ | * [[テンプレートタグ/get_the_date | get_the_date()]] | ||
+ | * [[テンプレートタグ/single_month_title | single_month_title()]] | ||
+ | * [[テンプレートタグ/the_date | the_date()]] | ||
+ | * [[テンプレートタグ/the_date_xml | the_date_xml()]] | ||
+ | * [[テンプレートタグ/the_modified_author | the_modified_author()]] | ||
+ | * [[テンプレートタグ/the_modified_date | the_modified_date()]] | ||
+ | * [[テンプレートタグ/the_modified_time | the_modified_time()]] | ||
+ | * [[テンプレートタグ/the_time | the_time()]] | ||
+ | * [[テンプレートタグ/the_shortlink|the_shortlink()]] | ||
+ | * [[関数リファレンス/wp_get_shortlink|wp_get_shortlink()]] / [[:en:Function_Reference/wp_get_shortlink|en]] | ||
− | = | + | <div id="Post_Thumbnail_tags"> |
− | + | ===アイキャッチ画像タグ=== | |
− | + | </div> | |
+ | {{Trac|wp-includes/post-thumbnail-template.php}} | ||
− | + | * [[テンプレートタグ/has_post_thumbnail | has_post_thumbnail()]] | |
+ | * [[テンプレートタグ/get_post_thumbnail_id | get_post_thumbnail_id()]] | ||
+ | * [[テンプレートタグ/the_post_thumbnail | the_post_thumbnail()]] | ||
+ | * [[テンプレートタグ/get_the_post_thumbnail | get_the_post_thumbnail()]] | ||
− | + | <div id="Navigation_Menu_tags"> | |
− | * [ | + | ===ナビゲーションメニュータグ=== |
− | * [ | + | </div> |
− | + | {{Trac|wp-includes/nav-menu-template.php}} | |
+ | |||
+ | * [[テンプレートタグ/wp_nav_menu | wp_nav_menu()]] | ||
+ | * [[関数リファレンス/walk_nav_menu_tree | walk_nav_menu_tree()]] /[https://developer.wordpress.org/reference/functions/walk_nav_menu_tree/ en] | ||
+ | |||
+ | <div id="Resources"> | ||
+ | |||
+ | ===リソース=== | ||
+ | </div> | ||
+ | |||
+ | * [[:Category:テンプレートタグ|テンプレートタグカテゴリー]] | ||
+ | |||
+ | {{原文|Template Tags|151256}}<!-- 18:54, 29 April 2015 Hotwebideas 版 --> | ||
{{DEFAULTSORT:てんふれえとたく}} | {{DEFAULTSORT:てんふれえとたく}} | ||
[[Category:デザインとレイアウト]] | [[Category:デザインとレイアウト]] | ||
− | [[Category:テンプレートタグ]] | + | [[Category:テンプレートタグ|*]] |
+ | [[Category:wp2.1]] | ||
+ | [[Category:wp2.3]] | ||
+ | [[Category:wp2.7]] | ||
+ | [[Category:wp2.8]] | ||
+ | [[Category:wp2.9]] | ||
+ | [[Category:wp3.0]] | ||
+ | |||
+ | [[en:Template Tags]] | ||
+ | [[es:Template Tags]] | ||
+ | [[de:Template Tags]] | ||
+ | [[fr:Marqueurs de Modele]] | ||
+ | [[it:Marcatori Template]] | ||
+ | [[ko:Template Tags]] | ||
+ | [[pt-br:Template Tags]]<!-- DBに登録すると言語間リンクになるので、削除・コメントアウト等しないでください。bono --> | ||
+ | [[ru:Теги шаблона]] | ||
+ | [[th:Template Tags]] | ||
+ | [[tr:Tema Etiketleri]] | ||
+ | [[zh-hans:模板标签]] | ||
+ | [[zh-tw:範本標籤]] |
2020年9月27日 (日) 00:00時点における最新版
このページは最新情報に追随して更新されていません。 最新のテンプレートタグ一覧についてはコードリファレンス (英語版) をご確認ください。
目次
テンプレートタグは、ブログのデータを動的に表示したり、個性的で面白いブログにカスタマイズしたりするときに、テンプレートの中で使います。下記は、WordPress で使える一般ユーザー向けタグの機能別一覧です。
テンプレートタグとテンプレートについての詳しい情報については、次のページをご覧ください。
- テンプレートタグ入門
- テンプレートタグ大解剖
- テンプレートタグへのパラメータの渡し方 (パラメータの使い方の詳細)
- インクルードタグ (テンプレートファイルを他のテンプレートファイルに読み込むための、下記には載っていないタグ)
- 条件分岐タグ (ページの状況に応じて処理を変えたいときに使える、下記には載っていないタグ)
- 関数リファレンス (その他の関数)
- 非推奨の関数 (非推奨になったその他の関数)
- テンプレート (テンプレート、テーマ、タグの包括的なリスト)
- WordPress サイトデザイン リファレンス (テーマ・テンプレート・タグに関するページの総覧)
各テンプレートタグの使い方を工夫したら、他の WordPress ユーザーのために、ぜひそのタグのページに用例として書き込んでください。
ファイル
テンプレートタグファイルは wp-includes
ディレクトリに格納されています。他の WordPress ファイルと区別するため、"-template.php" 接尾辞がつけられています。以下が9個のテンプレートタグファイルです。
-
wp-includes/general-template.php
-
wp-includes/author-template.php
-
wp-includes/bookmark-template.php
-
wp-includes/category-template.php
-
wp-includes/comment-template.php
-
wp-includes/link-template.php
-
wp-includes/post-template.php
-
wp-includes/post-thumbnail-template.php
-
wp-includes/nav-menu-template.php
タグ
wp-includes/general-template.php
- get_header()
- get_footer()
- get_sidebar()
- get_template_part()
- get_search_form()
- wp_loginout()
- wp_logout_url()
- wp_login_url()
- wp_login_form()
- wp_lostpassword_url()
- wp_register()
- wp_meta()
- bloginfo()
- get_bloginfo()
- get_current_blog_id()
- wp_title()
- single_post_title()
- post_type_archive_title()
- single_cat_title()
- single_tag_title()
- single_term_title()
- single_month_title()
- get_archives_link()
- wp_get_archives()
- calendar_week_mod() /en
- get_calendar()
- delete_get_calendar_cache() /en
- allowed_tags() /en
- wp_enqueue_script()
wp-includes/author-template.php
- the_author()
- get_the_author()
- the_author_link()
- get_the_author_link()
- the_author_meta()
- the_author_posts()
- the_author_posts_link()
- wp_dropdown_users()
- wp_list_authors()
- get_author_posts_url()
wp-includes/bookmark-template.php
と wp-includes/bookmark.php
wp-includes/category-template.php
- category_description()
- single_cat_title()
- the_category()
- the_category_rss()
- wp_dropdown_categories()
- wp_list_categories()
- single_tag_title()
- tag_description()
- the_tags()
- wp_generate_tag_cloud()
- wp_tag_cloud()
- term_description()
- single_term_title()
- get_the_term_list()
- the_terms()
- the_taxonomies()
wp-includes/comment-template.php
- 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() / en
- 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_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()
- the_permalink()
- user_trailingslashit() / en
- permalink_anchor()
- get_permalink()
- get_post_permalink()
- post_permalink() / en
- get_page_link()
- get_attachment_link()
- wp_shortlink_header() /en
- wp_shortlink_wp_head() /en
- edit_bookmark_link() / en
- edit_comment_link()
- edit_post_link()
- get_edit_post_link() / en
- get_delete_post_link() / en
- edit_tag_link()
- get_admin_url() / en
- get_home_url()
- get_site_url()
- home_url()
- site_url()
- get_search_link() / en
- get_search_query() / en
- the_feed_link() / en
- body_class()
- next_image_link() / en
- next_post_link()
- next_posts_link()
- post_class()
- post_password_required()
- posts_nav_link()
- previous_image_link() / en
- previous_post_link()
- previous_posts_link() / en
- 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_tags()
- the_title()
- get_the_title() / en
- the_title_attribute()
- the_title_rss()
- wp_link_pages()
- get_attachment_link()
- wp_get_attachment_link()
- the_attachment_link()
- the_search_query()
- is_attachment()
- wp_attachment_is_image()
- wp_get_attachment_image()
- wp_get_attachment_image_src()
- wp_get_attachment_metadata()
- get_the_date()
- single_month_title()
- the_date()
- the_date_xml()
- the_modified_author()
- the_modified_date()
- the_modified_time()
- the_time()
- the_shortlink()
- wp_get_shortlink() / en
wp-includes/post-thumbnail-template.php
wp-includes/nav-menu-template.php
リソース
最新英語版: WordPress Codex » Template Tags (最新版との差分)