-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsingle.php
31 lines (29 loc) · 931 Bytes
/
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
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Xenial
*/
get_header();
$display_featured_image_meta = get_post_meta( get_the_ID(), 'xenial_post_disable_featured_image', true );
?>
<?php do_action( 'xenial_single_header' ); ?>
<div class="<?php xenial_post_single_content_container_classes(); ?>">
<div id="primary" class="content-area">
<main id="site-main" class="site-main">
<?php
while( have_posts() ) :
the_post();
get_template_part( 'template-parts/content/content', 'single' );
do_action( 'xenial_post_comments' );
do_action( 'xenial_related_posts' );
endwhile;
?>
</main> <!-- #site-main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .xe-container -->
<?php
get_footer();