-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsingle.php
50 lines (34 loc) · 1.28 KB
/
single.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
<?php get_header(); ?>
<div class="content-main clear-fix" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!--BEGIN: Single Post-->
<article <?php post_class('clear-fix row'); ?>>
<header>
<h1 class="heading"><?php the_title(); ?></h1>
<p class="meta"><?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?> written by <?php the_author(); ?> <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?></p>
</header>
<div class="entry">
<?php the_content('<p>Read the rest of this entry »</p>'); ?>
<?php wp_link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
</div>
<!--BEGIN: Post Meta Data-->
<footer class="post-meta-data">
<p><?php the_tags('Tags: ', ', ', '<br />'); ?></p>
</footer>
<!--END: Post Meta Data-->
<!--BEGIN: Comments-->
<?php comments_template( '', true ); ?>
<!--END: Comments-->
</article>
<!--END: Single Post-->
<?php wp_link_pages(); //this allows for multi-page posts ?>
<?php endwhile; ?>
<?php else: //ERROR: Nothing Found ?>
<h2>No posts were found :(</h2>
<?php endif; //END: The Loop ?>
</div>
<!--END: Content-->
<aside class="sidebar-main">
<?php dynamic_sidebar('sidebar-main'); ?>
</aside>
<?php get_footer(); ?>