• Resolved Andrew

    (@andrewkantor)


    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

    (@colinpizarek)

    <?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.