-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-news.php
67 lines (60 loc) · 1.91 KB
/
single-news.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
<?php
/*
Template Name: Single News Template
*/
?>
<?php get_header(); ?>
<div class="w-section blog-post-section">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="w-container">
<div class="w-col w-col-10">
<h5 class="all-press"><a href="/news">< All News</a></h5>
</div>
<?php the_post_thumbnail('large', array(
'class' => 'w-img-responsive'
)); ?>
</div>
</div>
<div class="w-section cis-section-2" id="features">
<div class="w-container">
<div class="w-row">
<div class="w-col w-col-2"></div>
</div>
</div>
<div class="w-container">
<div class="w-row">
<div class="w-col w-col-2 blog-left-column">
<h3 class="h3-green-header">News by Topic</h3>
<?php $terms = get_terms('news_taxonomy'); ?>
<?php
$terms = get_terms('news_taxonomy');
foreach ($terms as $term) {
?>
<a class="paragraph-2 blog-post-topic" href="/news-categories/<?php echo $term->slug; ?>"><?php echo $term->name ?></a>
<?php
}
?>
</div>
<div class="w-col w-col-10">
<div id="fader">
<h1 class="blog-post-heading-2"><?php the_title(); ?><?php single_cat_title(); ?></h1>
<div>
<div class="divider"></div>
<div class="w-row">
<div class="w-col w-col-4">
<div class="blog-date">Date: <?php the_time("F j, Y"); ?></div>
</div>
<div class="w-col w-col-4">
<div class="blog-topic">Topic: <?php printf(__(get_the_category_list(', '))) ?></div>
</div>
</div>
</div>
<p class="blog-paragraph"><?php the_content(); ?></p>
<div class="divider"></div>
</div>
</div>
</div>
</div>
</div>
<?php endwhile; endif; ?>
<?php get_footer(); ?>