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
php wp_get_archives('10'); ?>
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
- The Way I Transfer My WordPress Blog To Another Host OMG! I did it. I was very nervous in the beginning as this was the first time I attempted to...
- 20 Reasons Why I Choose WordPress They say ‘owning a blog is no longer a luxury but rather a necessity‘. How true indeed! A blog is...
- Do-It-Yourself WordPress Installation Installing WordPress on your web server shouldn’t be too much of a task. It is relatively easy to perform even...
- A Beginner’s Guide to WordPress Plugins Without a doubt one of the biggest advantages of using WordPress is the ability to extend its functionality with the...
- If You Have Adsense, Use Section Targeting Without a doubt, the easiest way to monetize your blog is by use of Google Adsense. Not only it takes...
{ 8 comments… read them below or add one }
Nice find, Yan!
Never knew about that resource!
EmmaB’s last blog post..Need Contest Sponsors
I bookmarked the page, thanks. I used two of the new-to-me tags today.
@EmmaB & Rado: You are welcome! Thank you…
Thank you for the info, very useful!!
Diego’s last blog post..Top 10 Worst Natural Disasters and Catastrophes (2007)
“A template tag is a fancy name for a function call” Would that be an accurate overview Yan?
@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…
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?
@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