{"id":1196737,"date":"2016-11-23T14:00:21","date_gmt":"2016-11-23T22:00:21","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/"},"modified":"2016-11-23T14:00:21","modified_gmt":"2016-11-23T22:00:21","slug":"events-in-main-blog-loop-reversed","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/","title":{"rendered":"Events in main blog loop reversed"},"content":{"rendered":"<p>This seems to be an ongoing issue that a few folks have mentioned but no real resolution. Ive even talked to Geoff about it in the free WP forums but his link to a fix doesnt work. <\/p>\n<p>The DEV Site is here:<br \/>\nhttp:\/\/naidevsite1.us\/<\/p>\n<p>The problem is, the WP loop displays based on the date the post is created. Makes sense for your basic blog feeds. The issue at hand is that it displays the events listings by date created as well and I need them to display by event date, but still be mixed in with the latest news (posts) feed. <\/p>\n<p>Here is a Modern Tribe support forum post on the issue that includes some code to add to the functions.php<br \/>\nhttps:\/\/wordpress.org\/support\/topic\/events-in-main-blog-loop-reversed\/#post-8457888<\/p>\n<p>the code:<br \/>\nhttps:\/\/gist.github.com\/geoffgraham\/b3e17ea1bb2a6464b119<\/p>\n<p>This code is wrong somehow. When I used it with a &#8216;orderby&#8217; =&gt; &#8216;start_date&#8217;, I got the error:<br \/>\nParse error: syntax error, unexpected &#8216;=&gt;&#8217; (T_DOUBLE_ARROW) in \/home\/naidev01\/public_html\/wp-content\/themes\/wp_bullet-child\/functions.php on line 15<\/p>\n<p>My discussions with another program brought up additional (possible)  issues:<br \/>\n&#8220;I think that Github code might be a good start but there is more missing than a simple orderby, and it&#8217;s not a matter of a syntax error only. If I&#8217;m correct, meta query should be constructed here, and without making some tests we can&#8217;t be sure how it&#8217;s going to mix with regular posts.&#8221;<\/p>\n<p>Im confused as to why this isnt a bigger issue for folks? How can we overcome the problem of the events not ordered by start date in the main loop? <\/p>\n","protected":false},"template":"","class_list":["post-1196737","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>Events in main blog loop reversed -<\/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\/events-in-main-blog-loop-reversed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Events in main blog loop reversed -\" \/>\n<meta property=\"og:description\" content=\"This seems to be an ongoing issue that a few folks have mentioned but no real resolution. Ive even talked to Geoff about it in the free WP forums but his link to a fix doesnt work. The DEV Site is here: http:\/\/naidevsite1.us\/ The problem is, the WP loop displays based on the date the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/\" \/>\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\/events-in-main-blog-loop-reversed\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/\",\"name\":\"Events in main blog loop reversed -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-11-23T22:00:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/#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\":\"Events in main blog loop reversed\"}]},{\"@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":"Events in main blog loop reversed -","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\/events-in-main-blog-loop-reversed\/","og_locale":"en_US","og_type":"article","og_title":"Events in main blog loop reversed -","og_description":"This seems to be an ongoing issue that a few folks have mentioned but no real resolution. Ive even talked to Geoff about it in the free WP forums but his link to a fix doesnt work. The DEV Site is here: http:\/\/naidevsite1.us\/ The problem is, the WP loop displays based on the date the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/","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\/events-in-main-blog-loop-reversed\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/","name":"Events in main blog loop reversed -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-11-23T22:00:21+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-in-main-blog-loop-reversed\/#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":"Events in main blog loop reversed"}]},{"@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\/1196737","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\/1196737\/revisions"}],"predecessor-version":[{"id":1208503,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1196737\/revisions\/1208503"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1196737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}