-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpage-team.php
66 lines (51 loc) · 2.1 KB
/
page-team.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
<?php get_header();
if(have_posts()){
the_post();
$page_thumb = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' );?>
<div class="row container-kamn">
<img src="<?php echo $page_thumb[0]; ?>" width="100%" class="blog-post" alt="Feature-img" align="right" width="100%">
</div>
<?php }
?>
<!--End Header -->
<!-- Main Container -->
<div id="banners"></div>
<div class="container">
<div class="row">
<?php
$ebit_post = null;
$ebit_post = new WP_Query(array(
'post_type' => 'team',
'posts_per_page' => -1,
'team_category' => 'developer',
'team_tag' => 'first + second'
));
if( $ebit_post->have_posts() ){
while( $ebit_post->have_posts() ){
$ebit_post->the_post();
$team_designation = get_post_meta( get_the_ID(), '_office-master_team_designation', true );
$block_color = get_post_meta( get_the_ID(), '_office-master_block_color', true );
$animation_type_class = get_post_meta( get_the_ID(), '_office-master_animation_type_class', true ); ?>
<div class="col-md-6">
<div class="blockquote-box <?php echo $block_color; ?> animated wow <?php echo $animation_type_class; ?> clearfix">
<div class="square pull-left">
<?php the_post_thumbnail('team-member'); ?>
</div>
<h4>
<?php the_title(); ?>
</h4>
<p>
<?php echo $team_designation; ?>
</p>
</div>
</div>
<?php }
}else{
echo 'No post';
}
wp_reset_postdata();
?>
</div>
</div>
<!--End Main Container -->
<?php get_footer(); ?>