• If I was wanting to display the most recent post in FULL and the three posts previous to the most recent, excerpt only what would be the appropriate loop?

    Then, I am wanting to list the 10 previous posts before the FULL one listed and the prior 3 beneath, so it would be

    MOST RECENT (i.e. ID#15) in FULL
    RECENT EXCERPT ( #14)
    RECENT EXCERPT ( #13)
    RECENT EXCERPT ( #12)
    ———————-
    list of posts
    list item title ( #11)
    through list item title (#2)

    follow?

Viewing 1 replies (of 1 total)
  • I’ve done something similar on my blog. Here’s my solution:

    <?php if (have_posts()) :
    $k = 0;
    while (have_posts()) : the_post();
    if ($k == 0) : ?>
    <?php the_content(); ?>
    <?php elseif ($k >= 1 && $k <= 3) : ?>
    <?php the_excerpt(); ?>
    <?php else : ?>
    <?php the_title(); ?>
    <?php endif; endwhile; endif; ?>

    That should show the full content for your first post, the excerpt for the next three, and then just the title for the remainder. Set your maximum number of posts to be listed in your control panel, like normal.

Viewing 1 replies (of 1 total)
  • The topic ‘Full Posts, Excert Posts on Index.php’ is closed to new replies.