-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
45 lines (36 loc) · 1.23 KB
/
Copy pathcategory.php
File metadata and controls
45 lines (36 loc) · 1.23 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
<?php get_header(); ?>
<div class="main-wrapper center-container">
<div class="left"> <!-- Left content -->
<div class="col span12">
<h1><?php single_cat_title(__(''), true); ?> </h1>
<div class="pagination-container center"> <?php echo paginate_links(); ?> </div>
<ul class="story-list">
<?php if (have_posts()): while (have_posts()): the_post(); ?>
<li class="story">
<h2 class="headline"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p class="byline center">
<?php
$guest_author = get_post_meta($post->ID, "guest-author", true);
if ($guest_author != '') {
echo $guest_author; }
elseif (function_exists('coauthors_posts_links')) {
coauthors_posts_links(); }
else {
the_author();; } ?> |
<?php echo human_time_diff( get_the_time('U'),
current_time('timestamp') ) . ' ago'; ?>
</p>
<?php responsive_feature_image($post->ID, 'full-width'); ?>
<?php the_excerpt(); ?>
</li>
<?php endwhile; endif; ?>
</ul> <!-- .story-list -->
<div class="pagination-container center"> <?php echo paginate_links(); ?> </div>
</div>
</div> <!-- End left content container -->
<div class="right">
<div class="col span12">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>