{"id":997804,"date":"2015-08-20T20:32:06","date_gmt":"2015-08-21T03:32:06","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/"},"modified":"2015-08-21T16:28:41","modified_gmt":"2015-08-21T23:28:41","slug":"new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/","title":{"rendered":"New post to my website is not showing up above an upconing event post"},"content":{"rendered":"<p>We have an event upcoming on August 29 that has an event post in the posts page. I wrote two new posts (news &#8212; not an event) which should show at the top of the list of posts and they are showing up below the August 29 and other upcoming event posts. This happened a few years ago and I was given a function to add to my child theme to sort the news posts and event posts in order when written instead of by start date. It seems that isn&#8217;t working since the latest updates to the plugin.<\/p>\n<pre><code>&lt;?php\n\/\/\n\/\/ *************************************\n\/\/ Events Calendar fix\n\/\/ Sort Events posts by creation date rather than start date\n\/\/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\/\/\nadd_action( &#039;pre_get_posts&#039;, &#039;tribe_post_date_ordering&#039;, 51 );\nfunction tribe_post_date_ordering( $query ) {\nif ( $query-&gt;tribe_is_multi_posttype) {\nremove_filter( &#039;posts_fields&#039;, array( &#039;TribeEventsQuery&#039;, &#039;multi_type_posts_fields&#039; ) );\n$query-&gt;set( &#039;order&#039;, &#039;DESC&#039; );\n}\n}\n?&gt;\n<\/code><\/pre>\n<p>What do I need to do to make this work again?<br \/>\nThe posts are displayed on my home page at http:\/\/events.stcwdc.org<br \/>\nThe two event posts currently appearing above the latest news posts have not been marked to be stickies.<\/p>\n<p>I am using WordPress 4.3 and The Events Calendar Pro 3.11.1, The Events Calendar 3.11.2, and The Events Calendar: Eventbrite Tickets 3.11.1. I am using the Twenty Eleven theme with child adjustments. Everything worked correctly until the latest Events Calendar updates.<\/p>\n<p>Thanks.<\/p>\n","protected":false},"template":"","class_list":["post-997804","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>New post to my website is not showing up above an upconing event post -<\/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\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New post to my website is not showing up above an upconing event post -\" \/>\n<meta property=\"og:description\" content=\"We have an event upcoming on August 29 that has an event post in the posts page. I wrote two new posts (news &#8212; not an event) which should show at the top of the list of posts and they are showing up below the August 29 and other upcoming event posts. This happened a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-21T23:28:41+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\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/\",\"name\":\"New post to my website is not showing up above an upconing event post -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-08-21T03:32:06+00:00\",\"dateModified\":\"2015-08-21T23:28:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/#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\":\"New post to my website is not showing up above an upconing event post\"}]},{\"@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":"New post to my website is not showing up above an upconing event post -","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\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/","og_locale":"en_US","og_type":"article","og_title":"New post to my website is not showing up above an upconing event post -","og_description":"We have an event upcoming on August 29 that has an event post in the posts page. I wrote two new posts (news &#8212; not an event) which should show at the top of the list of posts and they are showing up below the August 29 and other upcoming event posts. This happened a [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/","article_modified_time":"2015-08-21T23:28:41+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\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/","name":"New post to my website is not showing up above an upconing event post -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-08-21T03:32:06+00:00","dateModified":"2015-08-21T23:28:41+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-post-to-my-website-is-not-showing-up-above-an-upconing-event-post\/#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":"New post to my website is not showing up above an upconing event post"}]},{"@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\/997804","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\/997804\/revisions"}],"predecessor-version":[{"id":997930,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/997804\/revisions\/997930"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=997804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}