WHAT'S NEW?
Loading...

[WORDPRESS] How to use a plugin shortcode in a Template

Shortcodes in WordPress are bits of text you can use in the content area to invoke some kind of function to accomplish certain tasks.

To use a shortcode from within a template instead of with the content of a Post/Page, you can invoke it with a special function:

<?php echo do_shortcode("[shortcode]"); ?>

0 comments:

Post a Comment