Skip to content

Commit

Permalink
Add blog loop template to be used by Post loop widget
Browse files Browse the repository at this point in the history
  • Loading branch information
adiraomj committed Aug 29, 2016
1 parent 396c523 commit 4b97799
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions loops/loop-blog.php
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; ?>

0 comments on commit 4b97799

Please sign in to comment.