-
Notifications
You must be signed in to change notification settings - Fork 6
/
single-full.php
68 lines (40 loc) · 2.05 KB
/
single-full.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/*
* Template Name: Single Full Width Template
* Template Post Type: post
*
* This is a post template for full-width posts.
*/
?>
<?php get_header(); ?>
<div id="content">
<div id="inner-content" class="wrap content-no-sidebar">
<main id="main" class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="https://schema.org/Blog">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article" itemscope itemprop="blogPost" itemtype="https://schema.org/BlogPosting">
<header class="article-header entry-header">
<h1 class="entry-title single-title" itemprop="headline" rel="bookmark"><?php the_title(); ?></h1>
<?php // Delete or comment out if you don't need this on your page or post. Edit in /templates/byline.php ?>
<?php get_template_part( 'templates/byline'); ?>
</header> <?php // end article header ?>
<section class="entry-content" itemprop="articleBody">
<?php if ( has_post_format()) {
get_template_part( 'format', get_post_format() );
} ?>
<?php the_content(); ?>
</section> <?php // end article section ?>
<footer class="article-footer">
<?php get_template_part( 'templates/category-tags'); ?>
</footer> <?php // end article footer ?>
<?php comments_template(); ?>
</article> <?php // end article ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'templates/404'); ?>
<?php endif; ?>
</main>
<?php // related posts function; uncomment below to use ?>
<?php // plate_related_posts(); ?>
</div>
</div>
<?php get_footer(); ?>