WordPress Template Tag

by Yan

What is a Template Tag? It is a php tag used within your blog’s Templates to display information dynamically.

Say you want to display the recent 10 posts on your sidebar, you probably need the following tag

where 10 is the no. of posts to display.

Now have you ever got yourself lost while searching for the right template tag to use? In my opinion, WordPress.org Codex may not be the most user-friendly resource guide for any beginners, there are times when you just couldn’t understand which tag is used with what parameters.

WordPress Template Tag Reference Guide

Here comes WordPress Template Tag Reference Guide by DBS>Interactive, the simplest yet the most user-friendly WordPress Tag reference guide I have come across so far.

The content was reformatted for quick reference from the Template Tag section of the WordPress.org Codex, everything here is categorized for easy navigation.

If you tweak and modify your WordPress Theme on regular basis, this handy WordPress guide is something you’ll probably wouldn’t want to miss. It’s definitely one of those useful things on my bookmark list.

[via Hack WordPress]

Related posts

{ 8 comments… read them below or add one }

EmmaB July 15, 2008 at 11:38 am

Nice find, Yan!
Never knew about that resource!

EmmaB’s last blog post..Need Contest Sponsors

Reply

pizza oven July 15, 2008 at 1:59 pm

I bookmarked the page, thanks. I used two of the new-to-me tags today.

Reply

Yan July 15, 2008 at 6:20 pm

@EmmaB & Rado: You are welcome! Thank you…

Reply

Diego July 16, 2008 at 4:58 am

Thank you for the info, very useful!!

Diego’s last blog post..Top 10 Worst Natural Disasters and Catastrophes (2007)

Reply

Technology For Non Techies July 18, 2008 at 6:42 am

“A template tag is a fancy name for a function call” Would that be an accurate overview Yan?

Reply

Yan July 18, 2008 at 9:23 am

@Colin: Good point but I’m not a php programmer to decide what is a fancy name and what’s not. I’m merely borrowing the term from WordPress Codex which I assumed is the correct one to use. I really hope so…

Reply

Technology For Non Techies July 18, 2008 at 9:24 pm

Of course you are using the correct term. I was just asking you the question from a programming point of view. It is my observation that a template tag is simply a function call to the backend WordPress PHP functions. I could be wrong. What are your thoughts?

Reply

Yan July 18, 2008 at 9:35 pm

@Colin: Oh gosh, you are asking me to debate in French which I know nothing of…. or are we talking in Spanish right now? lol

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: The Uploaded File Could Not Be Moved To [The Solutions]

Next post: Optimize robots.txt for Better SEO