/
singular.php
46 lines (33 loc) · 897 Bytes
/
singular.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
<?php
/**
* Singular
*
* Template file to display single pages and posts.
*
* @package ThoughtsIdeas\Published
* @subpackage Singular\Default
* @version 1.0.0
* @author Thoughts & Ideas <hello@thoughtsideas.uk>
* @copyright Copyright (c) 2017 Thoughts & Ideas
* @link https://codex.wordpress.org/Template_Hierarchy
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
*/
?>
<?php get_header(); ?>
<main role="main" id="content">
<?php if ( have_posts() ) : ?>
<?php
/**
* Start the Loop.
*/
?>
<?php while ( have_posts() ) : ?>
<?php the_post(); ?>
<?php get_template_part( 'module-templates/content', get_post_format() ); ?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'module-templates/content', 'none' ); ?>
<?php endif; ?>
</main>
<?php get_footer(); ?>