Title: Using this with WordPress&#8217;s the_widget?
Last modified: July 5, 2017

---

# Using this with WordPress’s the_widget?

 *  Resolved [Andrew](https://wordpress.org/support/users/andrewkantor/)
 * (@andrewkantor)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/using-this-with-wordpresss-the_widget/)
 * Hey, Colin —
 * I’d like to use the NeonCRM Events Widget somewhere other than the sidebar on
   my site using
 * `<?php the_widget('widget_class_name'); ?>`
 * Trouble is, I don’t know what name to use. I tried a bunch of variations of “
   neon_events_widget,” “neoncrm-events-widget,” and so on, but I couldn’t get it.
 * Can you tell me what the official widget class name is? Many thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [colinpizarek](https://wordpress.org/support/users/colinpizarek/)
 * (@colinpizarek)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/using-this-with-wordpresss-the_widget/#post-9354932)
 *     ```
       <?php 
       $instance['title']               = 'My Events';
       $instance['api_key']             = 'abcde12345';
       $instance['org_id']              = 'yourorgid';
       $instance['per_page']            = 5;
       $instance['event_name']          = true;
       $instance['event_start']         = true;
       $instance['event_end']           = true;
       $instance['event_end_time']      = true;
       $instance['event_start_time']    = true;
       $instance['event_location']      = true;
       $instance['event_register_link'] = true;
       $instance['event_detail_link']   = true;
       $instance['event_campaign']      = null; // String - Restrict list to a campaign
       $instance['event_category']      = null; // String - Restrict list to a category
       $instance['event_web_publish']   = true;
       $instance['event_web_register']  = true;
       $instance['cache_time']          = 1;
       the_widget('Neoncrm_Events', $instance ); 
       ?>
       ```
   
 * Try this. You’ll need all of the instance arguments so that the widget is properly
   configured.

Viewing 1 replies (of 1 total)

The topic ‘Using this with WordPress’s the_widget?’ is closed to new replies.

 * ![](https://ps.w.org/neoncrm-events-widget/assets/icon-128x128.png?rev=1389391)
 * [NeonCRM Events Widget](https://wordpress.org/plugins/neoncrm-events-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/neoncrm-events-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/neoncrm-events-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/neoncrm-events-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/neoncrm-events-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/neoncrm-events-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [colinpizarek](https://wordpress.org/support/users/colinpizarek/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/using-this-with-wordpresss-the_widget/#post-9354932)
 * Status: resolved