{"id":1192602,"date":"2016-11-15T09:50:53","date_gmt":"2016-11-15T17:50:53","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/"},"modified":"2016-11-15T09:52:09","modified_gmt":"2016-11-15T17:52:09","slug":"pulling-past-and-upcoming-event-in-single-event-page","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/","title":{"rendered":"Pulling Past and Upcoming Event In Single Event Page"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I am working on a custom single event page template.<\/p>\n<p>I am trying to pull past events in one box and pull upcoming events in another box.<\/p>\n<p>Each box is only suppose to pull two events.<\/p>\n<p>What is the best way to tackle this?<\/p>\n","protected":false},"template":"","class_list":["post-1192602","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>Pulling Past and Upcoming Event In Single Event 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\/pulling-past-and-upcoming-event-in-single-event-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pulling Past and Upcoming Event In Single Event Page -\" \/>\n<meta property=\"og:description\" content=\"Hi, I am working on a custom single event page template. I am trying to pull past events in one box and pull upcoming events in another box. Each box is only suppose to pull two events. What is the best way to tackle this?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-11-15T17:52:09+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/\",\"name\":\"Pulling Past and Upcoming Event In Single Event Page -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-11-15T17:50:53+00:00\",\"dateModified\":\"2016-11-15T17:52:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-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\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Pulling Past and Upcoming Event In Single Event 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":"Pulling Past and Upcoming Event In Single Event 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\/pulling-past-and-upcoming-event-in-single-event-page\/","og_locale":"en_US","og_type":"article","og_title":"Pulling Past and Upcoming Event In Single Event Page -","og_description":"Hi, I am working on a custom single event page template. I am trying to pull past events in one box and pull upcoming events in another box. Each box is only suppose to pull two events. What is the best way to tackle this?","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/","article_modified_time":"2016-11-15T17:52:09+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/","name":"Pulling Past and Upcoming Event In Single Event Page -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-11-15T17:50:53+00:00","dateModified":"2016-11-15T17:52:09+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-page\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/pulling-past-and-upcoming-event-in-single-event-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":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Pulling Past and Upcoming Event In Single Event 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\/1192602","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\/1192602\/revisions"}],"predecessor-version":[{"id":1192606,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1192602\/revisions\/1192606"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1192602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}