回答編集履歴
1
情報の追記
answer
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
if(have_posts()):
|
6
6
|
while(have_posts()):
|
7
7
|
|
8
|
-
the_post();
|
8
|
+
the_post(); //ココで$postに現在のクエリをセット
|
9
9
|
echo $post->ID;
|
10
10
|
|
11
11
|
endwhile;
|