{"id":70263,"date":"2013-10-10T04:41:28","date_gmt":"2013-10-10T11:41:28","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/front-end-filtering-widget-calendar\/"},"modified":"2013-10-10T04:41:28","modified_gmt":"2013-10-10T11:41:28","slug":"front-end-filtering-widget-calendar","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/","title":{"rendered":"Front end filtering widget calendar"},"content":{"rendered":"<p>Hi, <\/p>\n<p>I know this is a requirement but from the pre sales questions I posed I feel a little let down as to the capabilities of the widget mini calendar.<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"DlJgw1gTMc\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-colours-or-filters-in-widget\/\">filtering colours or filters in widget&#8230;<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;filtering colours or filters in widget&#8230;&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filtering-colours-or-filters-in-widget\/embed\/#?secret=05Nhy6M7ag#?secret=DlJgw1gTMc\" data-secret=\"DlJgw1gTMc\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>I just want to be able to filter through 4 venues and I wondered if anyone has achieved this within the widget?<\/p>\n<p>I&#8217;m able to display the name bellow the calendar by using this:<\/p>\n<p>get_venue_info();<br \/>\n$venue_options = array();<br \/>\nif ( is_array($venues) &amp;&amp; !empty($venues) ) {<br \/>\n\t$venue_options[0] = __(&#8216;No Default&#8217;, &#8216;tribe-events-calendar-pro&#8217;);<br \/>\n\tforeach ($venues as $venue) {<br \/>\n\t\t$venue_options[$venue-&gt;ID] = $venue-&gt;post_title;<br \/>\n\t}<br \/>\n}<br \/>\nforeach ($venues as $venue)<br \/>\n\t{ ?&gt;<br \/>\n\tID); ?&gt;<\/p>\n<p>Obviously I have no links or id but I was just going to make each one an id of the venue name.<br \/>\nThe part that I&#8217;m stuck on is creating this click event within widget-calendar.js<\/p>\n<p>I know I need to replicate this:<br \/>\nvar params = {<br \/>\n\t\t\taction   \t:&#8217;tribe-mini-cal&#8217;,<br \/>\n\t\t\teventDate\t: month_target,<br \/>\n\t\t\tcount    \t: $current_calendar.data(&#8216;count&#8217;),<br \/>\n\t\t\ttax_query\t: $current_calendar.data(&#8216;tax-query&#8217;),<br \/>\n\t\t\tnonce    \t: $current_calendar.data(&#8216;nonce&#8217;)<br \/>\n\t\t};<\/p>\n<p>But what is the ajax function for venues, so here we have eventDate for the date.<br \/>\nIs there a similar thing for venue? I thought eventVenue but that didn&#8217;t work!!<\/p>\n<p>If anyone has pointers that would be great.<\/p>\n<p>Also I have tried the list of freelancers you gave out but majority of them said they didn&#8217;t have knowledge in this plugin!!!<br \/>\n\ud83d\ude42 <\/p>\n","protected":false},"template":"","class_list":["post-70263","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>Front end filtering widget calendar -<\/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\/front-end-filtering-widget-calendar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Front end filtering widget calendar -\" \/>\n<meta property=\"og:description\" content=\"Hi, I know this is a requirement but from the pre sales questions I posed I feel a little let down as to the capabilities of the widget mini calendar. filtering colours or filters in widget&#8230; I just want to be able to filter through 4 venues and I wondered if anyone has achieved this [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/\" \/>\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\/front-end-filtering-widget-calendar\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/\",\"name\":\"Front end filtering widget calendar -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-10-10T11:41:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/#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\":\"Front end filtering widget calendar\"}]},{\"@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":"Front end filtering widget calendar -","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\/front-end-filtering-widget-calendar\/","og_locale":"en_US","og_type":"article","og_title":"Front end filtering widget calendar -","og_description":"Hi, I know this is a requirement but from the pre sales questions I posed I feel a little let down as to the capabilities of the widget mini calendar. filtering colours or filters in widget&#8230; I just want to be able to filter through 4 venues and I wondered if anyone has achieved this [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/","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\/front-end-filtering-widget-calendar\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/","name":"Front end filtering widget calendar -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-10-10T11:41:28+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/front-end-filtering-widget-calendar\/#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":"Front end filtering widget calendar"}]},{"@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\/70263","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/70263\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=70263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}