Beginning Template Tags – bloginfo(), the_time(), the_title()

Summary:
If you want your blog to look different than the other million crappy blogs out there, you need to familiarize yourself with template tags in Wordpress. This article covers some uses of bloginfo(), the_time(), and the_title().
buzz_button

Wordpress uses template tags for a lot of its features. These are nothing more than calls to php functions that do a bunch of stuff you don’t know how to do. If you want your blog to look different than the other million crappy blogs out there, you need to familiarize yourself with template tags in Wordpress, well, at least until you realize everything under you could ever think of I’ve already thought of and written about here….you can thank me for that later.

By the way, if you haven’t read about “the loop” yet, you should do that first, otherwise you’ll really get some jacked up results when you try to use these.

bloginfo() – Misc. Wordpress Blog Information

bloginfo(‘rss2_url’) – Link to RSS 2.0 feed
Returns http://www.rlmseo.com/blog/feed/ for this blog

bloginfo(‘url’) – Link to blog url
Returns http://www.rlmseo.com/blog for this blog

bloginfo(‘template_url’) – Link to active template url
Returns http://www.rlmseo.com/blog/wp-content/themes/wordpresshacker/
for this blog. Notice the difference between this and bloginfo(‘url’)

bloginfo(‘name’) – Name of your blog as set in wp-admin

the_time() – Wordpress Post Timestamp

the_time(‘m/d/y’) – Returns 01/5/08 if post was published January 5th of this year

the_title() – Wordpress Post Title

Pretty straightforward…just displays the title of a post.

Check out the entire template tag reference over at WordPress.org.

 
Bookmark and Share

No comments yet. Get things started by leaving a reply ↓


Leave a Reply

Email is required but will not be published. All comments are moderated and no-followed. Please do not use keywords or domains as names and do not advertise.