wordpress - ordering multiples post types
问题 i'm trying to order multiples post types in a page my solution below is working but the posts are not showing by type after type exactly <?php $args = array_merge( $wp_query->query, array( 'post_type' =>array( 'editorial','video','portfolio' ),'posts_per_page=-1','orderby'=>'post_type') ); } query_posts( $args ); $postType=''; if (have_posts()) : while (have_posts()) : the_post(); $PT = get_post_type( $post->ID ); if($postType != $PT){ $postType = $PT; echo '<p class="clearfix"><h1>All posts