-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-industries.php
136 lines (86 loc) · 3.52 KB
/
page-industries.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
136
<?php get_header(); ?>
<div class="content">
<?php $banner = get_field('portfolio_page_banner'); ?>
<div class="pg_banner" style="background-image: url('<?php echo $banner['url']; ?>')">
<div class="overlay"></div>
</div>
<div class="section">
<div class="inner-wrap">
<div class="pg_title">Industries</div>
<div class="col_inner">
<?php $industry = get_field('major_caption')?>
<div class="major_cap"><?php echo $industry; ?></div>
<?php $industry = get_field('sub_caption')?>
<div class="det_text">
<p><?php echo $industry; ?></p>
</div>
</div>
<div class="row-t -js_anime clearfix">
<div class="col_sec">
<div class="sector_num">01</div>
<div class="sector_title" id="serv_sec">Services Sector</div>
<div class="sector_sub">
<?php
$args = array(
'post_type' => 'services'
);
$serv = new WP_Query($args);
while($serv->have_posts()) {
$serv->the_post();
?>
<div class="sector_list">
<div class="sector_name"><a href="<?php echo the_permalink(); ?>"><?php echo the_title(); ?></a></div>
<ul><?php echo get_post_meta(get_the_ID(), 'summary', true); ?></ul>
</div>
<?php
} wp_reset_query();
?>
</div>
</div>
<div class="col_sec">
<div class="sector_num">02</div>
<div class="sector_title" id="serv_sec">Real Sector</div>
<div class="sector_sub">
<?php
$args = array(
'post_type' => 'real'
);
$real = new WP_Query($args);
while($real->have_posts()) {
$real->the_post();
?>
<div class="sector_list">
<div class="sector_name"><a href="<?php echo the_permalink(); ?>"><?php echo the_title(); ?></a></div>
<ul><?php echo get_post_meta(get_the_ID(), 'summary', true); ?></ul>
</div>
<?php
} wp_reset_query();
?>
</div>
</div>
<div class="col_sec">
<div class="sector_num">03</div>
<div class="sector_title" id="serv_sec">Social Sector</div>
<div class="sector_sub">
<?php
$args = array(
'post_type' => 'social'
);
$social = new WP_Query($args);
while($social->have_posts()) {
$social->the_post();
?>
<div class="sector_list">
<div class="sector_name"><a href="<?php echo the_permalink(); ?>"><?php echo the_title(); ?></a></div>
<ul><?php echo get_post_meta(get_the_ID(), 'summary', true); ?></ul>
</div>
<?php
} wp_reset_query();
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>