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
The following templates require the Accordion Upcoming Events add-on for Calendarize it!
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 the 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 2. Choosing 1 will only display the very first instance of a recurring event set. Choosing 2 will show 1 event, that is upcoming, from a recurring set.
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.
date=”” date_end_compare=”>=” date_end=”-12 hours 0 seconds”: This will create a list of events that ended in the last 12 hours.
You can use the following syntax:
+2 days 4 hours 0 seconds to display events that end in 2 days and 4 hours.
-2 days 4 hours 0 seconds to display events that ended 2 days and 4 hours ago.
last Friday to display events that ended last Friday
next Wednesday to display events that will end on next Wednesday.
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.