Title: hardcode call to widget
Last modified: August 19, 2016

---

# hardcode call to widget

 *  [Zoee](https://wordpress.org/support/users/epixmedia/)
 * (@epixmedia)
 * [15 years ago](https://wordpress.org/support/topic/hardcode-call-to-widget/)
 * Hi All, Just wondering what the code is to call the events widget? I have it 
   on my sidebar but I also want to put it on my homepage separate to the sidebar.
 * Is there a get_event_widget() or something I can call?
 * Thanks,
 * Zoe

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [zunskigraphics](https://wordpress.org/support/users/zunskigraphics/)
 * (@zunskigraphics)
 * [15 years ago](https://wordpress.org/support/topic/hardcode-call-to-widget/#post-2051918)
 * Great question! Anyone know the answer to this?
 *  [Jamie O](https://wordpress.org/support/users/idealien/)
 * (@idealien)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/hardcode-call-to-widget/#post-2051992)
 * Found this thread – [http://wordpress.org/support/topic/calling-28-widgets-directly-from-templateplugin?replies=8](http://wordpress.org/support/topic/calling-28-widgets-directly-from-templateplugin?replies=8)–
   which informs how to do it in a general sense and this code works for the list
   widget that you could work off of:
 *     ```
       <?php $instance = array("title" => "My Widget", "number" => 9);
       				$args = array("title" => "My Widget", "before_title" => "<h2>", "after_title" => "</h2>");
       				$sb = new Events_List_Widget();
       				$sb->number = $instance['number'];
       				$sb->widget($args,$instance); ?>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘hardcode call to widget’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Jamie O](https://wordpress.org/support/users/idealien/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/hardcode-call-to-widget/#post-2051992)
 * Status: not resolved