-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
34 lines (26 loc) · 896 Bytes
/
home.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
<?php
/***
* The template for displaying all blog posts.
*
* @clinton-gorda-theme
* @since 1.0.0
*/
//display header
get_header();
?>
<article <?php post_class();?> id="post-<?php the_ID();?>">
<div class="flex-container">
<div class="blog-posts">
<?php if(have_posts()) : ?>
<!-- start the loop | the loop grabs all the content and cycles through all of the content until it’s done. -->
<?php while(have_posts()) : the_post(); ?>
<!-- display the all of the blog posts -->
<?php get_template_part('template-parts/content', 'home'); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<!-- //On this page specifically - this would be area to add pagination and a sidebar - out of the loop. -->
</article>
</div>
<!-- //display footer -->
<?php get_footer(); ?>