[Resolved] Where is the loop?

Home Forums Support [Resolved] Where is the loop?

Home Forums Support Where is the loop?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #81849
    Pete

    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(); ?>
    #81946
    Tom
    Lead Developer
    Lead Developer

    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).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.