2 WP_Query 및 array_merge와 함께 작동하도록했습니다. 이동하는 가장 좋은 방법인지는 모르지만 작업을 수행합니다.
그 도움이 될 수있는 경우 :
는
$args = array(
'meta_query' => array(
array('key' => '_thumbnail_id'), //Show only posts with featured images
)
);
$posts_with_thumb = new WP_Query($args);
이
$args = array(
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array('post-format-video'),
),
)
);
$posts_video_format = new WP_Query($args);
초기화 새로운 wp_query 객체 비디오 포스트 형식을 얻을 모두 병합 엄지 손가락으로 게시물을 얻을 수는
결과
$featured_query = new WP_Query();
$featured_query->posts = array_merge($posts_with_thumb->posts, $posts_video_format->posts);