{"id":6310948,"date":"2015-07-09T08:51:31","date_gmt":"2015-07-09T08:51:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/recent-post-fix\/"},"modified":"2016-08-30T15:17:52","modified_gmt":"2016-08-30T15:17:52","slug":"recent-post-fix","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/recent-post-fix\/","title":{"rendered":"Recent post fix"},"content":{"rendered":"<p>Hi There,<\/p>\n<p>I had some problems with your plugin, it wasn&#8217;t showing the latest posts in the chosen category. I played around a bit in the source code and came across this:<\/p>\n<pre><code>case &#039;recent&#039;:\n\t\t$posts = get_posts(\n\t\t\tarray(\n\t\t\t\t&#039;numberposts&#039; =&gt; TICKER_MAX_INT,\n\t\t\t\t&#039;orderby&#039; =&gt; &#039;post_date&#039;,\n\t\t\t\t&#039;suppress_filters&#039; =&gt; 0,\n\t\t\t\t)\n\t\t\t);\n\t\tbreak;<\/code><\/pre>\n<p>I changed this to:<\/p>\n<pre><code>case &#039;recent&#039;:\n\t\t$posts = get_posts(\n\t\t\tarray(\n\t\t\t\t&#039;numberposts&#039; =&gt; TICKER_MAX_INT,\n\t\t\t\t&#039;orderby&#039; =&gt; &#039;date&#039;,\n\t\t\t\t&#039;order&#039;            =&gt; &#039;DESC&#039;,\n\t\t\t\t&#039;suppress_filters&#039; =&gt; 0,\n\t\t\t\t)\n\t\t\t);\n\t\tbreak;<\/code><\/pre>\n<p>and all the latest posts showed up.<\/p>\n<p>Grtz,<\/p>\n<p>Gijs<\/p>\n<p>https:\/\/wordpress.org\/plugins\/bknewsticker\/<\/p>\n","protected":false},"template":"","class_list":["post-6310948","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6310948","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\/6310948\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6310948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}