{"id":845748,"date":"2008-08-29T21:15:22","date_gmt":"2008-08-29T21:15:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/future-posts-problem\/"},"modified":"2016-08-19T02:03:00","modified_gmt":"2016-08-19T02:03:00","slug":"future-posts-problem","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/future-posts-problem\/","title":{"rendered":"Future posts problem"},"content":{"rendered":"<p>I&#8217;m a newbie, and I&#8217;ve been pulling my hair out on this one.<\/p>\n<p>I wanted to order my posts ascending on a page, so I couldn&#8217;t go with the generic query.  I also want my posts to &#8220;age out&#8221;.<\/p>\n<p>I got the ordering to work, no problem:<br \/>\n<code>$posts = query_posts($query_string.&#039;&#038;orderby=post_date&#038;order=asc&#038;posts_per_page=30&#039;); ?&gt;<\/code><\/p>\n<p>&#8230; But I haven&#8217;t been able to get rid of old posts.  I tried this various ways:  &#8216;&#038;post_date&gt;=NOW()&#8217; or using monthnum, etc., but these ONLY appear to accept &#8220;=&#8221;, won&#8217;t accept a greater than, &gt;.<\/p>\n<p>I can&#8217;t use &#8216;post_status=future&#8217; because I changed the post.php code so that everything would go in with a status of &#8216;publish&#8217; and would show up on the website.<\/p>\n<p>Any help greatly appreciated!!  Vicki<\/p>\n","protected":false},"template":"","class_list":["post-845748","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/845748","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\/845748\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=845748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}