我想在我的模板文件中对此WordPress短代码进行硬编码。有办法吗?
[wunderground location="Philadelphia, PA" numdays="3" layout="simple"]
目前仅在我添加到Page WTSIWYG
时才有效答案 0 :(得分:1)
试试这个:
<?php echo do_shortcode("[shortcode]"); ?>
参考:http://codex.wordpress.org/Function_Reference/do_shortcode