-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
27 lines (20 loc) · 883 Bytes
/
single.php
File metadata and controls
27 lines (20 loc) · 883 Bytes
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
<?php get_header(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article class="article">
<header>
<div class="meta">
Written on <time datetime="<?php echo get_the_date( 'Y-m-d' ); ?>"><?php the_date(); ?></time>
</div>
<h1><?php the_title(); ?></h1>
</header>
<?php the_content( 'more' ); ?>
</article>
<div class="pagination clearfix">
<ul>
<li class="prev"><?php if( get_next_post_link() ) { ?>Newer article <span><?php next_post_link( '%link', '%title' ); ?><?php } ?></span></li>
<li class="next"><?php if( get_previous_post_link() ) { ?>Older article <span><?php previous_post_link( '%link', '%title' ); ?></span><?php } ?></li>
</ul>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>