Difference between revisions of "WordPress Template Tag"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
Line 2: Line 2:
  
 
Not to be confused with [[HTML]] tags, which also appear in Templates.
 
Not to be confused with [[HTML]] tags, which also appear in Templates.
 +
 +
== Example: bloginfo() ==
 +
 +
The code below displays the name of the blog:
 +
 +
<pre>
 +
<?php bloginfo('name'); ?>
 +
</pre>
  
 
== See also ==
 
== See also ==

Revision as of 21:05, 11 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'); ?>

See also

External links