-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-residential-project.php
135 lines (127 loc) · 5.15 KB
/
template-residential-project.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
/**
* Template Name: Residential Projects
**/
get_header();
?>
<!-- main content -->
<div class="main_content">
<!--<div class="big_slider">
<div class="item">
<img src="<?php bloginfo('template_url'); ?>/images/project_banner1.jpg" alt="">
</div>
</div>-->
<section class="breadcrumb_sec">
<div class="breadcrumb">
<?php the_field('breadcrumb'); ?>
</div>
</section>
<!-- <section class="search_section search_section_inner">
<div class="content_bottom_inner">
<div class="bottom_left">
<div class="form_sec">
<form>
<div class="form_row">
<div class="form_block">
<label>City</label>
<div class="custom_select">
<select class="select_box">
<option>Select City</option>
<option>Guwahati</option>
<option>Howrah</option>
<option>Kolkata</option>
</select>
</div>
</div>
<div class="form_block">
<label>Status</label>
<div class="custom_select">
<select class="select_box">
<option>Completed</option>
<option>Ongoing</option>
<option>Ready Move On</option>
</select>
</div>
</div>
<div class="form_block">
<input type="submit" name="" value="Search" class="submit">
</div>
</div>
</form>
</div>
</div>
</div>
</section> -->
<section class="search_section">
<div class="content_bottom_inner">
<div class="bottom_left">
<h2><?php the_field('ideal_search_heading');?></h2>
<div class="form_sec">
<form>
<div class="form_row">
<div class="form_block">
<label>Project Type</label>
<div class="custom_search">
<select name="parent_selection" id="parent_selection">
<option value="">-- Please Select --</option>
<option value="Residential Project">Residential Project</option>
</select>
<select name="child_selection" id="child_selection" disabled="disabled"></select>
<select name="child_selection_sec" id="child_selection_sec" disabled="disabled"></select>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<div class="project_container">
<div class="project_row">
<?php
$Query = new WP_Query(array(
'post_type'=> 'ideal_project',
'posts_per_page'=>-1, //-1 stands for all
'order_by'=> 'date',
'meta_key' => '',
'meta_value' => '',
'order'=> 'DESC',
'tax_query' => array(
array(
'taxonomy' => 'project', // taxonomy name
'field' => 'term_id', // term_id, slug or name
'terms' => '44', // term id, term slug or term name
)
)
));
if($Query -> have_posts()):
while($Query -> have_posts()): $Query -> the_post();
?>
<div class="col_4">
<div class="project_block">
<div class="project_img">
<div class="p_img"><img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="<?php echo get_post_meta('_wp_attachment_image_alt', true); ?>"></div>
<?php the_terms(get_the_ID(), 'project');?>
<a class="share" href="#"><i class="fas fa-share-alt"></i></a>
<span class="completed"><?php the_field('project_type');?></span>
</div>
<div class="project_content">
<h4><a href="<?php the_permalink();?>"><?php the_title();?></a></h4>
<p><span class="addr_icon"><i class="fas fa-map-marker-alt"></i></span><?php the_field('address');?></p>
<div class="pr_btn_hldr"><a class="p_detail" href="<?php the_permalink();?>">Details</a></div>
</div>
</div>
</div>
<?php
endwhile;
else:
"No Administrative Offices Found. Try again later";
endif;
wp_reset_postdata();
?>
</div>
</div>
</div>
<?php
get_footer();
?>