-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-contributors.php
73 lines (51 loc) · 2.02 KB
/
archive-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?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
$featured_query = new WP_Query(
array
(
'post_type' => array('contributors'),
'post_status' => 'publish',
'featured' => 'yes',
'posts_per_page' => 1
)
);
if ($featured_query->have_posts()) :
while($featured_query->have_posts()) : $featured_query->the_post();
$query_tag = types_render_field("tag", array("output"=>"raw"));
?>
<?php echo get_template_part( '/includes/template/featured-contributor' ); ?>
<?php endwhile; ?>
<?php wp_reset_postdata();
else :
echo get_template_part( '/includes/template/page-not-found' );
endif;
?>
</div>
</div>
<!-- CONTRIBUTED BY CONTRIBUTORS -->
<?php echo get_template_part('/includes/template/contributed-post'); ?>
<!-- LIST OF CONTRIBUTORS -->
<div class="row">
<div class="col-sm-12">
<h1 class="text-uppercase">Contributors</h1>
</div>
</div>
<div class="row contributor-list">
<?php if (have_posts()) : while (have_posts()) : 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(); ?>