{"id":1099911,"date":"2016-04-07T19:29:46","date_gmt":"2016-04-08T02:29:46","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/"},"modified":"2016-04-28T09:35:05","modified_gmt":"2016-04-28T16:35:05","slug":"my-filters-arent-quite-working-on-my-photos-page","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/","title":{"rendered":"My filters aren&#8217;t quite working on my photos page."},"content":{"rendered":"<p>I&#8217;m stuck. I&#8217;ve been doing some customization (yes, I know you can&#8217;t really give advice when it comes to that, but I&#8217;ll explain), and I noticed that my filters work on all my views except the photos view. I modified the theme like crazy, but the code is relatively the same as yours. The visuals changed; the code, not so much.<\/p>\n<p>I&#8217;ve been looking in to this issue for hours (over days) and I still haven&#8217;t figured it out. When I try to use the filters on the photos page, the first filter works. If you select another, it stops working and locks up. I used Firebug and found this error reported when this happens:<\/p>\n<blockquote><p>Error: TypeError: v is undefined<br \/>\nSource File:\/wp-content\/plugins\/events-calendar-pro\/src\/resources\/js\/tribe-events-photo-view.min.js?ver=4.1.1<br \/>\nLine: 1<\/p><\/blockquote>\n<p>Clearly, the reason the photos page is having issues is because of the JavaScript which applies to this page and not to the others. What&#8217;s not so obvious is why this is happening, and how I can fix it.<\/p>\n<p>This is a link to the photos page, which has issues with the filters:\u00a0home page<br \/>\nAnd a link to the lists page, whose filters work fine: \/events\/list<\/p>\n<p>I&#8217;m wondering if you could offer some insight? I tried using another theme, and it seemed to work part of the time. My theme&#8217;s similar, and I&#8217;m using the same code for the filters as you use. Here&#8217;s an example of what my code looks like for a category:<\/p>\n<pre><code>&lt;form id=\"tribe_events_filters_form\" method=\"post\" action=\"\"&gt;\r\n...\r\n&lt;ul id=\"desktop_menu\"&gt;\r\n\t&lt;li class=\"desktop_menuTitle\"&gt;Categories&lt;\/li&gt;\r\n\t&lt;li&gt;\r\n\t\t&lt;label class=\"desktop_menuLabel\"&gt;&lt;input class=\"desktop_menuInput\" type=\"checkbox\" value=\"1\" name=\"tribe_eventcategory[]\" data-slug=\"uncategorized\" \/&gt;\r\n\t\t&lt;span class=\"desktop_menuBox\"&gt;&lt;img src=\"\/wp-content\/themes\/responsive\/core\/images\/header_icon_categories_uncategorized.png\" alt=\"\" \/&gt; No Category&lt;\/span&gt;&lt;\/label&gt;\r\n\t&lt;\/li&gt;\r\n...<\/code><\/pre>\n<p>Do you have any suggestions?<\/p>\n<p>Thank you for all your help!<br \/>\nBrendan<\/p>\n","protected":false},"template":"","class_list":["post-1099911","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>My filters aren&#039;t quite working on my photos page. -<\/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\/my-filters-arent-quite-working-on-my-photos-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"My filters aren&#039;t quite working on my photos page. -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m stuck. I&#8217;ve been doing some customization (yes, I know you can&#8217;t really give advice when it comes to that, but I&#8217;ll explain), and I noticed that my filters work on all my views except the photos view. I modified the theme like crazy, but the code is relatively the same as yours. The visuals [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-28T16:35:05+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/\",\"name\":\"My filters aren't quite working on my photos page. -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-04-08T02:29:46+00:00\",\"dateModified\":\"2016-04-28T16:35:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/#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\":\"My filters aren&#8217;t quite working on my photos page.\"}]},{\"@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":"My filters aren't quite working on my photos page. -","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\/my-filters-arent-quite-working-on-my-photos-page\/","og_locale":"en_US","og_type":"article","og_title":"My filters aren't quite working on my photos page. -","og_description":"I&#8217;m stuck. I&#8217;ve been doing some customization (yes, I know you can&#8217;t really give advice when it comes to that, but I&#8217;ll explain), and I noticed that my filters work on all my views except the photos view. I modified the theme like crazy, but the code is relatively the same as yours. The visuals [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/","article_modified_time":"2016-04-28T16:35:05+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/","name":"My filters aren't quite working on my photos page. -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-04-08T02:29:46+00:00","dateModified":"2016-04-28T16:35:05+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/my-filters-arent-quite-working-on-my-photos-page\/#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":"My filters aren&#8217;t quite working on my photos page."}]},{"@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\/1099911","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1099911\/revisions"}],"predecessor-version":[{"id":1100084,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1099911\/revisions\/1100084"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1099911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}