admin管理员组文章数量:1313011
global $wp_query;
$args = array_merge( $wp_query->query_vars, array( 'meta_query' => array(
array('key' => 'release_date',),)
, 'orderby' => 'release_date title','order' => 'DESC', ) );
query_posts( $args );
I'm sorting my post with post that have release_date value, however post that don't have release_date value are not showing, I wish to add them to the list or do I have to edit all my post to add a value in it? I'm currently using the above code.
Any help would be appreciated.
Thanks!
本文标签: wp queryhow to include orderby value that is empty
版权声明:本文标题:wp query - how to include orderby value that is empty? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741852253a2401138.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论