Useful WordPress Template Tags for Theme Development

by Kawsar Ali
on June 23, 2010

in Tutorials

Template tags can be used in your wordpress theme to display information dynamically or retrieving information about your wordpress blog. In this post we will show you some easy and useful wordpress template tag that you can use in your theme.

Template tags are codes that instructs wordpress “get” something/information for example to getting your wordpress blog description, title, category. The great part of using template tags is you can avoid using plugins, which can certainly make your website faster. Before we get started you should have the basic knoweldge of PHP, since wordpress is built on it. Also, just to make sure you must wrap all with codes with <?php (all codes here) ?> .

Listing Wordpress Categories

This tag is used to retrieve all the categories in your blog. You can also pass different parameters to exclude some categories or other functions. The simplest way to pull your category is :
[cc escaped="true"]
wp_list_categories(”);

[/cc]
The result you will get it is

Read More
Page 14 of 23« First...1213141516...Last »