Adding Upcoming Events Widget to a page with Shortcode

Adding Upcoming Events Widget to a page with Shortcode

It is possible to insert the Upcoming Events Widget in a page, post or custom post type with a Shortcode. You can use the following arguments:

Please notice that all attributes are optional.

number: number of events to display
fcdate_format: the date format. you can generate this from the date format options tool.
fctime_format: the time format.
post_type: if left blank it takes the events post type. if you are calendarizing a different post type specify it here, example post, or page.
template: the template model to use. possible values are widget_upcoming_events.php, widget_upcoming_events_a.php, widget_upcoming_events_a1.php, widget_upcoming_events_agenda_b.php, widget_upcoming_events_agenda_b1.php
calendar: a calendar slug, it will limit the output to events from this taxonomy.
venue: a venue slug.
organizer: an organizer slug.
feed: 0 for not showing External Event Sources 1 for showing events from External Event Sources
words: max number of words to display in the description.
horizon: day, hour or end. If choosing day it will remove the events until the next day. If you choose hour it will remove the events by the hour. If you choose end it will remove the events when they end.
showimage: 1 or 0. Choose 1 to display the featured image.
loading_method: server or ajax. On some situations choosing server may delay page loading, choose ajax to render the content after page is loaded. By default the shortcode is using Server.
auto: 1 or 0. If choosing 1, the widget will automatically display events related to the loaded page, if you are for example loading the calendar archive, it will then show events from that particular calendar.
premiere: 1 or 0. Choosing 1 will only display the first instance of a recurring event.
calendar_url: fill this with a page where you have setup the calendarizeit shortcode so that links will take you to this page instead of linking to the event page.

[rhc_upcoming_events template='widget_upcoming_events.php' number='5' fcdate_format='dddd MMMM d, yyyy' fctime_format='hh:mm tt' feed='0' calendar='spartan-races']
 

In the sample below we have used the following Shortcode.

 

You can login and take the plugin for a test drive before you decide whether to buy it or not.

Username: DemoUser
Password: TryMeNow