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

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

「テンプレートタグ」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
(en:Template Tags 15:42, 26 Jun 2007 Johannes 版)
 
(リンクから親ページ名削除(/からでいけそうなので))
1行目: 1行目:
 +
[[:en:Template Tags|WordPress Codex » Template Tags]]
 +
 
__TOC__
 
__TOC__
 
Template tags are used within your blog's [[Templates]] to display information dynamically or otherwise customize your blog, providing the tools to make it as individual and interesting as you are. Below is a list of the general user tags available in WordPress, sorted by function-specific category.<br />
 
Template tags are used within your blog's [[Templates]] to display information dynamically or otherwise customize your blog, providing the tools to make it as individual and interesting as you are. Below is a list of the general user tags available in WordPress, sorted by function-specific category.<br />
20行目: 22行目:
 
== Author tags ==
 
== Author tags ==
  
* [[Template_Tags/the_author | the_author]]
+
* [[/the_author | the_author]]
* [[Template_Tags/the_author_description | the_author_description]]
+
* [[/the_author_description | the_author_description]]
* [[Template_Tags/the_author_login | the_author_login]]
+
* [[/the_author_login | the_author_login]]
* [[Template_Tags/the_author_firstname | the_author_firstname]]
+
* [[/the_author_firstname | the_author_firstname]]
* [[Template_Tags/the_author_lastname | the_author_lastname]]
+
* [[/the_author_lastname | the_author_lastname]]
* [[Template_Tags/the_author_nickname | the_author_nickname]]
+
* [[/the_author_nickname | the_author_nickname]]
* [[Template_Tags/the_author_ID | the_author_ID]]
+
* [[/the_author_ID | the_author_ID]]
* [[Template_Tags/the_author_email | the_author_email]]
+
* [[/the_author_email | the_author_email]]
* [[Template_Tags/the_author_url | the_author_url]]
+
* [[/the_author_url | the_author_url]]
* [[Template_Tags/the_author_link | the_author_link]] (Version 2.1)
+
* [[/the_author_link | the_author_link]] (Version 2.1)
* [[Template_Tags/the_author_icq | the_author_icq]]
+
* [[/the_author_icq | the_author_icq]]
* [[Template_Tags/the_author_aim | the_author_aim]]
+
* [[/the_author_aim | the_author_aim]]
* [[Template_Tags/the_author_yim | the_author_yim]]
+
* [[/the_author_yim | the_author_yim]]
* [[Template_Tags/the_author_msn | the_author_msn]]
+
* [[/the_author_msn | the_author_msn]]
* [[Template_Tags/the_author_posts | the_author_posts]]
+
* [[/the_author_posts | the_author_posts]]
* [[Template_Tags/the_author_posts_link | the_author_posts_link]]
+
* [[/the_author_posts_link | the_author_posts_link]]
* [[Template_Tags/list_authors | list_authors]] (Deprecated)
+
* [[/list_authors | list_authors]] (Deprecated)
* [[Template_Tags/wp_list_authors | wp_list_authors]]
+
* [[/wp_list_authors | wp_list_authors]]
  
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
43行目: 45行目:
 
== Category tags ==
 
== Category tags ==
  
