• Resolved henballs

    (@henballs)


    Hi guys! I need some WordPress help again. I have 6 blog posts but my loop only renders one of them.

    Note: this is a second loop. I have another loop before this that runs as I want.

    <?php
          if ( have_posts() ) : the_post();
          ?>
            <div id="orange" <?php post_class() ?>>
              <h2>
                <a href="<?php the_permalink() ?>">
                  <?php the_title(); ?>
                </a>
              </h2>
              <?php the_content(''); ?>
            </div>
          <?php endif; wp_reset_postdata(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Why does my loop only render one blog post?’ is closed to new replies.