WordPressテンプレートタグ

一般タグ|General tags

テンプレートタグ説明
get_header()ヘッダー読み込み
get_footer()フッター読み込み
get_sidebar()サイドバー読み込み
get_template_part()テンプレート部分読み込み
get_search_form()検索フォーム出力
wp_loginout()ログイン/アウトリンク
wp_logout_url()ログアウトURL取得
wp_login_url()ログインURL取得
wp_login_form()ログインフォーム表示
wp_lostpassword_url()パスワード再発行URL取得
wp_register()登録リンク出力
wp_meta()メタ情報出力
bloginfo()サイト情報出力
get_bloginfo()サイト情報取得
get_current_blog_id()ブログ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()週開始調整取得
get_calendar()投稿カレンダー出力
delete_get_calendar_cache()カレンダーキャッシュ削除
allowed_tags()許可HTMLタグ取得
wp_enqueue_script()スクリプト登録読み込み

著者タグ|Author tags

テンプレートタグ説明
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()著者一覧URL取得

ブックマークタグ|Bookmark tags

テンプレートタグ説明
wp_list_bookmarks()ブックマークリスト
get_bookmark()単一ブックマーク取得
get_bookmark_field()ブックマーク項目取得
get_bookmarks()ブックマーク一覧取得

カテゴリータグ|Category tags

テンプレートタグ説明
category_description()カテゴリ説明表示
single_cat_title()カテゴリページタイトル
the_category()投稿カテゴリー表示
the_category_rss()RSS用カテゴリー表示
wp_dropdown_categories()カテゴリドロップダウン
wp_list_categories()カテゴリリスト出力
wp_list_pages()固定ページへのリンクのリストを表示
single_tag_title()タグページタイトル
tag_description()タグ説明表示
the_tags()投稿タグ表示
wp_generate_tag_cloud()タグクラウドHTML生成
wp_tag_cloud()タグクラウド表示
term_description()ターム説明表示
single_term_title()タームタイトル表示
get_the_term_list()タームリスト取得
the_terms()投稿ターム表示
the_taxonomies()投稿タクソノミー一覧
paginate_links()ページナビゲーションのリンクを生成

コメントタグ|Comment tags

テンプレートタグ説明
cancel_comment_reply_link()返信キャンセルリンク
comment_author()コメント投稿者表示
comment_author_email()投稿者メール表示
comment_author_email_link()投稿者メールリンク
comment_author_IP()投稿者IP表示
comment_author_link()投稿者URLリンク表示
comment_author_rss()RSS用投稿者表示
comment_author_url()投稿者URL表示
comment_author_url_link()投稿者URLリンク
comment_class()コメント用クラス付与
comment_date()コメント日付表示
comment_excerpt()コメント抜粋表示
comment_form_title()コメントフォーム見出し
comment_form()コメントフォーム出力
comment_ID()コメントID表示
comment_id_fields()hiddenフィールド出力
comment_reply_link()コメント返信リンク
comment_text()コメント本文表示
comment_text_rss()RSS用コメント表示
comment_time()コメント時刻表示
comment_type()コメントタイプ表示
comments_link()コメントリンク表示
comments_number()コメント数表示
comments_popup_link()ポップアップコメントリンク
comments_popup_script()ポップアップスクリプト
comments_rss_link()コメントRSSリンク
get_avatar()アバター画像取得
next_comments_link()次コメントページリンク
paginate_comments_links()コメントページ送りリンク
permalink_comments_rss()コメントRSSパーマリンク
previous_comments_link()前コメントページリンク
wp_list_comments()コメントリスト出力

リンクタグ|Link tags

テンプレートタグ説明
the_permalink()投稿リンク表示
user_trailingslashit()URL末尾スラッシュ調整
permalink_anchor()パーマリンクアンカー出力
get_permalink()投稿リンク取得
get_post_permalink()固定投稿リンク取得
post_permalink()投稿リンク出力
get_page_link()固定ページURL取得
get_attachment_link()添付ファイルリンク取得
wp_shortlink_header()Shortlinkヘッダー出力
wp_shortlink_wp_head()head内Shortlink出力
edit_bookmark_link()ブックマーク編集リンク
edit_comment_link()コメント編集リンク
edit_post_link()投稿編集リンク表示
get_edit_post_link()投稿編集リンク取得
get_delete_post_link()投稿削除リンク取得
edit_tag_link()タグ編集リンク表示
get_admin_url()管理画面URL取得
get_home_url()ホームURL取得
get_site_url()サイトURL取得
home_url()ホームURL簡易取得
site_url()サイトURL簡易取得
get_search_link()検索リンク取得
get_search_query()検索キーワード取得
the_feed_link()フィードリンク出力

投稿タグ|Post tags

テンプレートタグ説明
body_class()bodyタグにクラス付与
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()前投稿一覧リンク
sticky_class()スティッキークラス付与
the_content()本文表示
the_content_rss()RSS用本文表示
the_excerpt()抜粋表示
the_excerpt_rss()RSS用抜粋表示
the_ID()投稿ID表示
the_meta()カスタムフィールド表示
the_title()投稿タイトル表示
get_the_title()投稿タイトル取得
the_title_attribute()title属性表示
the_title_rss()RSS用タイトル表示
wp_link_pages()ページ分割ナビ表示
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()画像src情報取得
wp_get_attachment_metadata()添付メタ取得
get_the_date()投稿日取得
the_date()投稿日表示
the_date_xml()XML用日付表示
the_modified_author()更新著者表示
the_modified_date()更新日表示
the_modified_time()更新時刻表示
the_time()投稿日時表示
the_shortlink()Shortlink表示
wp_get_shortlink()Shortlink取得

投稿サムネイルタグ|Post Thumbnail tags

テンプレートタグ説明
has_post_thumbnail()アイキャッチあり判定
get_post_thumbnail_id()アイキャッチID取得
the_post_thumbnail()アイキャッチ表示
get_the_post_thumbnail()アイキャッチHTML取得

ナビゲーションタグ|Navigation Menu tags

テンプレートタグ説明
wp_nav_menu()ナビゲーション表示
walk_nav_menu_tree()メニュー構造表示