forked from aptiko/wordpress-bootstrap3-minimal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop-single.php
More file actions
45 lines (35 loc) · 1.23 KB
/
loop-single.php
File metadata and controls
45 lines (35 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
/**
* The loop that displays a single post.
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop-single.php.
*/
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-meta">
<?php posted_on(); ?>
</div><!-- .entry-meta -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:'), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
</article>
<hr>
<!--
<p class="categories text-muted">
Categories: <?php the_category(', '); ?>
</p>
<hr>
-->
<nav id="nav-below" class="row navigation">
<div class="col-xs-6"><?php previous_post_link( '%link', '← %title', true ); ?></div>
<div class="col-xs-6"><?php next_post_link( '%link', '%title →', true ); ?></div>
</nav>
<?php endwhile; // end of the loop. ?>