* [[Template_Tags/the_category | the_category]]
+
* [[/the_category | the_category]]
* [[Template_Tags/the_category_rss | the_category_rss]]
+
* [[/the_category_rss | the_category_rss]]
* [[Template_Tags/the_category_ID | the_category_ID]] (Deprecated)
+
* [[/the_category_ID | the_category_ID]] (Deprecated)
* [[Template_Tags/the_category_head | the_category_head]] (Deprecated)
+
* [[/the_category_head | the_category_head]] (Deprecated)
* [[Template_Tags/single_cat_title | single_cat_title]]
+
* [[/single_cat_title | single_cat_title]]
* [[Template_Tags/category_description | category_description]]
+
* [[/category_description | category_description]]
* [[Template_Tags/wp_dropdown_categories | wp_dropdown_categories]] (Version 2.1)
+
* [[/wp_dropdown_categories | wp_dropdown_categories]] (Version 2.1)
* [[Template_Tags/dropdown_cats | dropdown_cats]] (Deprecated in 2.1)
+
* [[/dropdown_cats | dropdown_cats]] (Deprecated in 2.1)
* [[Template_Tags/wp_list_categories | wp_list_categories]] (Version 2.1)
+
* [[/wp_list_categories | wp_list_categories]] (Version 2.1)
* [[Template_Tags/list_cats | list_cats]] (Deprecated in 2.1)
+
* [[/list_cats | list_cats]] (Deprecated in 2.1)
* [[Template_Tags/wp_list_cats | wp_list_cats]] (Deprecated in 2.1)
+
* [[/wp_list_cats | wp_list_cats]] (Deprecated in 2.1)
* [[Template_Tags/in_category | in_category]]
+
* [[/in_category | in_category]]
* [[Template_Tags/get_category_parents | get_category_parents]]
+
* [[/get_category_parents | get_category_parents]]
* [[Template_Tags/get_the_category | get_the_category]]
+
* [[/get_the_category | get_the_category]]
  
 
|- valign="top"
 
|- valign="top"
63行目: 65行目:
 
== Comment tags ==
 
== Comment tags ==
  
* [[Template_Tags/comments_number | comments_number]]
+
* [[/comments_number | comments_number]]
* [[Template_Tags/comments_link | comments_link]]
+
* [[/comments_link | comments_link]]
* [[Template_Tags/comments_rss_link | comments_rss_link]]
+
* [[/comments_rss_link | comments_rss_link]]
* [[Template_Tags/comments_popup_script | comments_popup_script]]
+
* [[/comments_popup_script | comments_popup_script]]
* [[Template_Tags/comments_popup_link | comments_popup_link]]
+
* [[/comments_popup_link | comments_popup_link]]
* [[Template_Tags/comment_ID | comment_ID]]
+
* [[/comment_ID | comment_ID]]
* [[Template_Tags/comment_author | comment_author]]
+
* [[/comment_author | comment_author]]
* [[Template_Tags/comment_author_IP | comment_author_IP]]
+
* [[/comment_author_IP | comment_author_IP]]
* [[Template_Tags/comment_author_email | comment_author_email]]
+
* [[/comment_author_email | comment_author_email]]
* [[Template_Tags/comment_author_url | comment_author_url]]
+
* [[/comment_author_url | comment_author_url]]
* [[Template_Tags/comment_author_email_link | comment_author_email_link]]
+
* [[/comment_author_email_link | comment_author_email_link]]
* [[Template_Tags/comment_author_url_link | comment_author_url_link]]
+
* [[/comment_author_url_link | comment_author_url_link]]
* [[Template_Tags/comment_author_link | comment_author_link]]
+
* [[/comment_author_link | comment_author_link]]
* [[Template_Tags/comment_type | comment_type]]
+
* [[/comment_type | comment_type]]
* [[Template_Tags/comment_text | comment_text]]
+
* [[/comment_text | comment_text]]
* [[Template_Tags/comment_excerpt | comment_excerpt]]
+
* [[/comment_excerpt | comment_excerpt]]
* [[Template_Tags/comment_date | comment_date]]
+
* [[/comment_date | comment_date]]
* [[Template_Tags/comment_time | comment_time]]
+
* [[/comment_time | comment_time]]
* [[Template_Tags/comment_author_rss | comment_author_rss]]
+
* [[/comment_author_rss | comment_author_rss]]
* [[Template_Tags/comment_text_rss | comment_text_rss]]
+
* [[/comment_text_rss | comment_text_rss]]
* [[Template_Tags/comment_link_rss | comment_link_rss]]
+
* [[/comment_link_rss | comment_link_rss]]
* [[Template_Tags/permalink_comments_rss | permalink_comments_rss]]
+
* [[/permalink_comments_rss | permalink_comments_rss]]
  
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
 
== Date and Time tags ==
 
== Date and Time tags ==
  
