-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-team.php
More file actions
59 lines (53 loc) · 1.69 KB
/
page-team.php
File metadata and controls
59 lines (53 loc) · 1.69 KB
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
<?php
/**
* Template Name: Team
*/
get_header(); ?>
<?php
$page = get_queried_object();
$ID = $page->ID;
$title = $page->post_title;
$sub_title = get_post_meta($ID, 'page_subtitle', true);
echo (isset($sub_title) ?
<section id="title" class="emerald-home">
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>'.$sub_title.'</p>
</div>
</div>
</div>
</section>
' : '');
?>
<section id="team-content" class="white-box">
<div class="container">
<div class="row">
<div class="col-sm-12">
<?php
$queryObject = new WP_Query( 'post_type=team&posts_per_page=10&orderby=date&order=DESC' );
// The Loop!
if ($queryObject->have_posts()) {
?>
<?php
while ($queryObject->have_posts()) {
$queryObject->the_post();
?>
<div class="col-sm-12 nopadding">
<div class="team">
<div class="col-sm-3"><div class="member"><?php the_post_thumbnail('medium'); ?></div></div>
<div class="col-sm-9"><h2><?php the_title(); ?></h2>
<p><?php the_content(); ?></p>
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
</div>
</div>
</section>
<?php get_footer();