質問編集履歴

6

追記

2017/09/12 12:00

投稿

spellbound
spellbound

スコア190

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,51 @@
1
+ # 自己解決したかもしれませんが、自信がないので、正しいかそうでないかだけ教えてください。
2
+
3
+
4
+
5
+ ```php
6
+
7
+ echo('<pre>');
8
+
9
+ var_dump($wp_query);
10
+
11
+ echo('</pre>');
12
+
13
+ ```
14
+
15
+
16
+
17
+ 検索結果が表示されるページで、上記のコードを入力しました。
18
+
19
+ それで、表示された一部の記述が下記の通りです。
20
+
21
+
22
+
23
+ これが検索のリクエストでしょうか。
24
+
25
+
26
+
27
+ ```ここに言語を入力
28
+
29
+ ["request"]=>
30
+
31
+ string(612) "SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND (
32
+
33
+ wp_posts.ID NOT IN (
34
+
35
+ SELECT object_id
36
+
37
+ FROM wp_term_relationships
38
+
39
+ WHERE term_taxonomy_id IN (233,234,1578,9875,9876)
40
+
41
+ )
42
+
43
+ ) AND (((wp_posts.post_title LIKE '%旅館%') OR (wp_posts.post_excerpt LIKE '%旅館%') OR (wp_posts.post_content LIKE '%旅館%'))) AND wp_posts.post_type IN ('post', 'page', 'attachment') AND (wp_posts.post_status = 'publish' OR wp_posts.post_author = 25 AND wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_title LIKE '%旅館%' DESC, wp_posts.post_date DESC LIMIT 0, 20"
44
+
45
+ ```
46
+
47
+
48
+
1
49
  # 環境
2
50
 
3
51
  - WordPress 4.8.1
@@ -137,487 +185,3 @@
137
185
 
138
186
 
