Forums

Template Tags? (2 posts)

  1. zave
    Member
    Posted 2 years ago #

    Hello everyone. In the WP codex, there is a section devoted entirely to the subject of template tags. There is even a long list of different types of tags, of many different types. According to the information I have, per the PHP Manual, and the book entitled PHP and MYSQL Web Development, Fourth Edition, Luke Welling and Laura Thomson, the only things called tags, are the opening and closing PHP tags. What then, are these things? Is this simply a case of people calling the same thing by two different names?

  2. cnc137
    Member
    Posted 2 years ago #

    PHP development language tags are totally different than WordPress Template Tags.

    The WordPress Template Tags are built-in PHP functions that you can call from your WordPress templates to retrieve and display different things. You place WordPress Template Tags in your templates to display things like the title (the_title), author (the_author), and date (the_date) of your post or to display a list of your categories (wp_list_categories) for example.

    You may run across the term "Tags" in WordPress when creating a post. these tags are keyword that you assign to the current post that help define the content of the post. These "tags" don't have anything to do with PHP or Template Tags.

Topic Closed

This topic has been closed to new replies.

About this Topic