{"id":14807321,"date":"2021-08-26T11:00:40","date_gmt":"2021-08-26T11:00:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/change-default_order_by-to-start-date\/"},"modified":"2021-08-26T11:00:40","modified_gmt":"2021-08-26T11:00:40","slug":"change-default_order_by-to-start-date","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/change-default_order_by-to-start-date\/","title":{"rendered":"change default_order_by to start date"},"content":{"rendered":"<p>hello hive<\/p>\n<p>i&#8217;m using the category ajax filter and am looking to change the default order that events are listed in. i&#8217;ve changed the functions.php file code line $default_order_by=&#8217;title&#8217;; to $default_order_by=&#8217;post_date&#8217;; but it&#8217;s not quite what i want!<\/p>\n<p>what i want is to order events by their start date, but i can&#8217;t find a replacement variable which works<\/p>\n<p>can anyone help please?<\/p>\n<p>loving the plugin : ] cheers<\/p>\n","protected":false},"template":"","class_list":["post-14807321","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14807321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14807321\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14807321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}