{"id":973429,"date":"2015-06-29T01:36:29","date_gmt":"2015-06-29T08:36:29","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/"},"modified":"2015-07-10T09:23:02","modified_gmt":"2015-07-10T16:23:02","slug":"events-ordering","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/","title":{"rendered":"Events ordering"},"content":{"rendered":"<p>Even thought this has been added to my site and until today the ordering was correct &#8211; all of a sudden it has reverted back to the incorrect order &#8211; can you help please &#8211; Also I would like to add a line between each event as per the blog posts <\/p>\n<p><strong>add_action( &#8216;pre_get_posts&#8217;, &#8216;tribe_post_date_ordering&#8217;, 51 );<\/p>\n<p>function tribe_post_date_ordering( $query ) {<br \/>\n\tif ( ! empty( $query-&gt;tribe_is_multi_posttype ) ) {<br \/>\n\t\tremove_filter( &#8216;posts_fields&#8217;, array( &#8216;Tribe__Events__Query&#8217;, &#8216;multi_type_posts_fields&#8217; ) );<br \/>\n\t\t$query-&gt;set( &#8216;order&#8217;, &#8216;DESC&#8217; );<br \/>\n\t}<br \/>\n}<\/strong><\/p>\n","protected":false},"template":"","class_list":["post-973429","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 ordering -<\/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-ordering\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Events ordering -\" \/>\n<meta property=\"og:description\" content=\"Even thought this has been added to my site and until today the ordering was correct &#8211; all of a sudden it has reverted back to the incorrect order &#8211; can you help please &#8211; Also I would like to add a line between each event as per the blog posts add_action( &#8216;pre_get_posts&#8217;, &#8216;tribe_post_date_ordering&#8217;, 51 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-10T16:23:02+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\/events-ordering\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/\",\"name\":\"Events ordering -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-06-29T08:36:29+00:00\",\"dateModified\":\"2015-07-10T16:23:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/#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 ordering\"}]},{\"@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 ordering -","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-ordering\/","og_locale":"en_US","og_type":"article","og_title":"Events ordering -","og_description":"Even thought this has been added to my site and until today the ordering was correct &#8211; all of a sudden it has reverted back to the incorrect order &#8211; can you help please &#8211; Also I would like to add a line between each event as per the blog posts add_action( &#8216;pre_get_posts&#8217;, &#8216;tribe_post_date_ordering&#8217;, 51 [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/","article_modified_time":"2015-07-10T16:23:02+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/","name":"Events ordering -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-06-29T08:36:29+00:00","dateModified":"2015-07-10T16:23:02+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-ordering\/#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 ordering"}]},{"@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\/973429","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\/973429\/revisions"}],"predecessor-version":[{"id":973609,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/973429\/revisions\/973609"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=973429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}