- 赤色のリンクは、まだ日本語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 == | ||
− | * [[ | + | * [[/the_author | the_author]] |
− | * [[ | + | * [[/the_author_description | the_author_description]] |
− | * [[ | + | * [[/the_author_login | the_author_login]] |
− | * [[ | + | * [[/the_author_firstname | the_author_firstname]] |
− | * [[ | + | * [[/the_author_lastname | the_author_lastname]] |
− | * [[ | + | * [[/the_author_nickname | the_author_nickname]] |
− | * [[ | + | * [[/the_author_ID | the_author_ID]] |
− | * [[ | + | * [[/the_author_email | the_author_email]] |
− | * [[ | + | * [[/the_author_url | the_author_url]] |
− | * [[ | + | * [[/the_author_link | the_author_link]] (Version 2.1) |
− | * [[ | + | * [[/the_author_icq | the_author_icq]] |
− | * [[ | + | * [[/the_author_aim | the_author_aim]] |
− | * [[ | + | * [[/the_author_yim | the_author_yim]] |
− | * [[ | + | * [[/the_author_msn | the_author_msn]] |
− | * [[ | + | * [[/the_author_posts | the_author_posts]] |
− | * [[ | + | * [[/the_author_posts_link | the_author_posts_link]] |
− | * [[ | + | * [[/list_authors | list_authors]] (Deprecated) |
− | * [[ | + | * [[/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 == | ||
− | * [[ | + | * [[/the_category | the_category]] |
− | * [[ | + | * [[/the_category_rss | the_category_rss]] |
− | * [[ | + | * [[/the_category_ID | the_category_ID]] (Deprecated) |
− | * [[ | + | * [[/the_category_head | the_category_head]] (Deprecated) |
− | * [[ | + | * [[/single_cat_title | single_cat_title]] |
− | * [[ | + | * [[/category_description | category_description]] |
− | * [[ | + | * [[/wp_dropdown_categories | wp_dropdown_categories]] (Version 2.1) |
− | * [[ | + | * [[/dropdown_cats | dropdown_cats]] (Deprecated in 2.1) |
− | * [[ | + | * [[/wp_list_categories | wp_list_categories]] (Version 2.1) |
− | * [[ | + | * [[/list_cats | list_cats]] (Deprecated in 2.1) |
− | * [[ | + | * [[/wp_list_cats | wp_list_cats]] (Deprecated in 2.1) |
− | * [[ | + | * [[/in_category | in_category]] |
− | * [[ | + | * [[/get_category_parents | get_category_parents]] |
− | * [[ | + | * [[/get_the_category | get_the_category]] |
|- valign="top" | |- valign="top" | ||
63行目: | 65行目: | ||
== Comment tags == | == Comment tags == | ||
− | * [[ | + | * [[/comments_number | comments_number]] |
− | * [[ | + | * [[/comments_link | comments_link]] |
− | * [[ | + | * [[/comments_rss_link | comments_rss_link]] |
− | * [[ | + | * [[/comments_popup_script | comments_popup_script]] |
− | * [[ | + | * [[/comments_popup_link | comments_popup_link]] |
− | * [[ | + | * [[/comment_ID | comment_ID]] |
− | * [[ | + | * [[/comment_author | comment_author]] |
− | * [[ | + | * [[/comment_author_IP | comment_author_IP]] |
− | * [[ | + | * [[/comment_author_email | comment_author_email]] |
− | * [[ | + | * [[/comment_author_url | comment_author_url]] |
− | * [[ | + | * [[/comment_author_email_link | comment_author_email_link]] |
− | * [[ | + | * [[/comment_author_url_link | comment_author_url_link]] |
− | * [[ | + | * [[/comment_author_link | comment_author_link]] |
− | * [[ | + | * [[/comment_type | comment_type]] |
− | * [[ | + | * [[/comment_text | comment_text]] |
− | * [[ | + | * [[/comment_excerpt | comment_excerpt]] |
− | * [[ | + | * [[/comment_date | comment_date]] |
− | * [[ | + | * [[/comment_time | comment_time]] |
− | * [[ | + | * [[/comment_author_rss | comment_author_rss]] |
− | * [[ | + | * [[/comment_text_rss | comment_text_rss]] |
− | * [[ | + | * [[/comment_link_rss | comment_link_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 == | ||
− | * [[ | + | * [[/the_date_xml | the_date_xml]] |
− | * [[ | + | * [[/the_date | the_date]] |
− | * [[ | + | * [[/the_time | the_time]] |
− | * [[ | + | * [[/the_modified_date | the_modified_date]] (Version 2.1) |
− | * [[ | + | * [[/the_modified_time | the_modified_time]] |
− | * [[ | + | * [[/get_the_time | get_the_time]] (Version 1.5) |
− | * [[ | + | * [[/single_month_title | single_month_title]] |
− | * [[ | + | * [[/get_calendar | get_calendar]] |
− | * [[ | + | * [[/the_weekday | the_weekday]] |
− | * [[ | + | * [[/the_weekday_date | the_weekday_date]] |
|- valign="top" | |- valign="top" | ||
105行目: | 107行目: | ||
== General tags == | == General tags == | ||
− | * [[ | + | * [[/bloginfo | bloginfo]] |
− | * [[ | + | * [[/bloginfo_rss | bloginfo_rss]] |
− | * [[ | + | * [[/get_bloginfo | get_bloginfo]] |
− | * [[ | + | * [[/get_bloginfo_rss | get_bloginfo_rss]] |
− | * [[ | + | * [[/wp_title | wp_title]] |
− | * [[ | + | * [[/wp_get_archives | wp_get_archives]] |
− | * [[ | + | * [[/get_archives | get_archives]] (Deprecated in 2.1) |
− | * [[ | + | * [[/get_calendar | get_calendar]] |
− | * [[ | + | * [[/get_posts | get_posts]] |
− | * [[ | + | * [[/wp_list_pages | wp_list_pages]] (Version 1.5) |
− | * [[ | + | * [[/wp_dropdown_pages | wp_dropdown_pages]] |
− | * [[ | + | * [[/wp_loginout | wp_loginout]] (Version 1.5) |
− | * [[ | + | * [[/wp_register | wp_register]] (Version 1.5) |
− | * [[ | + | * [[/query_posts | query_posts]] (Version 1.5) |
− | * [[ | + | * [[/rss_enclosure | rss_enclosure]] (Version 1.5) |
− | * [[ | + | * [[/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. | ||
− | * [[ | + | * [[/print_Lat | print_Lat]] (the_Lat) |
− | * [[ | + | * [[/print_Lon | print_Lon]] (the_Lon) |
− | * [[ | + | * [[/print_UrlPopNav | print_UrlPopNav]] (the_UrlPopNav) |
− | * [[ | + | * [[/print_AcmeMap_Url | print_AcmeMap_Url]] (the_AcmeMap_Url) |
− | * [[ | + | * [[/print_GeoURL_Url | print_GeoURL_Url]] (the_GeoURL_Url) |
− | * [[ | + | * [[/print_GeoCache_Url | print_GeoCache_Url]] (the_GeoCache_Url) |
− | * [[ | + | * [[/print_MapQuest_Url | print_MapQuest_Url]] (the_MapQuest_Url) |
− | * [[ | + | * [[/print_SideBit_Url | print_SideBit_Url]] (the_SideBit_Url) |
− | * [[ | + | * [[/print_DegreeConfluence_Url | print_DegreeConfluence_Url]] (the_DegreeConfluence_Url) |
− | * [[ | + | * [[/print_TopoZone_Url | print_TopoZone_Url]] (the_TopoZone_Url) |
− | * [[ | + | * [[/print_FindU_Url | print_FindU_Url]] (the_FindU_Url) |
− | * [[ | + | * [[/print_MapTech_Url | print_MapTech_Url]] (the_MapTech_Url) |
|- valign="top" | |- valign="top" | ||
146行目: | 148行目: | ||
== Link tags == | == Link tags == | ||
− | * [[ | + | * [[/edit_post_link | edit_post_link]] |
− | * [[ | + | * [[/edit_comment_link | edit_comment_link]] |
− | * [[ | + | * [[/wp_link_pages | wp_link_pages]] |
− | * [[ | + | * [[/link_pages | link_pages]] (Deprecated in 2.1) |
− | * [[ | + | * [[/get_year_link | get_year_link]] |
− | * [[ | + | * [[/get_month_link | get_month_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 == | ||
− | * [[ | + | * [[/get_links_list | get_links_list]] |
− | * [[ | + | * [[/wp_get_links | wp_get_links]] |
− | * [[ | + | * [[/get_links | get_links]] |
− | * [[ | + | * [[/wp_list_bookmarks | wp_list_bookmarks]] (Version 2.1) |
− | * [[ | + | * [[/wp_get_linksbyname | wp_get_linksbyname]] (Deprecated in 2.1) |
− | * [[ | + | * [[/get_linksbyname | get_linksbyname]] (Deprecated in 2.1) |
|- valign="top" | |- valign="top" | ||
170行目: | 172行目: | ||
== Permalink tags == | == Permalink tags == | ||
− | * [[ | + | * [[/permalink_anchor | permalink_anchor]] |
− | * [[ | + | * [[/get_permalink | get_permalink]] |
− | * [[ | + | * [[/the_permalink | the_permalink]] |
− | * [[ | + | * [[/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 == | ||
− | * [[ | + | * [[/the_ID | the_ID]] |
− | * [[ | + | * [[/the_title | the_title]] |
− | * [[ | + | * [[/single_post_title | single_post_title]] |
− | * [[ | + | * [[/the_title_rss | the_title_rss]] |
− | * [[ | + | * [[/the_content | the_content]] |
− | * [[ | + | * [[/the_content_rss | the_content_rss]] |
− | * [[ | + | * [[/the_excerpt | the_excerpt]] |
− | * [[ | + | * [[/the_excerpt_rss | the_excerpt_rss]] |
− | * [[ | + | * [[/previous_post_link | previous_post_link]] |
− | * [[ | + | * [[/previous_post | previous_post]] (Deprecated) |
− | * [[ | + | * [[/next_post_link | next_post_link]] |
− | * [[ | + | * [[/next_post | next_post]] (Deprecated) |
− | * [[ | + | * [[/posts_nav_link | posts_nav_link]] |
− | * [[ | + | * [[/the_tags | the_tags]] (Version 2.3) |
|- valign="top" | |- valign="top" | ||
198行目: | 200行目: | ||
== Trackback tags == | == Trackback tags == | ||
− | * [[ | + | * [[/trackback_url | trackback_url]] |
− | * [[ | + | * [[/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: | + | [[Category:デザインとレイアウト]] |
− | [[Category: | + | [[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:
- Stepping Into Template Tags (an introduction to Template Tags)
- Anatomy of a Template Tag (details of how to put Tags into Template files)
- How to Pass Tag Parameters (details of how to use Parameters with Tags)
- Include Tags (additional tags not shown here, related to including one Template file within another)
- Conditional Tags (more additional tags not shown here, related to making your Templates more flexible with options)
- Templates (a comprehensive list of Template, Theme, and Tag resources)
- Stepping Into Templates (introduction to Template files)
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).