What Are WordPress Template Tags?
In this video, we’re going to take a look at WordPress template tags.
If you’re a PHP developer, you’ll recognize that template tags are simply functions. They are used to either do something or return something inside your WordPress template files.
WordPress template tags are often clearly and simply named. For example, here’s the tag used to display the author of the current post or page:
the_author()
And here’s the tag used to display the author of the current post or page:
the_title()
In this video from the “Introduction to WordPress Theme Development” class, Topher introduces template tags, shows the documentation available, and provides several examples from a theme.
the_author()