-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-about-us.php
99 lines (68 loc) · 2.91 KB
/
page-about-us.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
<?php get_header(); ?>
<div class="the-body-content">
<?php get_template_part( 'banners' ); ?>
<div class="container">
<div class="row">
<div class="col-12">
<?php if(have_posts()) :
while(have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php else: ?>
<p>Sorry there is no content on this page</p>
<?php endif; ?>
</div>
<div class="col-12">
<div class="our-team-title">
<h2>Our Team</h2>
</div>
<?php
//$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$args = array(
'post_type' => 'our-team',
'posts_per_page' => 15,
//'paged' => $paged,
//'meta_key' => 'position_of_team_member',
'orderby' => 'meta_value_num',
'order' => 'ASC'
);
$query_posts = new WP_Query($args);
?>
<?php if ( $query_posts->have_posts() ) : ?>
<div class="col our-team">
<?php while ( $query_posts->have_posts() ) : $query_posts->the_post(); ?>
<div class="team-holder">
<div class="team-outer">
<div class="team-image">
<!--<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(''); ?> </a> -->
<?php the_post_thumbnail(''); ?>
</div>
<div class="team-description">
<h6 class="Member-title">
<!--<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a> -->
<?php the_title(); ?>
</h6>
<p class="position"><?php the_field('team_member_position'); ?></p>
<!-- <div class="the-description">
<p><?php the_field('team_member_description'); ?></p>
</div> -->
</div>
</div>
</div>
<?php
endwhile;
?>
</div>
<?php
else :
// fallback no content
endif;
?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>