* [[Template_Tags/the_date_xml | the_date_xml]]
+
* [[/the_date_xml | the_date_xml]]
* [[Template_Tags/the_date | the_date]]
+
* [[/the_date | the_date]]
* [[Template_Tags/the_time | the_time]]
+
* [[/the_time | the_time]]
* [[Template_Tags/the_modified_date | the_modified_date]] (Version 2.1)
+
* [[/the_modified_date | the_modified_date]] (Version 2.1)
* [[Template_Tags/the_modified_time | the_modified_time]]
+
* [[/the_modified_time | the_modified_time]]
* [[Template_Tags/get_the_time | get_the_time]] (Version 1.5)
+
* [[/get_the_time | get_the_time]] (Version 1.5)
* [[Template_Tags/single_month_title | single_month_title]]
+
* [[/single_month_title | single_month_title]]
* [[Template_Tags/get_calendar | get_calendar]]
+
* [[/get_calendar | get_calendar]]
* [[Template_Tags/the_weekday | the_weekday]]  
+
* [[/the_weekday | the_weekday]]  
* [[Template_Tags/the_weekday_date | the_weekday_date]]  
+
* [[/the_weekday_date | the_weekday_date]]  
  
 
|- valign="top"
 
|- valign="top"
105行目: 107行目:
 
== General tags ==
 
== General tags ==
  
* [[Template_Tags/bloginfo | bloginfo]]
+
* [[/bloginfo | bloginfo]]
* [[Template_Tags/bloginfo_rss | bloginfo_rss]]
+
* [[/bloginfo_rss | bloginfo_rss]]
* [[Template_Tags/get_bloginfo | get_bloginfo]]
+
* [[/get_bloginfo | get_bloginfo]]
* [[Template_Tags/get_bloginfo_rss | get_bloginfo_rss]]
+
* [[/get_bloginfo_rss | get_bloginfo_rss]]
* [[Template_Tags/wp_title | wp_title]]
+
* [[/wp_title | wp_title]]
* [[Template_Tags/wp_get_archives | wp_get_archives]]
+
* [[/wp_get_archives | wp_get_archives]]
* [[Template_Tags/get_archives | get_archives]] (Deprecated in 2.1)
+
* [[/get_archives | get_archives]] (Deprecated in 2.1)
* [[Template_Tags/get_calendar | get_calendar]]
+
* [[/get_calendar | get_calendar]]
* [[Template_Tags/get_posts | get_posts]]
+
* [[/get_posts | get_posts]]
* [[Template_Tags/wp_list_pages | wp_list_pages]] (Version 1.5)
+
* [[/wp_list_pages | wp_list_pages]] (Version 1.5)
* [[Template_Tags/wp_dropdown_pages | wp_dropdown_pages]]  
+
* [[/wp_dropdown_pages | wp_dropdown_pages]]  
* [[Template_Tags/wp_loginout | wp_loginout]] (Version 1.5)
+
* [[/wp_loginout | wp_loginout]] (Version 1.5)
* [[Template_Tags/wp_register | wp_register]] (Version 1.5)
+
* [[/wp_register | wp_register]] (Version 1.5)
* [[Template_Tags/query_posts | query_posts]] (Version 1.5)
+
* [[/query_posts | query_posts]] (Version 1.5)
* [[Template_Tags/rss_enclosure | rss_enclosure]] (Version 1.5)
+
* [[/rss_enclosure | rss_enclosure]] (Version 1.5)
* [[Template_Tags/wp_tag_cloud | wp_tag_cloud]] (Version 2.3)
+
* [[/wp_tag_cloud | wp_tag_cloud]] (Version 2.3)
  
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
128行目: 130行目:
 
Geo features were moved to a plugin implementation with WordPress 1.5. Tags in parentheses are the plugin version.
 
Geo features were moved to a plugin implementation with WordPress 1.5. Tags in parentheses are the plugin version.
  
