-1
당신은 내가 잘못이 무슨 짓을했는지 말해 주시겠습니까 :치명적인 오류 : 널 (null)에 멤버 함수 have_posts()를 호출
query_posts($popular_posts_loop);
while($popular_posts_loop->have_posts()):
$popular_posts_loop->the_post();
당신은 내가 잘못이 무슨 짓을했는지 말해 주시겠습니까 :치명적인 오류 : 널 (null)에 멤버 함수 have_posts()를 호출
query_posts($popular_posts_loop);
while($popular_posts_loop->have_posts()):
$popular_posts_loop->the_post();
아차, 죄송 사람 내가 :
$popular_posts_args = new wp_query(array(
'post_type' => 'blog',
'post_status' => 'publish',
'orderby' => 'meta_value_num',
//'meta_value' => '1',
'order' => 'DESC',
'meta_key' => 'my_post_viewed',
'posts_per_page' => $number
)
);
query_posts($popular_posts_loop);
while($popular_posts_loop->have_posts()):
$popular_posts_loop->the_post();
wp_reset_query();
그것은이 라인이다 단지 내가 가진 것을 깨달았다
$ popular_posts_loop
대신 $ popular_posts_args
이제 좋습니다!
음, 처음에는 [while'] (http://php.net/while) 루프를 쓰는 방법이 아닙니다. – miken32
미안하지만 나는 초보자가 더 많습니다. – Moview