• Hi,

    I have been trying to archieve the same result as on https://www.designworkplan.com/ for 3 days without succes.

    The point is: In my design I only display the latest posts. Beneath I have a list with the 5 post before the latest post.

    This is my first time running WP, I looked on the codex but I just can’t do it.

    Please help me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php
    query_posts('showposts=1');
    if (have_posts()) :
    while (have_posts()) : the_post();
    ?>
      <div class="entry">
        <?php the_content(); ?>
      </div>
    <?php endwhile; ?>
    <?php endif; ?>
    
    <?php
    query_posts('showposts=5&offset=1');
    if (have_posts()) :
    while (have_posts()) : the_post();
    ?>
    <ul>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    </ul>
    <?php endwhile; ?>
    <?php endif; ?>

    that will show the newest post in it’s entirety (unless you use the more tag or change <?php the_content(); ?> to <?php the_excert(); ?>). then it will create a list of posts 2-6 only displaying the title of them as a link.

    Thread Starter mapleblack

    (@mapleblack)

    Thank you very much, works like a charm!

    WordPress loop looks beautiful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please help me with this custom loop’ is closed to new replies.