* [[Template_Tags/print_Lat | print_Lat]] (the_Lat)
+
* [[/print_Lat | print_Lat]] (the_Lat)
* [[Template_Tags/print_Lon | print_Lon]] (the_Lon)
+
* [[/print_Lon | print_Lon]] (the_Lon)
* [[Template_Tags/print_UrlPopNav | print_UrlPopNav]] (the_UrlPopNav)
+
* [[/print_UrlPopNav | print_UrlPopNav]] (the_UrlPopNav)
* [[Template_Tags/print_AcmeMap_Url | print_AcmeMap_Url]] (the_AcmeMap_Url)
+
* [[/print_AcmeMap_Url | print_AcmeMap_Url]] (the_AcmeMap_Url)
* [[Template_Tags/print_GeoURL_Url | print_GeoURL_Url]] (the_GeoURL_Url)
+
* [[/print_GeoURL_Url | print_GeoURL_Url]] (the_GeoURL_Url)
* [[Template_Tags/print_GeoCache_Url | print_GeoCache_Url]] (the_GeoCache_Url)
+
* [[/print_GeoCache_Url | print_GeoCache_Url]] (the_GeoCache_Url)
* [[Template_Tags/print_MapQuest_Url | print_MapQuest_Url]] (the_MapQuest_Url)
+
* [[/print_MapQuest_Url | print_MapQuest_Url]] (the_MapQuest_Url)
* [[Template_Tags/print_SideBit_Url | print_SideBit_Url]] (the_SideBit_Url)
+
* [[/print_SideBit_Url | print_SideBit_Url]] (the_SideBit_Url)
* [[Template_Tags/print_DegreeConfluence_Url | print_DegreeConfluence_Url]] (the_DegreeConfluence_Url)
+
* [[/print_DegreeConfluence_Url | print_DegreeConfluence_Url]] (the_DegreeConfluence_Url)
* [[Template_Tags/print_TopoZone_Url | print_TopoZone_Url]] (the_TopoZone_Url)
+
* [[/print_TopoZone_Url | print_TopoZone_Url]] (the_TopoZone_Url)
* [[Template_Tags/print_FindU_Url | print_FindU_Url]] (the_FindU_Url)
+
* [[/print_FindU_Url | print_FindU_Url]] (the_FindU_Url)
* [[Template_Tags/print_MapTech_Url | print_MapTech_Url]] (the_MapTech_Url)
+
* [[/print_MapTech_Url | print_MapTech_Url]] (the_MapTech_Url)
  
 
|- valign="top"
 
|- valign="top"
146行目: 148行目:
 
== Link tags ==
 
== Link tags ==
  
* [[Template_Tags/edit_post_link | edit_post_link]]
+
* [[/edit_post_link | edit_post_link]]
* [[Template_Tags/edit_comment_link | edit_comment_link]]
+
* [[/edit_comment_link | edit_comment_link]]
* [[Template_Tags/wp_link_pages | wp_link_pages]]
+
* [[/wp_link_pages | wp_link_pages]]
* [[Template_Tags/link_pages | link_pages]] (Deprecated in 2.1)
+
* [[/link_pages | link_pages]] (Deprecated in 2.1)
* [[Template_Tags/get_year_link | get_year_link]]
+
* [[/get_year_link | get_year_link]]
* [[Template_Tags/get_month_link | get_month_link]]
+
* [[/get_month_link | get_month_link]]
* [[Template_Tags/get_day_link | get_day_link]]
+
* [[/get_day_link | get_day_link]]
  
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
158行目: 160行目:
 
== Links Manager tags ==
 
== Links Manager tags ==
  
* [[Template_Tags/get_links_list | get_links_list]]
+
* [[/get_links_list | get_links_list]]
* [[Template_Tags/wp_get_links | wp_get_links]]
+
* [[/wp_get_links | wp_get_links]]
* [[Template_Tags/get_links | get_links]]
+
* [[/get_links | get_links]]
* [[Template_Tags/wp_list_bookmarks | wp_list_bookmarks]] (Version 2.1)
+
* [[/wp_list_bookmarks | wp_list_bookmarks]] (Version 2.1)
* [[Template_Tags/wp_get_linksbyname | wp_get_linksbyname]] (Deprecated in 2.1)
+
* [[/wp_get_linksbyname | wp_get_linksbyname]] (Deprecated in 2.1)
* [[Template_Tags/get_linksbyname | get_linksbyname]] (Deprecated in 2.1)
+
* [[/get_linksbyname | get_linksbyname]] (Deprecated in 2.1)
  
 
|- valign="top"
 
|- valign="top"
170行目: 172行目:
 
== Permalink tags ==
 
== Permalink tags ==
  
