forked from olefredrik/FoundationPress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
32 lines (28 loc) · 740 Bytes
/
single.php
File metadata and controls
32 lines (28 loc) · 740 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
<?php
/**
* The template for displaying all single posts and attachments
*
* @package FoundationPress
* @since FoundationPress 1.0.0
*/
get_header();
// Display the Poets single page.
if ( in_category( 'Poets' ) ) {
get_template_part( 'template-parts/single-poets' );
}
//Otherwise, display the default single page template.
else {?>
<div class="main-container">
<div class="main-grid">
<main class="main-content">
<?php get_template_part( 'template-parts/featured-image' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', '' ); ?>
<?php the_post_navigation(); ?>
<?php endwhile; ?>
</main>
<?php get_sidebar(); ?>
</div>
</div>
<?php }
get_footer();