{"id":751527,"date":"2014-09-18T14:22:36","date_gmt":"2014-09-18T21:22:36","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/"},"modified":"2015-04-28T08:23:02","modified_gmt":"2015-04-28T15:23:02","slug":"filter-by-venue-drop-down-menu","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/","title":{"rendered":"Filter by Venue &#8211; Drop down menu"},"content":{"rendered":"<p>I like having a drop down menu instead of the checkbox option for filtering by venue.<\/p>\n<p>I have attempted to use some of the code from the category filter which can be viewed as drop down, but this is not functioning correctly. After changing the $type to checkbox, i pasted into the TribeEventsFilter_Venue.php file below<\/p>\n<p>public $type = &#8216;checkbox&#8217;;<\/p>\n<p>\t\tpublic function get_admin_form() {<br \/>\n\t\t$title = $this-&gt;get_title_field();<br \/>\n\t\t$type = $this-&gt;get_type_field();<br \/>\n\t\treturn $title.$type;<br \/>\n\t}<\/p>\n<p>\tprotected function get_type_field() {<br \/>\n\t\t$name = $this-&gt;get_admin_field_name(&#8216;type&#8217;);<br \/>\n\t\t$field = sprintf( __( &#8216;Type: %s %s&#8217;, &#8216;tribe-events-calendar-pro&#8217; ),<br \/>\n\t\t\tsprintf( &#8216;&lt;label&gt;&lt;input type=&#8221;radio&#8221; name=&#8221;%s&#8221; value=&#8221;select&#8221; %s \/&gt; %s&lt;\/label&gt;&#8217;,<br \/>\n\t\t\t\t$name,<br \/>\n\t\t\t\tchecked( $this-&gt;type, &#8216;select&#8217;, false ),<br \/>\n\t\t\t\t__( &#8216;Dropdown&#8217;, &#8216;tribe-events-calendar-pro&#8217; )<br \/>\n\t\t\t),<br \/>\n\t\t\tsprintf( &#8216;&lt;label&gt;&lt;input type=&#8221;radio&#8221; name=&#8221;%s&#8221; value=&#8221;radio&#8221; %s \/&gt; %s&lt;\/label&gt;&#8217;,<br \/>\n\t\t\t\t$name,<br \/>\n\t\t\t\tchecked( $this-&gt;type, &#8216;radio&#8217;, false ),<br \/>\n\t\t\t\t__( &#8216;Radio Buttons&#8217;, &#8216;tribe-events-calendar-pro&#8217; )<br \/>\n\t\t\t)<br \/>\n\t\t);<br \/>\n\t\treturn &#8216;&lt;div class=&#8221;tribe_events_active_filter_type_options&#8221;&gt;&#8217;.$field.'&lt;\/div&gt;&#8217;;<br \/>\n\t}<\/p>\n<p>While i can see the drop down menu after inserting this code, it does not process the filter. Any suggestions?<\/p>\n","protected":false},"template":"","class_list":["post-751527","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>Filter by Venue - Drop down menu -<\/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\/filter-by-venue-drop-down-menu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Filter by Venue - Drop down menu -\" \/>\n<meta property=\"og:description\" content=\"I like having a drop down menu instead of the checkbox option for filtering by venue. I have attempted to use some of the code from the category filter which can be viewed as drop down, but this is not functioning correctly. After changing the $type to checkbox, i pasted into the TribeEventsFilter_Venue.php file below [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-04-28T15:23:02+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\/filter-by-venue-drop-down-menu\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/\",\"name\":\"Filter by Venue - Drop down menu -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-09-18T21:22:36+00:00\",\"dateModified\":\"2015-04-28T15:23:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/#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\":\"Filter Bar\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/filter-bar\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Filter by Venue &#8211; Drop down menu\"}]},{\"@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":"Filter by Venue - Drop down menu -","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\/filter-by-venue-drop-down-menu\/","og_locale":"en_US","og_type":"article","og_title":"Filter by Venue - Drop down menu -","og_description":"I like having a drop down menu instead of the checkbox option for filtering by venue. I have attempted to use some of the code from the category filter which can be viewed as drop down, but this is not functioning correctly. After changing the $type to checkbox, i pasted into the TribeEventsFilter_Venue.php file below [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/","article_modified_time":"2015-04-28T15:23:02+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\/filter-by-venue-drop-down-menu\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/","name":"Filter by Venue - Drop down menu -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-09-18T21:22:36+00:00","dateModified":"2015-04-28T15:23:02+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/filter-by-venue-drop-down-menu\/#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":"Filter Bar","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/filter-bar\/"},{"@type":"ListItem","position":5,"name":"Filter by Venue &#8211; Drop down menu"}]},{"@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\/751527","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\/751527\/revisions"}],"predecessor-version":[{"id":958954,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/751527\/revisions\/958954"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=751527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}