Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

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 a template tag, you're encouraged to add to its documentation for the benefit of other WordPress users. However, first see Contributing to WordPress and Codex:Contributing for help and guidelines on editing Codex pages.

Files

Template tags files are stored in the wp-includes directory. The files have the suffix of "-template.php" to distinguish them from other WordPress files. There are 9 template tags files:

Tags

General tags

wp-includes/general-template.php

Author tags

wp-includes/author-template.php

Bookmark tags

wp-includes/bookmark-template.php and wp-includes/bookmark.php

Category tags

wp-includes/category-template.php

Comment tags

wp-includes/comment-template.php

Link tags

wp-includes/link-template.php

Post tags

wp-includes/post-template.php

Post Thumbnail tags

wp-includes/post-thumbnail-template.php

Navigation Menu tags

wp-includes/nav-menu-template.php

Resources

External Resources