67 lines
1.7 KiB
PHP
67 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying all single posts
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<main id="primary" class="site-main single-post-layout">
|
|
<?php
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
?>
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
<header class="entry-header single-entry-header">
|
|
<div class="entry-meta">
|
|
<?php echo get_the_category_list( ', ' ); ?>
|
|
<span class="entry-date"><?php echo get_the_date(); ?></span>
|
|
</div>
|
|
<?php the_title( '<h1 class="entry-title single-title">', '</h1>' ); ?>
|
|
</header>
|
|
|
|
<?php if ( has_post_thumbnail() ) : ?>
|
|
<div class="post-thumbnail single-post-thumbnail">
|
|
<?php the_post_thumbnail( 'full' ); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="entry-content reading-container">
|
|
<?php
|
|
the_content();
|
|
|
|
wp_link_pages(
|
|
array(
|
|
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wisdom1' ),
|
|
'after' => '</div>',
|
|
)
|
|
);
|
|
?>
|
|
</div><!-- .entry-content -->
|
|
|
|
<footer class="entry-footer">
|
|
<div class="entry-tags">
|
|
<?php the_tags( '<span class="tags-links">Related: ', ', ', '</span>' ); ?>
|
|
</div>
|
|
</footer><!-- .entry-footer -->
|
|
</article><!-- #post-<?php the_ID(); ?> -->
|
|
|
|
<nav class="navigation post-navigation">
|
|
<div class="nav-links">
|
|
<div class="nav-previous"><?php previous_post_link( '%link', 'Previous: %title' ); ?></div>
|
|
<div class="nav-next"><?php next_post_link( '%link', 'Next: %title' ); ?></div>
|
|
</div>
|
|
</nav>
|
|
|
|
<?php
|
|
// If comments are open or we have at least one comment, load up the comment template.
|
|
if ( comments_open() || get_comments_number() ) :
|
|
comments_template();
|
|
endif;
|
|
|
|
endwhile; // End of the loop.
|
|
?>
|
|
</main><!-- #main -->
|
|
|
|
<?php
|
|
get_footer();
|