Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress PHP for WordPress PHP Basics for WordPress Template Tags

What is the difference b/w template tags and the rest of the WP PHP functions?

Maybe this is just semantics, but what is the difference b/w template tags and the rest of the WP PHP functions?

3 Answers

Sue Dough
Sue Dough
35,800 Points

Template tags are WP PHP functions. They just do something different. Every function is different.

Jeremy Castanza
Jeremy Castanza
12,081 Points

You asked a good question. I'm just going to pull a definition from the Codex... "Template tags are used within your blog's Templates to display information dynamically or otherwise customize your blog, providing the tools to make it as individual and interesting as you are." My take on that is that template tags are really geared toward theme development. Where as other WP functions may not be (i.e. there are core functions to build admin area, access info from database, plugin functions, etc.).

Template Tags is only a WP PHP function (there are many more) for display dynamic information of other files, parts or functions of the blog. The Template Tags is a excellent solution for save time and order.