Settings – General

General Settings is located under My Calendar > Settings > General.

My Calendar: General Settings

My Calendar Management

Calendar Page Location

“My Calendar” is the title automatically added to the page that is created to display the calendar.

Default sort order for Admin Events List

The Events screen columns can be ordered by Event ID, Title, Date/Time, Author, Category and Location. One can also directly reorder the Event list by going to the Events screen and clicking the column headings.

Default sort direction

Descending or Ascending.

Use Pretty Permalinks for Events

Checkbox clicked: for Pretty Permalinks will show a similar slug to this example. https://example.com/mc-events/a-new-event/?mc_id=1
Website name / events base / event title / event ID.

Checkbox not clicked: not showing pretty permalinks will show a similar slug to this example. https://example.com/my-calendar/?mc_id=1
It will not use the events base in the slug.

Go to Settings > Permalinks to set the base URL for events and locations.

My Calendar WordPress plugin. Setting Permalinks for Events and Locations.


The following example in changing mc-events to concerts with pretty permalinks activated: https://example.com/concerts/a-new-event/?mc_id=4

Advanced section

Get data (events, categories and locations) from a remote database.

This option allows you to share data between multiple sites if they all need matching calendars.
1. It requires you to enable remote database access on the source site as a hosting option in the hosting control panel or by contacting your host.
2. Once you enable the option, you will need to add code to your theme’s functions.php file to make the remote connection work.

function mc_remote_db() {
        $mcdb = new wpdb('DB_USER','DB_PASSWORD','DB_NAME','DB_ADDRESS');
        return $mcdb;
}

Replace the above placeholders with the host-site database information.
The two sites must have the same WP table prefix. While this option is enabled, you may not enter or edit events through this installation.

Enable external API

Enable to acquire custom event data in JSON, CSV, iCal or RSS formatted XML. When you enable the External API, the URL for requests to your API will be displayed. The REST API (Not WordPress REST API) is enabled for My Calendar if you have My Calendar Pro enabled.

Drop MySQL tables on uninstall

Check this option prior to uninstalling if you wish to uninstall My Calendar and also delete all event data.

Delete plugin settings on uninstall

Check this option prior to uninstalling if you wish to delete all the settings you have configured.

Settings on other screens

Options > Permalinks: Location permalink slug (mc-locations)
Options > Permalinks: Events permalink slug (mc-events)
Options > General: First day of the week (Goes to Settings > General)

My Calendar: Setting Permalinks for Events and Locations.

Multisite Network Options

If you have a Multisite Network setup then the following Multisite screen with the following options will be seen.

My Calendar multisite Settings.

Next: Settings > Text.