{"id":750933,"date":"2014-09-18T10:07:29","date_gmt":"2014-09-18T17:07:29","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/"},"modified":"2014-10-07T08:55:28","modified_gmt":"2014-10-07T15:55:28","slug":"chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/","title":{"rendered":"Chosing a specifc date returns results FROM the date and not ON the date"},"content":{"rendered":"<p>I need to select a date on the front end that displays events ON the date in question. The plugin returns events FROM the date in question.<\/p>\n<p>I just read this and disagree with the notion that this is a &#8220;feature&#8221; -&gt; https:\/\/tri.be\/support\/forums\/topic\/selecting-a-day-returns-other-days-besides-the-one-i-pick\/<\/p>\n<p>I guess it depends on one&#8217;s perspective&#8230;but I dont agree with the logic of the Tri.be representatives explanation of: &#8220;What you are describing appears to be a feature of our plugin. In all list views, namely List, Map, Photo, it shows event from that day forward.&#8221;<\/p>\n<p>The person that authored that reply was very careful in his wording: &#8220;So if you search FROM June 21st.&#8221; Which is NOT what the thread author asked for. He stated &#8220;here is the result for a search of events ON June 12 2014: http:\/\/brasileirinho.com\/pt\/events\/?action=tribe_photo&amp;tribe_paged=1&amp;tribe_event_display=photo&amp;tribe-bar-date=2014-06-12&#8221;<\/p>\n<p>Not &#8220;FROM&#8221; June 12th forward&#8230;&#8221;ON&#8221; June 12th.<\/p>\n<p>I have the exact issue, but its compounded by the notion that I have 10 sites representing Washington DC and its Suburbs. I&#8217;m trying to find events ON Halloween, Oct 31st, and its giving me events FROM October 31st. Which is incorrect:<br \/>\nhttp:\/\/socialalerts.com\/washingtondc\/events\/photo\/?action=tribe_photo&#038;tribe_paged=1&#038;tribe_event_display=photo&#038;tribe-bar-date=2014-10-31<\/p>\n<p>OK (and sorry to be long winded&#8230;lol) -&gt; Here are my question(s):<\/p>\n<p>1. How do I specify &#8220;events that start ON October 31&#8221; &#8211; Not events FROM October 31st and forward&#8230;I mean STRICTLY that start ON October 31st?<\/p>\n<p>2 (not really a question). For the record, I have a work around but the work around isn&#8217;t viable: Please do NOT reply with my workaround of &#8220;go into the backend, filter events as startdate = oct 31st, crate a &#8220;2014-10-31&#8221; category, mark those events with the 2014-10-31 category and then make a link called \/events\/2014-10-31 \ud83d\ude42 While this workaround would work as a stopgap, the solution isn&#8217;t viable because I&#8217;d have to make 365 categories if I want the user to be able to see events on any specific day of the year. In addition, I have to make 10 2014-10-31 categories, one for each site (um&#8230;no) and as for searching on each day of the year? 10 sites based on suburbs of Washington DC, 365 days so I&#8217;d have to 3650 categories&#8230;um&#8230;no. Again <\/p>\n<p>\ud83d\ude42 \ud83d\ude42 \ud83d\ude42<\/p>\n<p>3. Why are you able to select dates that START as 2014-10-31 in the admin\/backend at \/wp-admin\/edit.php?post_type=tribe_events via the filter that do NOT include dates that start afterwards&#8230;but NOT in the front end date picker? Seems to be a direct contradiction to what the tribe representative in the other thread stated&#8230;<\/p>\n<p>4. I see this in the original thread also: &#8220;If you would like to change this functionality to only show event from the date searched&#8230;you would simply hook into \u2018tribe_events_pre_get_posts\u2019, check if the URL action var is tribe_photo, or tribe_upcoming or tribe_map, and if the tribe-bar-date parameter is set. If so, limit the query to today by adding a condition for the post meta _EventStartDate that check to see if the event is lesser than tomorrow.&#8221; &#8211; This is way over my head and also isnt correct because it addresses &#8220;TODAY&#8221; not &#8220;the date selected,&#8221; in MY case, 2014-10-31<\/p>\n<p>4a. Can I get a snippet that limits the returned events as described above but ONLY for the date selected?<\/p>\n<p>4b. In which file should I add the snippet?<\/p>\n<p>FYI &#8211; Im using version 3.5.1 &#8211; I had asked a question previously about database field name changes when upgrading and never got an answer&#8230;so I can&#8217;t upgrade until I hear back concerning that. (If you decide to research any database field name changes please NO NOT delay the answers to 1-4. Just reply when you get an answer. And THANK YOU!<\/p>\n<p>&#8211; efromdc<\/p>\n","protected":false},"template":"","class_list":["post-750933","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>Chosing a specifc date returns results FROM the date and not ON the date -<\/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\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Chosing a specifc date returns results FROM the date and not ON the date -\" \/>\n<meta property=\"og:description\" content=\"I need to select a date on the front end that displays events ON the date in question. The plugin returns events FROM the date in question. I just read this and disagree with the notion that this is a &#8220;feature&#8221; -&gt; https:\/\/tri.be\/support\/forums\/topic\/selecting-a-day-returns-other-days-besides-the-one-i-pick\/ I guess it depends on one&#8217;s perspective&#8230;but I dont agree with the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-07T15:55:28+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=\"3 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\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/\",\"name\":\"Chosing a specifc date returns results FROM the date and not ON the date -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-09-18T17:07:29+00:00\",\"dateModified\":\"2014-10-07T15:55:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/#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\":\"Chosing a specifc date returns results FROM the date and not ON the date\"}]},{\"@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":"Chosing a specifc date returns results FROM the date and not ON the date -","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\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/","og_locale":"en_US","og_type":"article","og_title":"Chosing a specifc date returns results FROM the date and not ON the date -","og_description":"I need to select a date on the front end that displays events ON the date in question. The plugin returns events FROM the date in question. I just read this and disagree with the notion that this is a &#8220;feature&#8221; -&gt; https:\/\/tri.be\/support\/forums\/topic\/selecting-a-day-returns-other-days-besides-the-one-i-pick\/ I guess it depends on one&#8217;s perspective&#8230;but I dont agree with the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/","article_modified_time":"2014-10-07T15:55:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/","name":"Chosing a specifc date returns results FROM the date and not ON the date -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-09-18T17:07:29+00:00","dateModified":"2014-10-07T15:55:28+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/chosing-a-specifc-date-returns-results-from-the-date-of-and-not-on-the-date-only\/#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":"Chosing a specifc date returns results FROM the date and not ON the date"}]},{"@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\/750933","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\/750933\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=750933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}