質問編集履歴
1
コードブロック
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ワードプレスの絞り込み検索フォーム
|
1
|
+
ワードプレスの絞り込み検索フォーム結果表示順序
|
test
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
【フォーム部分】
|
10
10
|
|
11
|
+
```ここに言語を入力
|
12
|
+
|
11
13
|
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
|
12
14
|
|
13
15
|
|
@@ -140,6 +142,8 @@
|
|
140
142
|
|
141
143
|
|
142
144
|
|
145
|
+
```
|
146
|
+
|
143
147
|
|
144
148
|
|
145
149
|
【search.php】
|
@@ -148,6 +152,8 @@
|
|
148
152
|
|
149
153
|
|
150
154
|
|
155
|
+
```ここに言語を入力
|
156
|
+
|
151
157
|
<?php
|
152
158
|
|
153
159
|
$s = $_GET['s'];
|
@@ -245,3 +251,5 @@
|
|
245
251
|
|
246
252
|
|
247
253
|
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
254
|
+
|
255
|
+
```
|