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:
- 9 August, 2010 @ 6:26 [Current Revision] by dan philibin
- 6 August, 2010 @ 4:12 by Ryan Imel
- 13 December, 2008 @ 6:00 by Ryan Imel
[...] the original post: Weekend QuickTip: Echo Quicktags in Template Files Related ArticlesBookmarksTags The Difference Between PHP Echo and Print Few other web [...]
[...] Eco quicktags in template files (tags: WordPress tips) Related Posts Share [...]
I actually didn’t know about this one. Nice tip.