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

How can we recognize template tags in word press ??

How can we recognize template tags in word press ??

1 Answer

When you say recognise template tags, do you mean within theme files etc? If so they usually appear as method calls within the php files e.g.:

            <?php get_bloginfo(); ?>
            <?php single_tag_title(); ?>

However the best way to check if they are template tags to search the wordpress codex for example:

https://codex.wordpress.org/Function_Reference/<template-tag> https://codex.wordpress.org/Function_Reference/get_bloginfo https://codex.wordpress.org/Function_Reference/single_tag_title

Bob