Okay
  Print

Shortcodes

THIS ARTICLE IS FOR STACHETHEMES EVENT CALENDAR VERSION 3.x !

Default shortcode:

[stachethemes_ec]


Shortcode attributes:


cal Show events from specific calendar(s) only:

[stachethemes_ec cal=1,2,3]

 where 1,2,3 are calendar ids


filter_location - Show events with this location only

[stachethemes_ec filter_location="London, UK"]


organizer_id - Show events from this organizer

[stachethemes_ec organizer_id=10]

where 10 is for example the organizer id number


cat - Show events from specific category or categories only:

[stachethemes_ec cat=1,2,3]


upcoming_only=1 - Show upcoming events only

[stachethemes_ec upcoming_only=1]


expired_only=1 - Show expired events only

[stachethemes_ec expired_only=1]


min_date - Minimum date range

max_date - Maximum date range

start_date - Initial calendar date

values: today, prev_week, this_week, next_week, prev_month, this_month, next_month or YYYY-MM-DD date

[stachethemes_ec min_date=2022-01-01 max_date=2022-12-31]
[stachethemes_ec min_date=prev_week max_date=next_week start_date=this_week] 
[stachethemes_ec min_date=prev_month max_date=next_month start_date=this_month]
[stachethemes_ec min_date=today]

map_date_start map_date_end - Force map view to display events in given range

[stachethemes_ec map_date_start=2022-01-01 map_date_end=2022-12-31]


gmap_theme - Google maps theme

values: silver, aubergine, retro, night, dark

[stachethemes_ec gmap_theme=silver]


show_create_event_form - Show/Hide submit an event form

values: 1/0 (on / off)

[stachethemes_ec show_create_event_form=0]
[stachethemes_ec show_create_event_form=1]


show_calfilter - Show top menu filter

values - 0 (off), 1 (togglable), 2 (always visible)

[stachethemes_ec show_calfilter=0]
[stachethemes_ec show_calfilter=1]
[stachethemes_ec show_calfilter=2]

view - Initial calendar layout 

values: agenda, month, week, day, grid, boxgrid, map

[stachethemes_ec view=month]


views - Include only following calendar views 

values: agenda, month, week, day, grid, boxgrid, map

[stachethemesc_ec views=month,day,week]
[stachethemesc_ec views=month]
[stachethemesc_ec views=grid,map]
...

show_top - Show/Hide calendar top menu

values: 1/0 (on /off)

[stachethemes_ec show_top=0]
[stachethemes_ec show_top=1]

show_views - Show/Hide top menu views buttons (layout buttons)

values: 1/0 (on /off)

[stachethemes_ec show_views=0]


agenda_list_display - show/hide agenda list 

values: 1/0 (on / off)

[stachethemes_ec agenda_list_display=0]


agenda_cal_display - show/hide agenda calendar slider from agenda view. 

values: 1/0 (on / off)

[stachethemes_ec agenda_cal_display=0]
[stachethemes_ec agenda_cal_display=1]


reverse_agenda_list - Reverse agenda list order

[stachethemes_ec reverse_agenda_list=1]


future_months_ahead - How far to look for upcoming events.

value is in months

[stachethemes_ec future_months_ahead=60]

e.g. 60 for 5 years ahead


agenda_get_n - number of events to show in agenda view per "look for more" click. 

[stachethemes_ec agenda_get_n=5]


grid_per_click - number of events to show in grid view per "look for more" click.

[stachethemes_ec grid_per_click=5]


boxgrid_per_click - number of events to show in box grid view per "look for more" click.

[stachethemes_ec boxgrid_per_click=5]


agenda_lfm - display "Look for more" button in the agenda view

values: 1/0

[stachethemes_ec agenda_lfm=1]


grid_lfm - display "Look for more" button in the grid view

values: 1/0

[stachethemes_ec grid_lfm=1]


boxgrid_lfm - display "Look for more" button in the box grid view

values: 1/0

[stachethemes_ec boxgrid_lfm=1]


preview_location - show location in event preview container

values 1/0

[stachethemes_ec preview_location=0]


preview_desc - show short description in event preview container

values 1/0

[stachethemes_ec preview_desc=0]


open_event_in - open events method

values: single (single page), external (uses the event external link url), modal (popup), self (in calendar)

[stachethemes_ec open_event_in=self]
[stachethemes_ec open_event_in=modal]
[stachethemes_ec open_event_in=single]
[stachethemes_ec open_event_in=external]


reminder - Show/Hide reminder button

values 1/0

[stachethemes_ec reminder=0]


first_day_of_the_week - Define first day of the week

values: mon, sat, sun

[stachethemes_ec first_day_of_the_week=mon]


show_event_title_all_cells - Show event title on all cells (month & week views)

values: 1/0

[stachethemes_ec show_event_title_all_cells=1]


grid_columns - Grid view desired columns

[stachethemes_ec grid_columns=4]


grid_gutter - Grid view space between events (in pixels)

[stachethemes_ec grid_gutter=10]


boxgrid_columns - Box Grid view desired columns

[stachethemes_ec boxgrid_columns=4]


boxgrid_gutter - Box Grid view space between events (in pixels)

[stachethemes_ec boxgrid_gutter=10]


event_open_target - Open links in same windows or new window

values: _self, _blank

[stachethemes_ec event_open_target=_self]
[stachethemes_ec event_open_target=_blank]