Template Tag: add_eventon
Last Updated: June 14, 2024
Description
Use this function to display the EventON calendar inside a page template. This function does not need to be placed inside the WP loop.
Note: ajde_evcal_calendar() function also support how ever this function is deprecating.
Usage
<?php if( function_exists('add_eventon')) { add_eventon($args); } ?>
NOTE: $args variable is used only when you are passing other variable values to the calendar.
Default Usage
<?php $args = array( 'cal_id' => 1, 'month_incre' => +2, 'event_count' => 3, 'show_upcoming' => 0, 'number_of_months' => 2, 'event_type' => '3,4,1', 'event_type_2' => '4,7', ); ?>
Parameters
cal_id
(integer/string) (optional) This is a unique id that could be set to identify a single calendar (if there are multiple calendars in a single page). The cal_id can be any number, letters, or combination of both that you can come up with – only requirement is that it is unique.
event_type
(integer) List of event type taxonomy tag IDs separated by commas. Default is ‘all’.
event_type_2
(integer) List of event type 2 taxonomy tag IDs separated by commas. Default is ‘all’.
month_incre
(integer) Is the offset number of months in a +/- integer representing the offset that will push the starting month of the calendar by this offset number. Default is 0.
event_count
(integer) Number of events to show per month in the calendar. Default is 0.
show_upcoming
(integer) Enable upcoming events list on the calendar. Default is 0 (false).
- 0 – default, no upcoming list
- 1 – show upcoming list
number_of_months
(integer) Specify the number of months to show in the case of upcoming months list. MUST be used with show_upcoming parameter. Default is 0.
Did this article help you?