{"id":802737,"date":"2014-10-11T05:43:12","date_gmt":"2014-10-11T12:43:12","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/"},"modified":"2014-10-13T06:58:49","modified_gmt":"2014-10-13T13:58:49","slug":"i-only-need-help-to-create-a-new-function-for-a-defined-category","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/","title":{"rendered":"I only need help to create a new function for a defined category"},"content":{"rendered":"<p>Hi there!<\/p>\n<p>Great plugin! I&#8217;m using the free Events Calendar plugin and I actually don&#8217;t need the extra functions of the Pro version, but I&#8217;ll pay for a license in order to get speedy help to achieve the following. <\/p>\n<p>I don&#8217;t know code, and I&#8217;ve tried and failed for the last two days to try to do this! This is what I need: I need a category for &#8220;Past Events&#8221; that would only return past events. That&#8217;s it. <\/p>\n<p>In other words, I need to be able to bypass Events Calendar&#8217;s default array return of only upcoming events.<\/p>\n<p>On my site, I also need a category for &#8220;All Events&#8221; that would always return all events, but if I can get code that would solve the &#8220;Past Events&#8221; issue,  I&#8217;m sure it could adapted to other requirements. If this has been done before already, and a code snippet exists for it, please tell me. I searched high and low and cannot find a solution.<\/p>\n<p>If a code snippet doesn&#8217;t exist, please tell me if someone of your team can help with this simple function and I&#8217;ll go Pro immediately.<\/p>\n<p>(As a suggestion for future builds: Please give an option in the Events Calendar admin panel to override the default and show all events on an archive page.)<\/p>\n<p>best wishes,<br \/>\nian<\/p>\n","protected":false},"template":"","class_list":["post-802737","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>I only need help to create a new function for a defined category -<\/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\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I only need help to create a new function for a defined category -\" \/>\n<meta property=\"og:description\" content=\"Hi there! Great plugin! I&#8217;m using the free Events Calendar plugin and I actually don&#8217;t need the extra functions of the Pro version, but I&#8217;ll pay for a license in order to get speedy help to achieve the following. I don&#8217;t know code, and I&#8217;ve tried and failed for the last two days to try [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-13T13:58:49+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\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/\",\"name\":\"I only need help to create a new function for a defined category -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-10-11T12:43:12+00:00\",\"dateModified\":\"2014-10-13T13:58:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/#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\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"I only need help to create a new function for a defined category\"}]},{\"@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":"I only need help to create a new function for a defined category -","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\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/","og_locale":"en_US","og_type":"article","og_title":"I only need help to create a new function for a defined category -","og_description":"Hi there! Great plugin! I&#8217;m using the free Events Calendar plugin and I actually don&#8217;t need the extra functions of the Pro version, but I&#8217;ll pay for a license in order to get speedy help to achieve the following. I don&#8217;t know code, and I&#8217;ve tried and failed for the last two days to try [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/","article_modified_time":"2014-10-13T13:58:49+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\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/","name":"I only need help to create a new function for a defined category -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-10-11T12:43:12+00:00","dateModified":"2014-10-13T13:58:49+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-only-need-help-to-create-a-new-function-for-a-defined-category\/#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":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"I only need help to create a new function for a defined category"}]},{"@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\/802737","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\/802737\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=802737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}