139
187
  ```
140
-
141
- # 参考
142
-
143
- https://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/get_search_form
144
-
145
-
146
-
147
- # $wp_queryをvar_dumpしてみた
148
-
149
- ```
150
-
151
- object(WP_Query)#1253 (51) {
152
-
153
- ["query"]=>
154
-
155
- array(0) {
156
-
157
- }
158
-
159
- ["query_vars"]=>
160
-
161
- array(64) {
162
-
163
- ["error"]=>
164
-
165
- string(0) ""
166
-
167
- ["m"]=>
168
-
169
- string(0) ""
170
-
171
- ["p"]=>
172
-
173
- int(0)
174
-
175
- ["post_parent"]=>
176
-
177
- string(0) ""
178
-
179
- ["subpost"]=>
180
-
181
- string(0) ""
182
-
183
- ["subpost_id"]=>
184
-
185
- string(0) ""
186
-
187
- ["attachment"]=>
188
-
189
- string(0) ""
190
-
191
- ["attachment_id"]=>
192
-
193
- int(0)
194
-
195
- ["name"]=>
196
-
197
- string(0) ""
198
-
199
- ["static"]=>
200
-
201
- string(0) ""
202
-
203
- ["pagename"]=>
204
-
205
- string(0) ""
206
-
207
- ["page_id"]=>
208
-
209
- int(0)
210
-
211
- ["second"]=>
212
-
213
- string(0) ""
214
-
215
- ["minute"]=>
216
-
217
- string(0) ""
218
-
219
- ["hour"]=>
220
-
221
- string(0) ""
222
-
223
- ["day"]=>
224
-
225
- int(0)
226
-
227
- ["monthnum"]=>
228
-
229
- int(0)
230
-
231
- ["year"]=>
232
-
233
- int(0)
234
-
235
- ["w"]=>
236
-
237
- int(0)
238
-
239
- ["category_name"]=>
240
-
241
- string(0) ""
242
-
243
- ["tag"]=>
244
-
245
- string(0) ""
246
-
247
- ["cat"]=>
248
-
249
- string(4) "-233"
250
-
251
- ["tag_id"]=>
252
-
253
- string(0) ""
254
-
255
- ["author"]=>
256
-
257
- string(0) ""
258
-
259
- ["author_name"]=>
260
-
261
- string(0) ""
262
-
263
- ["feed"]=>
264
-
265
- string(0) ""
266
-
267
- ["tb"]=>
268
-
269
- string(0) ""
270
-
271
- ["paged"]=>
272
-
273
- int(0)
274
-
275
- ["meta_key"]=>
276
-
277
- string(0) ""
278
-
279
- ["meta_value"]=>
280
-
281
- string(0) ""
282
-
283
- ["preview"]=>
284
-
285
- string(0) ""
286
-
287
- ["s"]=>
288
-
289
- string(0) ""
290
-
291
- ["sentence"]=>
292
-
293
- string(0) ""
294
-
295
- ["title"]=>
296
-
297
- string(0) ""
298
-
299
- ["fields"]=>
300
-
301
- string(0) ""
302
-
303
- ["menu_order"]=>
304
-
305
- string(0) ""
306
-
307
- ["embed"]=>
308
-
309
- string(0) ""
310
-
311
- ["category__in"]=>
312
-
313
- array(0) {
314
-
315
- }
316
-
317
- ["category__not_in"]=>
318
-
319
- array(0) {
320
-
321
- }
322
-
323
- ["category__and"]=>
324
-
325
- array(0) {
326
-
327
- }
328
-
329
- ["post__in"]=>
330
-
331
- array(0) {
332
-
333
- }
334
-
335
- ["post__not_in"]=>
336
-
337
- array(0) {
338
-
339
- }
340
-
341
- ["post_name__in"]=>
342
-
343
- array(0) {
344
-
345
- }
346
-
347
- ["tag__in"]=>
348
-
349
- array(0) {
350
-
351
- }
352
-
353
- ["tag__not_in"]=>
354
-
355
- array(0) {
356
-
357
- }
358
-
359
- ["tag__and"]=>
360
-
361
- array(0) {
362
-
363
- }
364
-
365
- ["tag_slug__in"]=>
366
-
367
- array(0) {
368
-
369
- }
370
-
371
- ["tag_slug__and"]=>
372
-
373
- array(0) {
374
-
375
- }
376
-
377
- ["post_parent__in"]=>
378
-
379
- array(0) {
380
-
381
- }
382
-
383
- ["post_parent__not_in"]=>
384
-
385
- array(0) {
386
-
387
- }
388
-
389
- ["author__in"]=>
390
-
391
- array(0) {
392
-
393
- }
394
-
395
- ["author__not_in"]=>
396
-
397
- array(0) {
398
-
399
- }
400
-
401
- ["ignore_sticky_posts"]=>
402
-
403
- bool(false)
404
-
405
- ["suppress_filters"]=>
406
-
407
- bool(false)
408
-
409
- ["cache_results"]=>
410
-
411
- bool(true)
412
-
413
- ["update_post_term_cache"]=>
414
-
415
- bool(true)
416
-
417
- ["lazy_load_term_meta"]=>
418
-
419
- bool(true)
420
-
421
- ["update_post_meta_cache"]=>
422
-
423
- bool(true)
424
-
425
- ["post_type"]=>
426
-
427
- string(0) ""
428
-
429
- ["posts_per_page"]=>
430
-
431
- int(20)
432
-
433
- ["nopaging"]=>
434
-
435
- bool(false)
436
-
437
- ["comments_per_page"]=>
438
-
439
- string(2) "50"
440
-
441
- ["no_found_rows"]=>
442
-
443
- bool(false)
444
-
445
- ["order"]=>
446
-
447
- string(4) "DESC"
448
-
449
- }
450
-
451
- ["tax_query"]=>
452
-
453
- object(WP_Tax_Query)#4121 (6) {
454
-
455
- ["queries"]=>
456
-
457
- array(1) {
458
-
459
- [0]=>
460
-
461
- array(5) {
462
-
463
- ["taxonomy"]=>
464
-
465
- string(8) "category"
466
-
467
- ["terms"]=>
468
-
469
- array(1) {
470
-
471
- [0]=>
472
-
473
- int(233)
474
-
475
- }
476
-
477
- ["field"]=>
478
-
479
- string(7) "term_id"
480
-
481
- ["operator"]=>
482
-
483
- string(6) "NOT IN"
484
-
485
- ["include_children"]=>
486
-
487
- bool(true)
488
-
489
- }
490
-
491
- }
492
-
493
- ["relation"]=>
494
-
495
- string(3) "AND"
496
-
497
- ["table_aliases":protected]=>
498
-
499
- array(0) {
500
-
501
- }
502
-
503
- ["queried_terms"]=>
504
-
505
- array(0) {
506
-
507
- }
508
-
509
- ["primary_table"]=>
510
-
511
- string(8) "wp_posts"
512
-
513
- ["primary_id_column"]=>
514
-
515
- string(2) "ID"
516
-
517
- }
518
-
519
- ["meta_query"]=>
520
-
521
- object(WP_Meta_Query)#4124 (9) {
522
-
523
- ["queries"]=>
524
-
525
- array(0) {
526
-
527
- }
528
-
529
- ["relation"]=>
530
-
531
- NULL
532
-
533
- ["meta_table"]=>
534
-
535
- NULL
536
-
537
- ["meta_id_column"]=>
538
-
539
- NULL
540
-
541
- ["primary_table"]=>
542
-
543
- NULL
544
-
545
- ["primary_id_column"]=>
546
-
547
- NULL
548
-
549
- ["table_aliases":protected]=>
550
-
551
- array(0) {
552
-
553
- }
554
-
555
- ["clauses":protected]=>
556
-
557
- array(0) {
558
-
559
- }
560
-
561
- ["has_or_relation":protected]=>
562
-
563
- bool(false)
564
-
565
- }
566
-
567
- ["date_query"]=>
568
-
569
- bool(false)
570
-
571
- ["queried_object"]=>
572
-
573
- NULL
574
-
575
- ["queried_object_id"]=>
576
-
577
- NULL
578
-
579
- ["request"]=>
580
-
581
- string(382) "SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND (
582
-
583
- wp_posts.ID NOT IN (
584
-
585
- SELECT object_id
586
-
587
- FROM wp_term_relationships
588
-
589
- WHERE term_taxonomy_id IN (233,234,1578,9875,9876)
590
-
591
- )
592
-
593
- ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 20"
594
-
595
- ["posts"]=>
596
-
597
- &array(20) {
598
-
599
- [0]=>
600
-
601
- object(WP_Post)#4127 (24) {
602
-
603
- ["ID"]=>
604
-
605
- int(11948)
606
-
607
- ["post_author"]=>
608
-
609
- string(2) "26"
610
-
611
- ["post_date"]=>
612
-
613
- string(19) "2017-09-08 12:10:26"
614
-
615
- ["post_date_gmt"]=>
616
-
617
- string(19) "2017-09-08 03:10:26"
618
-
619
- ["post_content"]=>
620
-
621
- string(7680) "
622
-
623
- ```

5

追記

2017/09/12 12:00

投稿

spellbound
spellbound

スコア190

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  - searchform.php => 検索フォームの骨組み(HTML)
14
14
 
15
- - searchform.phpのValueが&#xe905
15
+ - searchform.phpのValueが&#xe905 => unicodeを変換すると、ss-v15と出た、
16
16
 
17
17
 
18
18
 

4

追記

2017/09/12 11:40

投稿

spellbound
spellbound

スコア190

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,8 @@
12
12
 
13
13
  - searchform.php => 検索フォームの骨組み(HTML)
14
14
 
15
+ - searchform.phpのValueが&#xe905
16
+
15
17
 
16
18
 
17
19
  # 知りたいこと

3

var_dump

2017/09/12 11:38

投稿

spellbound
spellbound

スコア190

test CHANGED
File without changes
test CHANGED
@@ -139,3 +139,483 @@
139
139
  # 参考
140
140
 
141
141
  https://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/get_search_form
142
+
143
+
144
+
145
+ # $wp_queryをvar_dumpしてみた
146
+
147
+ ```
148
+
149
+ object(WP_Query)#1253 (51) {
150
+
151
+ ["query"]=>
152
+
153
+ array(0) {
154
+
155
+ }
156
+
157
+ ["query_vars"]=>
158
+
159
+ array(64) {
160
+
161
+ ["error"]=>
162
+
163
+ string(0) ""
164
+
165
+ ["m"]=>
166
+
167
+ string(0) ""
168
+
169
+ ["p"]=>
170
+
171
+ int(0)
172
+
173
+ ["post_parent"]=>
174
+
175
+ string(0) ""
176
+
177
+ ["subpost"]=>
178
+
179
+ string(0) ""
180
+
181
+ ["subpost_id"]=>
182
+
183
+ string(0) ""
184
+
185
+ ["attachment"]=>
186
+
187
+ string(0) ""
188
+
189
+ ["attachment_id"]=>
190
+
191
+ int(0)
192
+
193
+ ["name"]=>
194
+
195
+ string(0) ""
196
+
197
+ ["static"]=>
198
+
199
+ string(0) ""
200
+
201
+ ["pagename"]=>
202
+
203
+ string(0) ""
204
+
205
+ ["page_id"]=>
206
+
207
+ int(0)
208
+
209
+ ["second"]=>
210
+
211
+ string(0) ""
212
+
213
+ ["minute"]=>
214
+
215
+ string(0) ""
216
+
217
+ ["hour"]=>
218
+
219
+ string(0) ""
220
+
221
+ ["day"]=>
222
+
223
+ int(0)
224
+
225
+ ["monthnum"]=>
226
+
227
+ int(0)
228
+
229
+ ["year"]=>
230
+
231
+ int(0)
232
+
233
+ ["w"]=>
234
+
235
+ int(0)
236
+
237
+ ["category_name"]=>
238
+
239
+ string(0) ""
240
+
241
+ ["tag"]=>
242
+
243
+ string(0) ""
244
+
245
+ ["cat"]=>
246
+
247
+ string(4) "-233"
248
+
249
+ ["tag_id"]=>
250
+
251
+ string(0) ""
252
+
253
+ ["author"]=>
254
+
255
+ string(0) ""
256
+
257
+ ["author_name"]=>
258
+
259
+ string(0) ""
260
+
261
+ ["feed"]=>
262
+
263
+ string(0) ""
264
+
265
+ ["tb"]=>
266
+
267
+ string(0) ""
268
+
269
+ ["paged"]=>
270
+
271
+ int(0)
272
+
273
+ ["meta_key"]=>
274
+
275
+ string(0) ""
276
+
277
+ ["meta_value"]=>
278
+
279
+ string(0) ""
280
+
281
+ ["preview"]=>
282
+
283
+ string(0) ""
284
+
285
+ ["s"]=>
286
+
287
+ string(0) ""
288
+
289
+ ["sentence"]=>
290
+
291
+ string(0) ""
292
+
293
+ ["title"]=>
294
+
295
+ string(0) ""
296
+
297
+ ["fields"]=>
298
+
299
+ string(0) ""
300
+
301
+ ["menu_order"]=>
302
+
303
+ string(0) ""
304
+
305
+ ["embed"]=>
306
+
307
+ string(0) ""
308
+
309
+ ["category__in"]=>
310
+
311
+ array(0) {
312
+
313
+ }
314
+
315
+ ["category__not_in"]=>
316
+
317
+ array(0) {
318
+
319
+ }
320
+
321
+ ["category__and"]=>
322
+
323
+ array(0) {
324
+
325
+ }
326
+
327
+ ["post__in"]=>
328
+
329
+ array(0) {
330
+
331
+ }
332
+
333
+ ["post__not_in"]=>
334
+
335
+ array(0) {
336
+
337
+ }
338
+
339
+ ["post_name__in"]=>
340
+
341
+ array(0) {
342
+
343
+ }
344
+
345
+ ["tag__in"]=>
346
+
347
+ array(0) {
348
+
349
+ }
350
+
351
+ ["tag__not_in"]=>
352
+
353
+ array(0) {
354
+
355
+ }
356
+
357
+ ["tag__and"]=>
358
+
359
+ array(0) {
360
+
361
+ }
362
+
363
+ ["tag_slug__in"]=>
364
+
365
+ array(0) {
366
+
367
+ }
368
+
369
+ ["tag_slug__and"]=>
370
+
371
+ array(0) {
372
+
373
+ }
374
+
375
+ ["post_parent__in"]=>
376
+
377
+ array(0) {
378
+
379
+ }
380
+
381
+ ["post_parent__not_in"]=>
382
+
383
+ array(0) {
384
+
385
+ }
386
+
387
+ ["author__in"]=>
388
+
389
+ array(0) {
390
+
391
+ }
392
+
393
+ ["author__not_in"]=>
394
+
395
+ array(0) {
396
+
397
+ }
398
+
399
+ ["ignore_sticky_posts"]=>
400
+
401
+ bool(false)
402
+
403
+ ["suppress_filters"]=>
404
+
405
+ bool(false)
406
+
407
+ ["cache_results"]=>
408
+
409
+ bool(true)
410
+
411
+ ["update_post_term_cache"]=>
412
+
413
+ bool(true)
414
+
415
+ ["lazy_load_term_meta"]=>
416
+
417
+ bool(true)
418
+
419
+ ["update_post_meta_cache"]=>
420
+
421
+ bool(true)
422
+
423
+ ["post_type"]=>
424
+
425
+ string(0) ""
426
+
427
+ ["posts_per_page"]=>
428
+
429
+ int(20)
430
+
431
+ ["nopaging"]=>
432
+
433
+ bool(false)
434
+
435
+ ["comments_per_page"]=>
436
+
437
+ string(2) "50"
438
+
439
+ ["no_found_rows"]=>
440
+
441
+ bool(false)
442
+
443
+ ["order"]=>
444
+
445
+ string(4) "DESC"
446
+
447
+ }
448
+
449
+ ["tax_query"]=>
450
+
451
+ object(WP_Tax_Query)#4121 (6) {
452
+
453
+ ["queries"]=>
454
+
455
+ array(1) {
456
+
457
+ [0]=>
458
+
459
+ array(5) {
460
+
461
+ ["taxonomy"]=>
462
+
463
+ string(8) "category"
464
+
465
+ ["terms"]=>
466
+
467
+ array(1) {
468
+
469
+ [0]=>
470
+
471
+ int(233)
472
+
473
+ }
474
+
475
+ ["field"]=>
476
+
477
+ string(7) "term_id"
478
+
479
+ ["operator"]=>
480
+
481
+ string(6) "NOT IN"
482
+
483
+ ["include_children"]=>
484
+
485
+ bool(true)
486
+
487
+ }
488
+
489
+ }
490
+
491
+ ["relation"]=>
492
+
493
+ string(3) "AND"
494
+
495
+ ["table_aliases":protected]=>
496
+
497
+ array(0) {
498
+
499
+ }
500
+
501
+ ["queried_terms"]=>
502
+
503
+ array(0) {
504
+
505
+ }
506
+
507
+ ["primary_table"]=>
508
+
509
+ string(8) "wp_posts"
510
+
511
+ ["primary_id_column"]=>
512
+
513
+ string(2) "ID"
514
+
515
+ }
516
+
517
+ ["meta_query"]=>
518
+
519
+ object(WP_Meta_Query)#4124 (9) {
520
+
521
+ ["queries"]=>
522
+
523
+ array(0) {
524
+
525
+ }
526
+
527
+ ["relation"]=>
528
+
529
+ NULL
530
+
531
+ ["meta_table"]=>
532
+
533
+ NULL
534
+
535
+ ["meta_id_column"]=>
536
+
537
+ NULL
538
+
539
+ ["primary_table"]=>
540
+
541
+ NULL
542
+
543
+ ["primary_id_column"]=>
544
+
545
+ NULL
546
+
547
+ ["table_aliases":protected]=>
548
+
549
+ array(0) {
550
+
551
+ }
552
+
553
+ ["clauses":protected]=>
554
+
555
+ array(0) {
556
+
557
+ }
558
+
559
+ ["has_or_relation":protected]=>
560
+
561
+ bool(false)
562
+
563
+ }
564
+
565
+ ["date_query"]=>
566
+
567
+ bool(false)
568
+
569
+ ["queried_object"]=>
570
+
571
+ NULL
572
+
573
+ ["queried_object_id"]=>
574
+
575
+ NULL
576
+
577
+ ["request"]=>
578
+
579
+ string(382) "SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND (
580
+
581
+ wp_posts.ID NOT IN (
582
+
583
+ SELECT object_id
584
+
585
+ FROM wp_term_relationships
586
+
587
+ WHERE term_taxonomy_id IN (233,234,1578,9875,9876)
588
+
589
+ )
590
+
591
+ ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 20"
592
+
593
+ ["posts"]=>
594
+
595
+ &array(20) {
596
+
597
+ [0]=>
598
+
599
+ object(WP_Post)#4127 (24) {
600
+
601
+ ["ID"]=>
602
+
603
+ int(11948)
604
+
605
+ ["post_author"]=>
606
+
607
+ string(2) "26"
608
+
609
+ ["post_date"]=>
610
+
611
+ string(19) "2017-09-08 12:10:26"
612
+
613
+ ["post_date_gmt"]=>
614
+
615
+ string(19) "2017-09-08 03:10:26"
616
+
617
+ ["post_content"]=>
618
+
619
+ string(7680) "
620
+
621
+ ```

2

追記

2017/09/12 11:35

投稿

spellbound
spellbound

スコア190

test CHANGED
File without changes
test CHANGED
@@ -135,3 +135,7 @@
135
135
 
136
136
 
137
137
  ```
138
+
139
+ # 参考
140
+
141
+ https://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/get_search_form

1

コードを追加

2017/09/12 11:30

投稿

spellbound
spellbound

スコア190

test CHANGED
File without changes
test CHANGED
@@ -23,3 +23,115 @@
23
23
  どのようにして検索結果の順番が決まっているのか知りたいです。
24
24
 
25
25
  また、それをカスタマイズするつもりなので、その方法もご存知だったら教えて欲しいです。
26
+
27
+
28
+
29
+ # コード
30
+
31
+
32
+
33
+ ```
34
+
35
+ <?php
36
+
37
+ /**
38
+
39
+ * Displays the search results of the theme.
40
+
41
+ *
42
+
43
+ */
44
+
45
+ ?>
46
+
47
+
48
+
49
+ <?php get_header(); ?>
50
+
51
+
52
+
53
+ <?php
54
+
55
+ /**
56
+
57
+ * travelify_before_main_container hook
58
+
59
+ */
60
+
61
+ do_action( 'travelify_before_main_container' );
62
+
63
+ ?>
64
+
65
+
66
+
67
+ <div id="container" class="clearfix">
68
+
69
+ <?php
70
+
71
+ /**
72
+
73
+ * travelify_main_container hook
74
+
75
+ *
76
+
77
+ * HOOKED_FUNCTION_NAME PRIORITY
78
+
79
+ *
80
+
81
+ * travelify_content 10
82
+
83
+ */
84
+
85
+ do_action( 'travelify_main_container' );
86
+
87
+ ?>
88
+
89
+ </div><!-- #container -->
90
+
91
+
92
+
93
+ <?php
94
+
95
+ /**
96
+
97
+ * travelify_after_main_container hook
98
+
99
+ */
100
+
101
+ do_action( 'travelify_after_main_container' );
102
+
103
+ ?>
104
+
105
+
106
+
107
+ <?php get_footer(); ?>
108
+
109
+ ```
110
+
111
+
112
+
113
+ ```php
114
+
115
+ <?php
116
+
117
+ /**
118
+
119
+ * Displays the searchform of the theme.
120
+
121
+ */
122
+
123
+ ?>
124
+
125
+ <form action="<?php echo esc_url( home_url( '/' ) ); ?>" class="searchform clearfix" method="get" role="search">
126
+
127
+ <label class="assistive-text" for="s"><?php _e( 'Search', 'travelify' ); ?></label>
128
+
129
+ <input type="text" placeholder="<?php esc_attr_e( '気になるキーワードを入力', 'travelify' ); ?>" class="s field" name="s">
130
+
131
+ <input type="submit" value="&#xe905;" />
132
+
133
+ </form>
134
+
135
+
136
+
137
+ ```