Difference between revisions of "WordPress Template Tag"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(External links)
(See also)
Line 19: Line 19:
 
== See also ==
 
== See also ==
  
 +
* [[WordPress function]]
 
* [[WordPress Loop]]
 
* [[WordPress Loop]]
 
* [[WordPress Template]]
 
* [[WordPress Template]]

Revision as of 17:54, 25 October 2016

In WordPress, Template Tags are units of PHP code used within WordPress Templates to display various types of information.

Not to be confused with HTML tags, which also appear in Templates.

Example: bloginfo()

The code below displays the name of the blog:

<?php bloginfo('name'); ?>

It is often used in the header.php file, along with HTML, like this:

<h1><?php bloginfo('name'); ?></h1>

See also

External links