{"id":36,"date":"2021-11-01T21:00:04","date_gmt":"2021-11-02T02:00:04","guid":{"rendered":"https:\/\/docs.joedolson.com\/my-calendar\/?p=36"},"modified":"2025-12-24T11:44:23","modified_gmt":"2025-12-24T17:44:23","slug":"my-calendar-general-settings","status":"publish","type":"post","link":"https:\/\/docs.joedolson.com\/my-calendar\/my-calendar-general-settings\/","title":{"rendered":"Settings &#8211; General"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">General Settings is located under <code>My Calendar > Settings > General<\/code>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"437\" height=\"577\" src=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/image-21.png\" alt=\"Screenshot of the primary management panel of settings.\" class=\"wp-image-1568\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/image-21.png 437w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/image-21-227x300.png 227w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"my-calendar-management\">My Calendar Management<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"calendar-page-location\">Calendar Page Location<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;My Calendar&#8221; is the title automatically added to the page that is created to display the calendar. You can edit this page as a normal page at <code>Pages > All Pages<\/code>. If you delete the page, you will need to assign a new page in this setting.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"default-sort-order-for-admin-events-list\">Default sort order for Admin Events List <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This value sets the default sort field. 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 clicking the column headings on the Events screen. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"default-sort-direction\">Default sort direction<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Descending (Z-A) or Ascending (A-Z).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"use-pretty-permalinks-for-events\">Use Pretty Permalinks for Events<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Search-engine friendly permalinks have been the default for several versions, but earlier versions of My Calendar did not use them. With pretty permalinks, your single event pages render using the template for the post type <code>mc-event<\/code>. You can create a custom template using <code>single-mc-event.php<\/code>, using the standard WordPress template hierarchy. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pretty Permalinks will be like <code>https:\/\/example.com\/mc-events\/a-new-event\/?mc_id=1<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are not using pretty permalinks, your single events pages will render through the main My Calendar shortcode on the page set as your primary calendar page, similar to <code>https:\/\/example.com\/my-calendar\/?mc_id=1<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <code>Settings &gt; Permalinks<\/code> to change the base URL for events and locations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"advanced-section\">Advanced<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"get-data-events-categories-and-locations-from-a-remote-database\">Get data (events, categories and locations) from a remote database.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This option allows you to share data between multiple sites if they all need matching calendars. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>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. <\/li>\n\n\n\n<li>Once you enable the option, you will need to add code to your theme&#8217;s <code>functions.php<\/code> file to make the remote connection work.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>function mc_remote_db() {\n        $mcdb = new wpdb('DB_USER','DB_PASSWORD','DB_NAME','DB_ADDRESS');\n        return $mcdb;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the above placeholders with the host-site database information. The two sites must have the same WordPress table prefix. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling a remote data connection will disable Adding and Managing Events, Locations, and Categories, as all that data will be drawn from the remote database. Scripts, settings, and styles are still managed from the local installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong> You own two movie theaters, and they show the same movies at the same times. Rather than enter every event twice, you can remotely access the database for theater 1 so that both theaters display exactly the same event information. The two sites can have completely different designs, and show calendars in different ways, but share the same events.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enable-external-api\">Enable events API<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enable to acquire custom event data in JSON, CSV, or iCal (.ics). When you enable the External API, the URL for requests to your API will be displayed. This API does not use the WordPress REST API; it&#8217;s a custom API to return events in exportable formats.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A REST API  is available for My Calendar if you have <a href=\"https:\/\/www.joedolson.com\/awesome\/my-calendar-pro\/\">My Calendar Pro<\/a> activated. Read more about the <a href=\"https:\/\/docs.joedolson.com\/my-calendar\/my-calendar-api\/\" data-type=\"post\" data-id=\"1112\">Enable external API<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"drop-mysql-tables-on-uninstall\">Drop MySQL tables on uninstall<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check this option prior to uninstalling My Calendar to also delete all event data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"delete-plugin-settings-on-uninstall\">Delete plugin settings on uninstall<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check this option prior to uninstalling if you wish to delete all the settings you have configured. If you want to be able to restore the settings, you can export them first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Clear My Calendar fragment cache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">My Calendar stores a variety of key pieces of data in temporary caches. These are automatically updated when you edit categories, locations, or events. But if you make changes via other methods (such as filters or actions), those will not trigger clearing the cache. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Import &amp; Export Settings<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"120\" src=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/image-22.png\" alt=\"Import and export settings fields\" class=\"wp-image-1570\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/image-22.png 552w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/image-22-300x65.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Exporting your settings will allow you to download a JSON file with your site&#8217;s current settings. You can then import those settings again after making changes or into another site. This does not include your events, categories, or locations; it is only the plugin configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There&#8217;s a JSON copy of the My Calendar default settings available as <code>defaults.json<\/code> in the root of the My Calendar plugin directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"settings-on-other-screens\">Settings on other screens<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Settings > Permalinks<\/strong>:\u00a0Events permalink slug\u00a0(mc-events)<br><strong>Settings > Permalinks<\/strong>:\u00a0Location permalink slug\u00a0(mc-locations)<br><strong>Settings > General<\/strong>:\u00a0First day of the week<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/09\/My-Calendar-WordPress-plugin-setting-Permalinks-for-Events-and-Locations-1024x571.jpg\" alt=\"Screenshot of the permalink settings\" class=\"wp-image-60\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/09\/My-Calendar-WordPress-plugin-setting-Permalinks-for-Events-and-Locations-1024x571.jpg 1024w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/09\/My-Calendar-WordPress-plugin-setting-Permalinks-for-Events-and-Locations-300x167.jpg 300w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/09\/My-Calendar-WordPress-plugin-setting-Permalinks-for-Events-and-Locations-768x428.jpg 768w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/09\/My-Calendar-WordPress-plugin-setting-Permalinks-for-Events-and-Locations.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">My Calendar: Setting Permalinks for Events and Locations.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"general-wordpress-settings\">General WordPress settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are two important settings controlled outside the plugin: the <strong>time zone events are displayed in<\/strong> and the <strong>day of the week the calendar starts on<\/strong>. These options are set from the WordPress general settings: <code>Dashboard > Settings > General<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next: My Calendar &gt; <a href=\"https:\/\/docs.joedolson.com\/my-calendar\/my-calendar-text-settings\/\" data-type=\"post\" data-id=\"39\">Settings &gt; Text<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>General Settings is located under My Calendar > Settings > General. My Calendar Management Calendar Page Location &#8220;My Calendar&#8221; is the title automatically added to the page that is created to display the calendar. You can edit this page as a normal page at Pages > All Pages. If you delete the page, you will [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[14],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-settings","tag-general"],"_links":{"self":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":41,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/36\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}