{"id":309,"date":"2021-11-05T10:00:56","date_gmt":"2021-11-05T15:00:56","guid":{"rendered":"https:\/\/docs.joedolson.com\/my-calendar\/?p=309"},"modified":"2025-12-23T19:49:11","modified_gmt":"2025-12-24T01:49:11","slug":"my-calendar-locations","status":"publish","type":"post","link":"https:\/\/docs.joedolson.com\/my-calendar\/my-calendar-locations\/","title":{"rendered":"Locations"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Locations is located under <code>My Calendar > Locations<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"802\" src=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Locations.jpg\" alt=\"Screenshot: list of location options.\" class=\"wp-image-1090\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Locations.jpg 1200w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Locations-300x201.jpg 300w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Locations-1024x684.jpg 1024w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Locations-768x513.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><figcaption class=\"wp-element-caption\">My Calendar > Locations<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-new-and-update-location-permalinks\">Update location permalinks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This option only appears if there is no value currently saved for the location permalinks. The default is &#8216;mc-locations&#8217;. Clicking <strong>Update location permalinks<\/strong> takes you to the Settings > Permalinks screen. Here we can change the slug part of mc-locations to a custom value.<\/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=\"Custom permalinks section in 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=\"quick-edit-actions\"><strong>Quick edit actions<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using the mouse button to hover over the location will bring up the actions area.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"345\" src=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Location-quick-edit.jpg\" alt=\"A single location row with the quick edit actions visible.\" class=\"wp-image-1092\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Location-quick-edit.jpg 1200w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Location-quick-edit-300x86.jpg 300w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Location-quick-edit-1024x294.jpg 1024w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Location-quick-edit-768x221.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><figcaption class=\"wp-element-caption\">My Calendar: Locations quick edit<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">One can View, Edit, Set as Default or Delete the location.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">View<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">View will show the location singular page on the front end of your website. If you have a Google Maps API key and the location has sufficient information, it will show a map to the location. The default singular location page also shows a list of upcoming events at that location and the location&#8217;s address. The available accessibility features are also visible here, if selected.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"1471\" src=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend.jpg\" alt=\"Screenshot of the demo location with map.\" class=\"wp-image-1093\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend.jpg 1100w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-224x300.jpg 224w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-766x1024.jpg 766w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-768x1027.jpg 768w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><figcaption class=\"wp-element-caption\">My Calendar > Locations > View (Frontend)<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Edit<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Will bring up the Edit Location screen to where one can edit the location.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Set as Default<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When creating an event, the location field will be preset to this default location. Strongly advised if you have only one location &#8211; location is a required part of Google&#8217;s structured data for events.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Delete <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Will remove the location. Removing a location automatically updates any events referencing that location.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"edit-location\">Edit Location<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Clicking to edit the location will show the edit screen. With a Google Maps API key, you will see a location map at the bottom of the Edit Location screen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"2187\" src=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Edit-Location.jpg\" alt=\"Editing a location\" class=\"wp-image-1084\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Edit-Location.jpg 1100w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Edit-Location-151x300.jpg 151w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Edit-Location-515x1024.jpg 515w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Edit-Location-768x1527.jpg 768w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Edit-Location-773x1536.jpg 773w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-Edit-Location-1030x2048.jpg 1030w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><figcaption class=\"wp-element-caption\">My Calendar > Locations > Edit Location<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Update GPS Coordinates<br><\/strong>Adjusting the location and clicking the Update GPS Coordinates checkbox will update the map along with the rest of the location information on Save Changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-a-shortcode-to-view-a-location\">Using a shortcode to view a location<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are shortcodes available to create lists of locations. The shortcode <br><code><code class=\"shortcode\">&lsqb;my_calendar_show_locations sort=\"country\"&rsqb;<\/code><\/code>, for example, will show a list of locations sorted alphabetically by country. Sorting options are <strong>name<\/strong>, <strong>city<\/strong>, <strong>state<\/strong>, <strong>zip<\/strong>, <strong>country <\/strong>and <strong>region<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a front end example of the Locations List:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"2034\" src=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-using-shortcodes.jpg\" alt=\"Example screenshot of a locations list.\" class=\"wp-image-1101\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-using-shortcodes.jpg 1200w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-using-shortcodes-177x300.jpg 177w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-using-shortcodes-604x1024.jpg 604w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-using-shortcodes-768x1302.jpg 768w, https:\/\/docs.joedolson.com\/my-calendar\/wp-content\/uploads\/sites\/3\/2021\/11\/My-Calendar-WordPress-plugin-View-Location-Frontend-using-shortcodes-906x1536.jpg 906w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The location shortcode also accepts a <code>template<\/code> parameter. The template parameter can adjust how the list is displayed. If no template is passed, the <code>hcard<\/code> will be used, as shown below. You can also pass <code>map<\/code> to show a map with all locations included on it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Any other template should contain <a href=\"https:\/\/docs.joedolson.com\/my-calendar\/my-calendar-template-tag-index\/\">My Calendar template tags<\/a> with location values, and will be custom output.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Supported Template Tags<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>{id}, {label}, {street}, {street2}, {city}, {state}, {postcode}, {region}, {url}, {country}, {longitude}, {latitude}, {zoom}, {phone}, {phone2}<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next: My Calendar > Locations > <a data-type=\"post\" data-id=\"80\" href=\"https:\/\/docs.joedolson.com\/my-calendar\/my-calendar-location-add-new-location\/\">Add New Location<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Locations is located under My Calendar > Locations. Update location permalinks This option only appears if there is no value currently saved for the location permalinks. The default is &#8216;mc-locations&#8217;. Clicking Update location permalinks takes you to the Settings > Permalinks screen. Here we can change the slug part of mc-locations to a custom value. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[22],"class_list":["post-309","post","type-post","status-publish","format-standard","hentry","category-locations","tag-locations"],"_links":{"self":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/309","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=309"}],"version-history":[{"count":24,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":485,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/309\/revisions\/485"}],"wp:attachment":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}