{"id":5192662,"date":"2014-08-14T21:29:37","date_gmt":"2014-08-14T21:29:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/orderby-menu_order-for-values-above-0\/"},"modified":"2016-08-22T00:29:56","modified_gmt":"2016-08-22T00:29:56","slug":"orderby-menu_order-for-values-above-0","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/orderby-menu_order-for-values-above-0\/","title":{"rendered":"orderby =&gt; menu_order for values above 0"},"content":{"rendered":"<p>Using the following code to pull custom posts:<\/p>\n<p>query_posts(array(&#8216;paged&#8217; =&gt; $paged, &#8216;posts_per_page&#8217; =&gt; 9, &#8216;post_type&#8217; =&gt; &#8216;gallery&#8217;, &#8216;cat&#8217; =&gt; $catid, &#8216;orderby&#8217; =&gt; &#8216;menu_order&#8217;, &#8216;order&#8217; =&gt; &#8216;ASC&#8217;));<\/p>\n<p>Unfortunately, this does not work properly if the order hasn&#8217;t been set (default is 0). Is there a way to push posts ordered 0 to the back of the list, or possibly change the default order value to something else (maybe 10000 or some other arbitrarily large number)?<\/p>\n","protected":false},"template":"","class_list":["post-5192662","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5192662","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\/5192662\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5192662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}