Skip to content

Instantly share code, notes, and snippets.

@yuriitaran
Created November 1, 2017 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriitaran/104f49d169ce198099fb8da07a5b67f1 to your computer and use it in GitHub Desktop.
Save yuriitaran/104f49d169ce198099fb8da07a5b67f1 to your computer and use it in GitHub Desktop.
<?php $the_query = new WP_Query( array( 'post_type' => 'post', 'order' => 'ASC' ) ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<?php get_template_part( 'template-parts/page/content', 'front-page' ); ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment