-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
67 lines (53 loc) · 2 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php get_header(); ?>
<div class="main">
<div class="container page">
<div class="content">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="singlePost" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><?php the_title(); ?></h2>
<div class="category">
<p><?php the_category('<span>|</span>'); ?></p>
</div>
<div class="date">
<p><?php the_date(); ?></p>
</div>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(array(
'before' => '<div class="page-link"> Pages: ',
'after' => '</div>'
)); ?>
</div><!-- .entry-content -->
<section class="postFooter">
<div>
<a href="<?php comments_link(); ?>"><?php comments_number(); ?></a>
</div>
<div>
<p><?php the_tags('', '<span>|</span>', '<br>'); ?></p>
</div>
</section>
<div class="entry-utility">
<?php edit_post_link( 'Edit', '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-utility -->
</div><!-- #post-## -->
<div id="nav-below" class="navigation entryNav">
<div class="direction older">
<p class="nav-previous">
<?php previous_post_link('%link', '%title'); ?>
</p>
<i class="fa fa-angle-double-left"></i>
</div>
<div class="direction newer">
<p class="nav-next direction newer">
<?php next_post_link('%link', '%title'); ?>
</p>
<i class="fa fa-angle-double-right"></i>
</div>
</div><!-- #nav-below -->
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div> <!-- /.content -->
<?php get_sidebar(); ?>
</div> <!-- /.container -->
</div> <!-- /.main -->
<?php get_footer(); ?>