按元值或日期排序?
得到了一个自定义字段,startDate但仅在少数事件中存在。我想知道是否没有设置我可以post_date用来生成帖子列表的帖子? // if meta_key _postmeta.startDate isn't set get the rest by posts.post_date query_posts( array( array( 'posts_per_page' => 10, 'meta_key' => 'startDate', 'meta_value' => date('Y-m-d'), 'meta_compare' => '<', 'orderby' => 'meta_value', 'order' => 'ASC' ), array( 'meta_key' => 'post_date', 'meta_value' => date('Y-m-d'), 'meta_compare' => '<' ) ) );