-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-contributors.php
52 lines (42 loc) · 1.69 KB
/
single-contributors.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
<?php get_header(); ?>
<div class="container-fluid no-pad" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<?php echo get_template_part( '/includes/template/breadcrumbs' ); ?>
<div class="container">
<section id="contributor-section">
<div class="row">
<div class="col-sm-12 featured-contributor">
<!-- featured contributor -->
<?php $query_tag = types_render_field("tag", array("output"=>"raw")); ?>
<?php echo get_template_part( '/includes/template/featured-contributor' ); ?>
</div>
</div>
<!-- CONTRIBUTED POST BY CONTRIBUTOR -->
<?php echo get_template_part('/includes/template/contributed-post'); ?>
<div class="row">
<div class="col-sm-12">
<h1 class="text-uppercase">Contributors</h1>
</div>
</div>
<!-- DO QUERY FOR LIST OF CONTRIBUTORS -->
<div class="row contributor-list">
<?php
$contributor_query = new WP_Query(
array
(
'post_type' => array('contributors'),
'post_status' => 'publish',
'posts_per_page' => -1
)
);
?>
<?php if ($contributor_query->have_posts()) : while ($contributor_query->have_posts()) : $contributor_query->the_post(); ?>
<?php echo get_template_part('/includes/template/contributor-list'); ?>
<?php endwhile; else: ?>
<?php echo get_template_part( '/includes/template/page-not-found' ); ?>
<?php endif; ?>
</div>
</section>
</div>
</div>
<!-- /container -->
<?php get_footer(); ?>