Forums
Home / Plugin: Events Manager - Calendar, Bookings, Tickets, and more! / Events Manager Widget on Homepage
(@gareth_roberts)
10 years, 8 months ago
Hi, I would like to add the Events Manager Widget (list) into my homepage template. What is the php code needed to call the widget?
http://wordpress.org/plugins/events-manager/
(@caimin_nwl)
Hi,
You can use the standard register_sidebar function: http://codex.wordpress.org/Function_Reference/register_sidebar
(@angelo_nwl)
or use wp plugin ‘Shortcodes in Sidebar Widgets’ this will allow you to use shortcodes in Text widget and then use shortcode [events_list] – http://wp-events-plugin.com/documentation/shortcodes/
however, it depends if your theme supports widgets in your homepage. also, try <?php echo do_shortcode('[events_list]'); ?> in your homepage template
<?php echo do_shortcode('[events_list]'); ?>