Ever wanted to insert a quicktag into one of your theme’s templates without having to add it via a post or page from the admin? You may not know it, but WordPress has provided a template tag to do just that. Simply insert <?php echo do_shortcode('[quicktag]'); ?> into your template to use any quicktag currently installed on your blog, whether it be for galleries, forms, or any other tag that comes bundled with a theme or plugin. Enjoy!

Post Revisions:

Tagged with:

About the author:

3 Responses to Weekend QuickTip: Echo Quicktags in Template Files

  1. [...] the original post: Weekend QuickTip: Echo Quicktags in Template Files Related ArticlesBookmarksTags The Difference Between PHP Echo and Print Few other web [...]

  2. [...] Eco quicktags in template files (tags: WordPress tips) Related Posts Share [...]

  3. Shirley says:

    I actually didn’t know about this one. Nice tip.

Leave a Reply

Please note that WPCandy is a moderated community.

 

Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>