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:
And here’s the tag used to display the author of the current post or page:
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.