Search code examples
phphtmlwordpresswunderground

Wordpress short code to display in template


I would like to hardcode this WordPress short code in my template file. Is there a way to do it?

[wunderground location="Philadelphia, PA" numdays="3" layout="simple"]

Currently only works if i add into Page WTSIWYG


Solution

  • Try this:

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

    Reference: http://codex.wordpress.org/Function_Reference/do_shortcode