Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,080 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.