質問編集履歴
1
別のコードを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -65,3 +65,147 @@
|
|
65
65
|
?>
|
66
66
|
|
67
67
|
```
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
追記です
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
1aaだけマッチするときの条件、1bbだけマッチするときの条件、1aaも1bbも両方マッチするときの条件、といった3つのmeta_queryを仮にセットしてみましたが、表示ができないほど読み込みに時間がかかってしまい、ダメでした。
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
```ここに言語を入力
|
84
|
+
|
85
|
+
'meta_query' => array(
|
86
|
+
|
87
|
+
'relation' => 'or',
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
array(
|
92
|
+
|
93
|
+
'relation' => 'AND',
|
94
|
+
|
95
|
+
array(
|
96
|
+
|
97
|
+
array(
|
98
|
+
|
99
|
+
'key'=> '1aa',
|
100
|
+
|
101
|
+
'value' => array($from , $to),
|
102
|
+
|
103
|
+
'compare' => 'BETWEEN',
|
104
|
+
|
105
|
+
'inclusive' => 'true',
|
106
|
+
|
107
|
+
'type' => 'DATE',
|
108
|
+
|
109
|
+
),
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
array(
|
114
|
+
|
115
|
+
'key' => '1bb',
|
116
|
+
|
117
|
+
'compare' => 'NOT EXISTS',
|
118
|
+
|
119
|
+
),
|
120
|
+
|
121
|
+
),
|
122
|
+
|
123
|
+
),
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
array(
|
128
|
+
|
129
|
+
'relation' => 'AND',
|
130
|
+
|
131
|
+
array(
|
132
|
+
|
133
|
+
array(
|
134
|
+
|
135
|
+
'key'=> '1bb',
|
136
|
+
|
137
|
+
'value' => array($from , $to),
|
138
|
+
|
139
|
+
'compare' => 'BETWEEN',
|
140
|
+
|
141
|
+
'inclusive' => 'true',
|
142
|
+
|
143
|
+
'type' => 'DATE',
|
144
|
+
|
145
|
+
),
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
array(
|
150
|
+
|
151
|
+
'key' => '1aa',
|
152
|
+
|
153
|
+
'compare' => 'NOT EXISTS',
|
154
|
+
|
155
|
+
),
|
156
|
+
|
157
|
+
),
|
158
|
+
|
159
|
+
),
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
array(
|
164
|
+
|
165
|
+
'relation' => 'AND',
|
166
|
+
|
167
|
+
array(
|
168
|
+
|
169
|
+
array(
|
170
|
+
|
171
|
+
'key'=> '1bb',
|
172
|
+
|
173
|
+
'value' => array($from , $to),
|
174
|
+
|
175
|
+
'compare' => 'BETWEEN',
|
176
|
+
|
177
|
+
'inclusive' => 'true',
|
178
|
+
|
179
|
+
'type' => 'DATE',
|
180
|
+
|
181
|
+
),
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
array(
|
186
|
+
|
187
|
+
'key' => '1aa',
|
188
|
+
|
189
|
+
'compare' => 'EXISTS',
|
190
|
+
|
191
|
+
),
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
array(
|
196
|
+
|
197
|
+
'key' => '1bb',
|
198
|
+
|
199
|
+
'compare' => 'EXISTS',
|
200
|
+
|
201
|
+
),
|
202
|
+
|
203
|
+
),
|
204
|
+
|
205
|
+
),
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
),
|
210
|
+
|
211
|
+
```
|