質問編集履歴

1

code change

2020/07/13 01:31

投稿

cwhiro
cwhiro

スコア21

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  parse_str( $args, $args );
22
22
 
23
- $args = $args + array(
23
+ $args1 = $args + array(
24
24
 
25
25
  'posts_per_page' => -1,
26
26
 
@@ -28,7 +28,7 @@
28
28
 
29
29
 
30
30
 
31
- $query = new WP_Query($args);
31
+ $query = new WP_Query($args1);
32
32
 
33
33
  $number_of_posts = $query->found_posts;
34
34
 
@@ -52,7 +52,7 @@
52
52
 
53
53
  <?php
54
54
 
55
- $my_posts = get_posts($args);
55
+ $my_posts = get_posts($args1);
56
56
 
57
57
  print_r($args) ;
58
58