The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › How do I display Widgets in Custom Theme?
I am working with a barebones custom template that has been stripped of most of the basic WP code.
I have a weather widget that I would like to display on the site but do not know how to display it? The widget shortcode is [wunderground].
This should get you started:
If the widget has a shortcode as you say it does then in your template file you could do:
<?php echo do_shortcode('[wunderground]'); ?>
Thanks for the response. What do I do if there isn’t a known short code for the widget?
Assuming you had it registered in your functions.php file you’d want to follow the instructions here: http://codex.wordpress.org/Function_Reference/dynamic_sidebar
Thanks for the help Mike. I got this working now.