* [[Template_Tags/permalink_anchor | permalink_anchor]]
+
* [[/permalink_anchor | permalink_anchor]]
* [[Template_Tags/get_permalink | get_permalink]]
+
* [[/get_permalink | get_permalink]]
* [[Template_Tags/the_permalink | the_permalink]]
+
* [[/the_permalink | the_permalink]]
* [[Template_Tags/permalink_single_rss | permalink_single_rss]]
+
* [[/permalink_single_rss | permalink_single_rss]]
  
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
 
|valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"|
 
== Post tags ==
 
== Post tags ==
  
* [[Template_Tags/the_ID | the_ID]]
+
* [[/the_ID | the_ID]]
* [[Template_Tags/the_title | the_title]]
+
* [[/the_title | the_title]]
* [[Template_Tags/single_post_title | single_post_title]]
+
* [[/single_post_title | single_post_title]]
* [[Template_Tags/the_title_rss | the_title_rss]]
+
* [[/the_title_rss | the_title_rss]]
* [[Template_Tags/the_content | the_content]]
+
* [[/the_content | the_content]]
* [[Template_Tags/the_content_rss | the_content_rss]]
+
* [[/the_content_rss | the_content_rss]]
* [[Template_Tags/the_excerpt | the_excerpt]]
+
* [[/the_excerpt | the_excerpt]]
* [[Template_Tags/the_excerpt_rss | the_excerpt_rss]]
+
* [[/the_excerpt_rss | the_excerpt_rss]]
* [[Template_Tags/previous_post_link | previous_post_link]]
+
* [[/previous_post_link | previous_post_link]]
* [[Template_Tags/previous_post | previous_post]] (Deprecated)
+
* [[/previous_post | previous_post]] (Deprecated)
* [[Template_Tags/next_post_link | next_post_link]]
+
* [[/next_post_link | next_post_link]]
* [[Template_Tags/next_post | next_post]] (Deprecated)
+
* [[/next_post | next_post]] (Deprecated)
* [[Template_Tags/posts_nav_link | posts_nav_link]]
+
* [[/posts_nav_link | posts_nav_link]]
* [[Template_Tags/the_tags | the_tags]] (Version 2.3)
+
* [[/the_tags | the_tags]] (Version 2.3)
  
 
|- valign="top"
 
|- valign="top"
198行目: 200行目:
 
== Trackback tags ==
 
== Trackback tags ==
  
* [[Template_Tags/trackback_url | trackback_url]]
+
* [[/trackback_url | trackback_url]]
* [[Template_Tags/trackback_rdf | trackback_rdf]]
+
* [[/trackback_rdf | trackback_rdf]]
  
 
|}
 
|}
208行目: 210行目:
 
* [http://solutoire.com/tagstention/ Solutoire.com: Template Tag Dreamweaver extension (TAGStention)]
 
* [http://solutoire.com/tagstention/ Solutoire.com: Template Tag Dreamweaver extension (TAGStention)]
  
[[Category:Design and Layout]]
+
[[Category:デザインとレイアウト]]
[[Category:Template Tags]]
+
[[Category:テンプレートタグ]]

2007年7月4日 (水) 18:11時点における版

WordPress Codex » Template Tags

Template tags are used within your blog's Templates to display information dynamically or otherwise customize your blog, providing the tools to make it as individual and interesting as you are. Below is a list of the general user tags available in WordPress, sorted by function-specific category.

For further information on template tags and templates in general, see the following:

Note: If you have an interesting twist on the implementation of one or more tags, feel free to add an example for the benefit of other WordPress users.

Note: Some of these tags are new as of some version of WordPress (and are noted as, for instance, "Version 2.1" in the lists below). Some tags were deprecated in versions 2.0.x (and are noted as "Deprecated" below). Some tags from have been deprecated in 2.1 (and are noted as "Deprecated in 2.1" below).

Author tags

Category tags

Comment tags

Date and Time tags

General tags

Geo tags

Geo features were moved to a plugin implementation with WordPress 1.5. Tags in parentheses are the plugin version.

Link tags

Links Manager tags

Permalink tags

Post tags

Trackback tags

External Resources