-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchform.php
50 lines (43 loc) · 1.31 KB
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
$location = array(
'name' => 'location',
'child_of' => 16,
'hierarchical' => 1,
'show_option_all' => 'Select...',
'selected' => isset($_GET['location']) ? $_GET['location'] : '',
'class' => 'form-control'
);
$developer = array(
'name' => 'developer',
'child_of' => 14,
'hierarchical' => 1,
'show_option_all' => 'Select...',
'selected' => isset($_GET['developer']) ? $_GET['developer'] : '',
'class' => 'form-control'
);
$price = array(
'name' => 'price',
'child_of' => 13,
'hierarchical' => 1,
'show_option_all' => 'Select...',
'selected' => isset($_GET['price']) ? $_GET['price'] : '',
'class' => 'form-control'
);
?>
<form method="get" class="form-search" action="/search">
<div class="form-group">
<label>Location</label>
<?php wp_dropdown_categories( $location ); ?>
</div>
<div class="form-group">
<label>Developer</label>
<?php wp_dropdown_categories( $developer ); ?>
</div>
<div class="form-group">
<label>Price</label>
<?php wp_dropdown_categories( $price ); ?>
</div>
<div class="form-group">
<button type="submit" class="btn btn-default" name="submit" id="searchsubmit" value="Search">Search</button>
</div>
</form>