What Are WordPress Template Tags?

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()

Author

  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x