模板标签列表

模板标签的完整列表

模板标签文件存储在该wp-includes目录中。这些文件的后缀为“-template.php”,以区别于其他 WordPress 文件。有 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_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()
  • 博客信息()
  • 获取博客信息()
  • 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()
  • 获取日历()
  • delete_get_calendar_cache()
  • 允许的标签()
  • wp_enqueue_script()

作者标签

wp-includes/author-template.php

  • 作者()
  • 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.phpwp-includes/bookmark.php

  • wp_list_bookmarks()
  • 获取书签()
  • get_bookmark_field()
  • get_bookmarks()

分类标签

wp-includes/category-template.php

  • 类别描述()
  • single_cat_title()
  • the_category()
  • the_category_rss()
  • wp_dropdown_categories()
  • wp_list_categories()
  • single_tag_title()
  • 标签描述()
  • the_tags()
  • wp_generate_tag_cloud()
  • wp_tag_cloud()
  • 术语描述()
  • single_term_title()
  • get_the_term_list()
  • 条款()
  • the_taxonomies()

评论标签

wp-includes/comment-template.php

  • 取消评论回复链接()
  • 评论作者()
  • comment_author_email()
  • comment_author_email_link()
  • comment_author_IP()
  • 评论作者链接()
  • comment_author_rss()
  • comment_author_url()
  • comment_author_url_link()
  • 评论类()
  • 评论日期()
  • 评论摘录()
  • comment_form_title()
  • 评论表格()
  • 评论编号()
  • comment_id_fields()
  • comment_reply_link()
  • 评论文本()
  • comment_text_rss()
  • 评论时间()
  • 评论类型()
  • 评论链接()
  • 评论数()
  • comments_popup_link()
  • 获取头像()
  • next_comments_link()
  • paginate_comments_links()
  • permalink_comments_rss()
  • previous_comments_link()
  • wp_list_comments()

链接标签

wp-includes/link-template.php

  • the_permalink()
  • user_trailingslashit()
  • 永久链接锚点()
  • get_permalink()
  • get_post_permalink()
  • get_page_link()
  • 获取附件链接()
  • wp_shortlink_header()
  • wp_shortlink_wp_head()
  • 编辑书签链接()
  • 编辑评论链接()
  • 编辑帖子链接()
  • get_edit_post_link()
  • get_delete_post_link()
  • 编辑标签链接()
  • get_admin_url()
  • get_home_url()
  • get_site_url()
  • home_url()
  • 网站网址()
  • 获取搜索链接()
  • get_search_query()
  • the_feed_link()
  • the_privacy_policy_link()
  • get_the_privacy_policy_link()

发布标签

wp-includes/post-template.php

  • 身体类()
  • 下一张图片链接()
  • 下一篇文章链接()
  • 下一篇文章链接()
  • post_class()
  • post_password_required()
  • posts_nav_link()
  • previous_image_link()
  • previous_post_link()
  • 以前的帖子链接()
  • single_post_title()
  • the_category()
  • the_category_rss()
  • 内容()
  • the_excerpt()
  • the_excerpt_rss()
  • the_ID()
  • the_meta()
  • the_tags()
  • 标题()
  • get_the_title()
  • the_title_attribute()
  • the_title_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()
  • wp_get_attachment_metadata()
  • 获取日期()
  • single_month_title()
  • 日期()
  • the_date_xml()
  • the_modified_author()
  • the_modified_date()
  • the_modified_time()
  • 时间()
  • the_shortlink()
  • wp_get_shortlink()

发布缩略图标签

wp-includes/post-thumbnail-template.php

  • has_post_thumbnail()
  • get_post_thumbnail_id()
  • the_post_thumbnail()
  • get_the_post_thumbnail()

导航菜单标签

wp-includes/nav-menu-template.php

  • wp_nav_menu()
  • walk_nav_menu_tree()

也可以看看

  • 条件标签