{"id":1296789,"date":"2017-06-12T12:38:17","date_gmt":"2017-06-12T19:38:17","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/"},"modified":"2017-06-12T12:38:17","modified_gmt":"2017-06-12T19:38:17","slug":"show-only-first-instance-of-recurring-event-alters-query-for-pages-too","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/","title":{"rendered":"&quot;Show only first instance of recurring event&quot; alters query for pages too?!"},"content":{"rendered":"<p>Hi, we have a site that is using AJAX to query the database based on user input. We are displaying multiple types of content, including pages, posts, custom post types and tribe_events. Like most users, we do not want every single future instance of recurring events to show up in the results, so we have checked the box in tribe settings to &#8220;Show only the first instance of each recurring event&#8221;<br \/>\nHowever when we set this, it seems to modify the query so that it only shows the first instance of CHILD PAGES as well. <\/p>\n<p>For example, we have about two dozen &#8220;sibling&#8221; child pages showing all different kinds of services. Our AJAX query shows all of them mixed with other results as expected when the &#8220;show only first instance&#8221; setting is NOT checked. (but as you can imagine, future events totally dominate this list which is annoying) But when this settings box is checked, the results of our AJAX query shows only the ONE most recent CHILD PAGE as well as tribe_event. (I tested this by changing the modified date of the page). <\/p>\n<p>This setting is incredibly heavy handed &#8212; it really needs to be changed to ONLY affect tribe_event post types! Is there any way we can alter this behavior?<\/p>\n","protected":false},"template":"","class_list":["post-1296789","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>&quot;Show only first instance of recurring event&quot; alters query for pages too?! -<\/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\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;Show only first instance of recurring event&quot; alters query for pages too?! -\" \/>\n<meta property=\"og:description\" content=\"Hi, we have a site that is using AJAX to query the database based on user input. We are displaying multiple types of content, including pages, posts, custom post types and tribe_events. Like most users, we do not want every single future instance of recurring events to show up in the results, so we have [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/\" \/>\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\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/\",\"name\":\"&quot;Show only first instance of recurring event&quot; alters query for pages too?! -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-06-12T19:38:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/#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\":\"&quot;Show only first instance of recurring event&quot; alters query for pages too?!\"}]},{\"@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":"&quot;Show only first instance of recurring event&quot; alters query for pages too?! -","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\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/","og_locale":"en_US","og_type":"article","og_title":"&quot;Show only first instance of recurring event&quot; alters query for pages too?! -","og_description":"Hi, we have a site that is using AJAX to query the database based on user input. We are displaying multiple types of content, including pages, posts, custom post types and tribe_events. Like most users, we do not want every single future instance of recurring events to show up in the results, so we have [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/","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\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/","name":"&quot;Show only first instance of recurring event&quot; alters query for pages too?! -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-06-12T19:38:17+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-only-first-instance-of-recurring-event-alters-query-for-pages-too\/#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":"&quot;Show only first instance of recurring event&quot; alters query for pages too?!"}]},{"@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\/1296789","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\/1296789\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1296789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}