{"id":30053,"date":"2012-12-27T22:39:39","date_gmt":"2012-12-28T06:39:39","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/"},"modified":"2015-07-07T06:26:23","modified_gmt":"2015-07-07T13:26:23","slug":"mini-calendar-click-month-display-events-from-that-month","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/","title":{"rendered":"Mini Calendar: Click month, display events from that month"},"content":{"rendered":"<p>Hello! Happy Holidays!<br \/>\nOur calendar is only to be displayed as an events list; we won&#8217;t ever show the grid calendar display. However, we&#8217;re using the mini calendar to allow users to browse through each month&#8217;s worth of events.<\/p>\n<p>One of my client&#8217;s requirements: make the mini-calendar Month\/Year title a link. When clicked, load a page in that displays the Events List, limited just to that month. (Doesn&#8217;t need to be AJAX). Best case: reset the list.php view to query just that month using a uri query.<\/p>\n<p>I&#8217;ve looked over the tribe_get_events() function, so I can see how that could be used to modify the query, should I need to create a new page template for this (or set up an if statement). I&#8217;ve also switched to a month view by entering \/calendar\/YYYY-MM at the end of my uri, but that brings up the grid, and I can&#8217;t see any way of forcing that to display the list view.<\/p>\n<p>I know I can set up an anchor on the mini-calendar month that evaluates the text and sets up a link, that seems easy. However, what I&#8217;m not sure how to do is set that link to load the events list view displaying only that month. I&#8217;d assume I&#8217;d want to throw the YYYY-MM into the url, but how do I then force the page not to show the calendar grid view? Or, if I create a custom page to do this, how do I get it to show up within the permalink structure that the rest of the calendar shares to avoid confusing users?<\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-30053","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mini Calendar: Click month, display events from that month -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mini Calendar: Click month, display events from that month -\" \/>\n<meta property=\"og:description\" content=\"Hello! Happy Holidays! Our calendar is only to be displayed as an events list; we won&#8217;t ever show the grid calendar display. However, we&#8217;re using the mini calendar to allow users to browse through each month&#8217;s worth of events. One of my client&#8217;s requirements: make the mini-calendar Month\/Year title a link. When clicked, load a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:26:23+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/\",\"name\":\"Mini Calendar: Click month, display events from that month -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2012-12-28T06:39:39+00:00\",\"dateModified\":\"2015-07-07T13:26:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Mini Calendar: Click month, display events from that month\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mini Calendar: Click month, display events from that month -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/","og_locale":"en_US","og_type":"article","og_title":"Mini Calendar: Click month, display events from that month -","og_description":"Hello! Happy Holidays! Our calendar is only to be displayed as an events list; we won&#8217;t ever show the grid calendar display. However, we&#8217;re using the mini calendar to allow users to browse through each month&#8217;s worth of events. One of my client&#8217;s requirements: make the mini-calendar Month\/Year title a link. When clicked, load a [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/","article_modified_time":"2015-07-07T13:26:23+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/","name":"Mini Calendar: Click month, display events from that month -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2012-12-28T06:39:39+00:00","dateModified":"2015-07-07T13:26:23+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mini-calendar-click-month-display-events-from-that-month\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Mini Calendar: Click month, display events from that month"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/30053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/30053\/revisions"}],"predecessor-version":[{"id":978361,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/30053\/revisions\/978361"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=30053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}