Archived topic
Where is the loop?
1 reply · Started by Pete on March 2, 2015
Viewing posts 1–2 of 2
I can't find the loop? Do you use something like this?
<?php $query = new WP_Query( array('orderby' => 'date', 'posts_per_page' => '5', 'post_type' => 'post') ); if ( $query->have_posts() ) : ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
GeneratePress doesn't use any custom queries at all - just default WordPress functionality.
You can find the default while statement in the index.php file (which handles the blog).
This archived topic is closed to new replies.