質問編集履歴
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,9 +12,7 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
|
15
|
+
```PHP
|
16
|
-
|
17
|
-
--------------------------------------------------
|
18
16
|
|
19
17
|
$normal_args = //検索条件 ;
|
20
18
|
|
@@ -26,7 +24,9 @@
|
|
26
24
|
|
27
25
|
if($normal_query->haveposts()){ //処理 }
|
28
26
|
|
29
|
-
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
30
|
|
31
31
|
|
32
32
|
|
@@ -38,9 +38,9 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
Code
|
42
41
|
|
42
|
+
|
43
|
-
|
43
|
+
```PHP
|
44
44
|
|
45
45
|
$date_args = array(
|
46
46
|
|
@@ -60,7 +60,9 @@
|
|
60
60
|
|
61
61
|
);
|
62
62
|
|
63
|
-
|
63
|
+
```
|
64
|
+
|
65
|
+
|
64
66
|
|
65
67
|
|
66
68
|
|
@@ -72,9 +74,9 @@
|
|
72
74
|
|
73
75
|
|
74
76
|
|
75
|
-
Code
|
76
77
|
|
78
|
+
|
77
|
-
|
79
|
+
```PHP
|
78
80
|
|
79
81
|
$get_args = array(
|
80
82
|
|
@@ -94,4 +96,4 @@
|
|
94
96
|
|
95
97
|
);
|
96
98
|
|
97
|
-
|
99
|
+
```
|
2
再修正。
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
'date_query' => array(
|
52
52
|
|
53
|
-
'year' => 年数,
|
53
|
+
'year' => 年数,
|
54
54
|
|
55
55
|
'month' => 月
|
56
56
|
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
-------------------------------------------------
|
78
78
|
|
79
|
-
get_args = array(
|
79
|
+
$get_args = array(
|
80
80
|
|
81
81
|
'category_name' => 値,
|
82
82
|
|
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
'date_query' => array(
|
88
88
|
|
89
|
-
|
89
|
+
'year' => 年数,
|
90
90
|
|
91
91
|
'month' => 月
|
92
92
|
|
1
コード入力ミスの為、修正。
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,9 +76,9 @@
|
|
76
76
|
|
77
77
|
-------------------------------------------------
|
78
78
|
|
79
|
-
get_args =
|
79
|
+
get_args = array(
|
80
80
|
|
81
|
-
ar
|
81
|
+
'category_name' => 値,
|
82
82
|
|
83
83
|
'posts_per_page' => 投稿数
|
84
84
|
|
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
'date_query' => array(
|
88
88
|
|
89
|
-
'year' => 年数,
|
89
|
+
b'year' => 年数,
|
90
90
|
|
91
91
|
'month' => 月
|
92
92
|
|