표시하지만 동안은 종료되지 않고, 난 빈 페이지 ourrent 쿼리 가지고 :WP_Query있는 동안 나는 WP_Query()</p> <p>이상 WooCommerce에서 모든 주문을 얻으려면 빈 페이지
$type = 'shop_order';
$args = array(
'post_type' => $type,
'post_status' => 'any',
'posts_per_page' => -1,
);
$the_query = new WP_Query($args);
var_dump($the_query); //This Showes something
if ($the_query->have_posts()) {
//here comes the blank page
while ($the_query->have_posts()) {
}
}
wp_reset_postdata();
위해서 var_dump를 ($ the_query)는 여기에 http://laravel.io/bin/KmwlK
실제로 뭔가를 출력하고 있습니까? (나는 분명하지만 더 잘 알아) – FLX