Wordpress template tag functions

Source: Internet
Author: User
The template tag (Templatetags) is used in the & nbsp; template & nbsp; file of the blog for dynamic display of content or custom websites. The following describes some commonly used WordPress tags, which are sorted by function. For more information about template tags and templates, see the following article: stepping?templatetags & nbsp;

Template tag (Template tags) in the blog? Template? File used to dynamically display content or customize websites. The following describes some commonly used WordPress tags, which are sorted by function.

For more information about template tags and templates, see the following article:

  • Stepping Into Template Tags? -Introduction to template tags.
  • Anatomy of a Template Tag? -Details on how to use tags in template files.
  • How to Pass Tag Parameters? -Details about how to use parameters in tags.
  • Include Tags? -Other tags involved when a template file contains another template file.
  • Condition tag? -The options provided by these labels make your template more flexible.
  • Function reference? -Functions related to WordPress core functions.
  • Deprecated Functions? -The label is not recommended.
  • Templates? -A comprehensive list of templates, themes, and tag resources.
  • Stepping Into Templates? -Introduction to the template file.

Note:? If you want to implement some template tags, we encourage you to improve its documentation so that other WordPress users can benefit from it. Please first look at the release to WordPress and Codex release for some help, when editing the Codex page to see the Codex guide ?.

Template tag
Tags that contain template files (Include tags)
  • Get_header
  • Get_sidebar
  • Get_search_form
  • Comments_template
  • Get_footer
Blog info tags)
  • Bloginfo
  • Bloginfo_rss
  • Get_bloginfo
  • Get_bloginfo_rss
Lists & Dropdown tags)
  • Wp_list_authors
  • Wp_list_categories? Display all categories in the form of a list
  • Wp_list_pages
  • Wp_list_bookmarks
  • Wp_list_comments
  • Wp_get_archives
  • Wp_page_menu
  • Wp_dropdown_pages
  • Wp_dropdown_categories? The following pull list shows all categories
  • Wp_dropdown_users
Login/Logout tags)
  • Is_user_logged_in
  • Wp_login_url
  • Wp_logout_url
  • Wp_lostpassword_url
  • Wp_registration_url
  • Wp_loginout
  • Wp_register
  • Wp_signon
Post tags)
  • The_ID
  • The_title
  • The_title_rss
  • The_title_attribute
  • Single_post_title
  • The_content
  • The_content_rss
  • The_excerpt? Obtains the abstract of an article. you can use a filter to set the number of words in the abstract.
  • The_excerpt_rss
  • Wp_link_pages
  • Posts_nav_link
  • Next_post_link
  • Next_posts_link
  • Previus_post_link
  • Previus_posts_link
  • Next_image_link
  • Previous_image_link
  • Sticky_class
  • The_category
  • The_category_rss
  • The_tags
  • The_meta
Comment tags)
  • Wp_list_comments
  • Comments_number
  • Comments_link
  • Comments_rss_link
  • Comments_popup_script
  • Comments_popup_link
  • Comment_ID
  • Comment_id_fields
  • Comment_author
  • Comment_author_link
  • Comment_author_email
  • Comment_author_email_link
  • Comment_author_url
  • Comment_author_url_link
  • Comment_author_IP
  • Comment_type
  • Comment_text
  • Comment_excerpt
  • Comment_date
  • Comment_time
  • Comment_form_title
  • Comment_author_rss
  • Comment_text_rss
  • Comment_link_rss
  • Permalink_comments_rss
  • Comment_reply_link
  • Cancel_comment_reply_link
  • Previous_comments_link
  • Next_comments_link
  • Paginate_comments_links
Date and Time tags)
  • The_time
  • The_date
  • The_date_xml
  • The_modified_time
  • The_modified_date
  • The_modified_author
  • Single_month_title
  • Get_the_time
  • Get_day_link
  • Get_month_link
  • Get_year_link
  • Get_calendar
Category tags)
  • Is_category
  • The_category
  • The_category_rss
  • Single_cat_title
  • Category_description
  • Wp_dropdown_categories
  • Wp_list_categories
  • Get_category_parents
  • Get_the_category
  • Get_category_link
  • In_category
Author information tag (Author tags)
  • The_author
  • The_author_link
  • The_author_posts
  • The_author_posts_link
  • The_author_meta
  • Wp_list_authors
  • Wp_dropdown_users
Article Tag (Tag tags)
  • Is_tag
  • The_tags
  • Tag_description
  • Single_tag_title
  • Wp_tag_cloud? The label cloud is displayed. the font size of the label is determined by the number of times the label appears in all articles.
  • Wp_generate_tag_cloud? Enter the specified tag array to generate the tag cloud
  • Get_the_tags
  • Get_the_tag_list
  • Get_tag_link
Edit Link tags)
  • Edit_post_link
  • Edit_comment_link
  • Edit_tag_link
  • Edit_bookmark_link
Permalink tags)
  • Permalink_anchor
  • Get_permalink
  • The_permalink
  • Permalink_single_rss
Link Manager tags)
  • Wp_list_bookmarks
  • Get_bookmarks
  • Get_bookmark
  • Get_bookmark_field
Trackback tags)
  • Trackback_url
  • Trackback_rdf
General tags)
  • Wp_title
  • Get_posts
  • Query_posts
  • The_search_query
Geo tags)
The following tags have been removed from the main program since WordPress 1.5 and become a plug-in.

  • Print_Lat? (The_Lat)
  • Print_Lon? (The_Lon)
  • Print_UrlPopNav? (The_UrlPopNav)
  • Print_AcmeMap_Url? (The_AcmeMap_Url)
  • Print_GeoURL_Url? (The_GeoURL_Url)
  • Print_GeoCache_Url? (The_GeoCache_Url)
  • Print_MapQuest_Url? (The_MapQuest_Url)
  • Print_SideBit_Url? (The_SideBit_Url)
  • Print_DegreeConfluence_Url (the_DegreeConfluence_Url)
  • Print_TopoZone_Url? (The_TopoZone_Url)
  • Print_FindU_Url? (The_FindU_Url)
  • Print_MapTech_Url? (The_MapTech_Url)
External resources
  • Szub.net: WordPress Template Tags reference page
  • Solutoire.com: Template Tag Dreamweaver extension (TAGStention)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.