Introductions to Template Tags
The files of WordPress define many useful PHP functions. Some of the functions, known as Template Tags, are defined especially for use in WordPress Themes. There are also some functions related to actions and filters (the Plugin API), which are therefore used primarily for developing Plugins. The rest are used to create the core WordPress functionality. There also other API in WordPress which have more functions in it.
Template Tags :
Template tags are used within your blog’s Templates to display information dynamically or otherwise customize your blog.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 :
- 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