Author: Joe Dolson

Calendar Filters Shortcode

See Demo You can use this shortcode to display the calendar’s location, category, and accessibility filters separately from the main calendar. By default, it passes queries to your calendar’s main view, as configured in settings, but can query other pages by providing the target_url attribute. The attribute must point to a page on your site […]

Continue reading “Calendar Filters Shortcode” »

Deprecated Stylesheets

dark.css A theme in dark grays and blacks with light text and dark blue highlighting. inherit.css These styles provide a minimal degree of styling, allowing most theme defaults to be dominant. light.css A light-colored theme almost entirely in whites and light grays with black text. my-calendar.css Default theme for versions 1.5 through 1.8.9. It’s largely […]

Continue reading “Deprecated Stylesheets” »

My Calendar – API

The My Calendar exports API is enabled at My Calendar > Settings > General. This API allows you to generate a CSV, JSON, or iCal formatted export of My Calendar event data. The API is not enabled by default. Once enabled, you can access it using URL parameters on your site: The my-calendar-api parameter is […]

Continue reading “My Calendar – API” »

My Calendar Views – Overview

Grid The grid view is the most traditional calendar layout option. By default, it’s a table with either five or seven columns for the days of the week. Each cell contains headings with the time and title of the events on that day, ordered by start time. The title can be customized using the Display […]

Continue reading “My Calendar Views – Overview” »

PHP Templates

Version 3.5 of My Calendar introduced support for PHP-based templates. When enabled, these templates replace the entirety of the previous templating system. My Calendar’s default templates are found at /my-calendar/mc-templates/. To use PHP templates in your site, copy the desired file into your theme, using the same file directory path. For example, the template at […]

Continue reading “PHP Templates” »

Search Events

My Calendar includes a simple search form that can be used in a few different ways. The main parameter for the search form is a target URL. By default, searches will be targeted to the main My Calendar page, where your calendar is displayed. In that case, they’ll display in whatever default view your calendar […]

Continue reading “Search Events” »

Shortcodes: Happening Next

This shortcode is largely identical to the Happening Now shortcode, except that it: By default, it will pick the next event. By using the ‘skip’ argument, it will skip over an event and pick the next one found. Otherwise, see information about the Happening Now shortcode.

Continue reading “Shortcodes: Happening Next” »

Shortcodes: Happening Now

This shortcode is used to display an event that is currently happening. It selects the first event found that is happening at the time the page is loaded. Passing the category argument with a category ID or comma separated list of categories will limit the selection to events with those categories. The template argument can […]

Continue reading “Shortcodes: Happening Now” »

Single Event Template

By default, the single event view uses the single.php template from your WordPress theme, or whatever nearest template is appropriate based on the template hierarchy. You can customize the template by using a single-mc-events.php template file in your theme or child theme directory. Copy whatever template file is closest to what you want for your […]

Continue reading “Single Event Template” »

Template Tag Index

All template tags support two attributes: before=”value” and after=”value”. The values of the attributes will be placed before and after the output value. These attribute values must be wrapped in double quotes. Date/Time template tags support the “format” attribute: format=”M, Y”, where the value is a PHP formatted date string. Only dtstart and dtend include […]

Continue reading “Template Tag Index” »

View Locations

Locations have two primary views: the single location view and a shortcode to display locations. Single Location View List of Locations A list of locations is produced with the shortcode “. The list can sort by name, city, state, zip, country, or region; by default, it will sort by name.

Continue reading “View Locations” »