forked from binjuhor/simple-wp-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
37 lines (33 loc) · 777 Bytes
/
single.php
File metadata and controls
37 lines (33 loc) · 777 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
28
29
30
31
32
33
34
35
36
37
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage xDev-theme
* @since xDev-theme 1.0.0
*/
get_header(); ?>
<main class="main-content">
<div class="container">
<?php while ( have_posts() ) : the_post(); ?>
<div class="main-content__inner">
<article>
<h1><?php the_title(); ?></h1>
<?php if (has_post_thumbnail()) { ?>
<figure>
<?php the_post_thumbnail(); ?>
</figure>
<?php } ?>
<div class="post-content">
<?php the_content(); ?>
</div>
</article>
</div>
<?php get_template_part( 'template-parts/navigation' );
endwhile; // End of the loop. ?>
</div>
</main>
<?php
get_footer();