What are Template tags and how to use them?

kumkumsharma

Administrator
Staff member
Templates tags are used to fetch and display dynamic data. There are many built-in template tags available in Wordpress. Template tags are PHP functions which helps to work in Wordpress PHP Templates. In simple words if we want to understand, these are predefined simple functions used to perform particular actions.

Like in this example there isa tag used to display author of current post or page:

Code:
The_author()
 
Top