{"id":992801,"date":"2015-08-03T11:05:22","date_gmt":"2015-08-03T18:05:22","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/"},"modified":"2015-08-24T07:05:04","modified_gmt":"2015-08-24T14:05:04","slug":"next-prev-links-when-showing-all-recurring-events-instances-loads-other-events","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/","title":{"rendered":"next \/ prev links when showing all recurring events instances loads other events"},"content":{"rendered":"<p>On the view returned by the &#8216;all&#8217; endpoint for recurring events, I&#8217;ve got the standard tribe_get_listview_prev_link() and tribe_get_listview_next_link() to paginate. However, when you click, the next page the AJAX loads includes other events (not in the recurring series).<\/p>\n<p>If the basic URL is this:<\/p>\n<p>\/event\/test-event\/all\/<\/p>\n<p>The &#8216;next&#8217; page is given this URL:<\/p>\n<p>\/event\/test-event\/all\/?tribe_paged=2&amp;tribe_event_display=all<\/p>\n<p>If I hack &amp;tribe_event_display=all off the end, the pagination works fine. However, if I try to remove this query arg from the URL returned by tribe_get_listview_next_link(), the AJAX JS breaks:<\/p>\n<p>tribe-events-ajax-list.js?ver=3.11.2:77 Uncaught TypeError: Cannot read property &#8216;1&#8217; of null<\/p>\n<p>Is tribe_get_listview_next_link() the right function to use in this context? Is there a way of removing tribe_event_display without breaking the AJAX?<\/p>\n","protected":false},"template":"","class_list":["post-992801","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>next \/ prev links when showing all recurring events instances loads other events -<\/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\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"next \/ prev links when showing all recurring events instances loads other events -\" \/>\n<meta property=\"og:description\" content=\"On the view returned by the &#8216;all&#8217; endpoint for recurring events, I&#8217;ve got the standard tribe_get_listview_prev_link() and tribe_get_listview_next_link() to paginate. However, when you click, the next page the AJAX loads includes other events (not in the recurring series). If the basic URL is this: \/event\/test-event\/all\/ The &#8216;next&#8217; page is given this URL: \/event\/test-event\/all\/?tribe_paged=2&amp;tribe_event_display=all If I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-24T14:05:04+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\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/\",\"name\":\"next \/ prev links when showing all recurring events instances loads other events -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-08-03T18:05:22+00:00\",\"dateModified\":\"2015-08-24T14:05:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/#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\":\"next \/ prev links when showing all recurring events instances loads other events\"}]},{\"@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":"next \/ prev links when showing all recurring events instances loads other events -","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\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/","og_locale":"en_US","og_type":"article","og_title":"next \/ prev links when showing all recurring events instances loads other events -","og_description":"On the view returned by the &#8216;all&#8217; endpoint for recurring events, I&#8217;ve got the standard tribe_get_listview_prev_link() and tribe_get_listview_next_link() to paginate. However, when you click, the next page the AJAX loads includes other events (not in the recurring series). If the basic URL is this: \/event\/test-event\/all\/ The &#8216;next&#8217; page is given this URL: \/event\/test-event\/all\/?tribe_paged=2&amp;tribe_event_display=all If I [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/","article_modified_time":"2015-08-24T14:05:04+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\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/","name":"next \/ prev links when showing all recurring events instances loads other events -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-08-03T18:05:22+00:00","dateModified":"2015-08-24T14:05:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/next-prev-links-when-showing-all-recurring-events-instances-loads-other-events\/#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":"next \/ prev links when showing all recurring events instances loads other events"}]},{"@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\/992801","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\/992801\/revisions"}],"predecessor-version":[{"id":992907,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/992801\/revisions\/992907"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=992801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}