-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add blog loop template to be used by Post loop widget
- Loading branch information
adiraomj
committed
Aug 29, 2016
1 parent
396c523
commit 4b97799
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Loop Name: Blog Loop | ||
*/ | ||
?> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
|
||
<?php /* Start the Loop */ ?> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<?php get_template_part( 'template-parts/content', get_post_format() ); ?> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php siteorigin_north_posts_pagination(); ?> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part( 'template-parts/content', 'none' ); ?> | ||
|
||
<?php endif; ?> |