Skip to content

Instantly share code, notes, and snippets.

@seandogg
Created October 15, 2015 18:26
Show Gist options
  • Save seandogg/f697b8dcaf36c627f721 to your computer and use it in GitHub Desktop.
Save seandogg/f697b8dcaf36c627f721 to your computer and use it in GitHub Desktop.
<?php //Posts Loop
$args=array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => get_option( 'posts_per_page' ),
'orderby' => 'menu_order',
'order' => 'ASC'
);
$blog_query = new WP_Query($args);
if ($blog_query->have_posts()) :
while ($blog_query->have_posts()) : $blog_query->the_post();
get_template_part( 'partials/content', get_post_format() );
endwhile;
endif;
wp_reset_query(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment