Support » Themes and Templates » Mix of excerpts and full content on homepage but just excerpts after that?

  • Resolved ColumboMan

    (@columboman)


    Hi,

    The following code successfully shows my latest post’s full content and the rest are excerpts.

    <div class="entry">
    <?php if ($wp_query->current_post == 0) {
    the_content();
    } else {
    the_excerpt();?>
    <span class="read_more"><a href="<?php the_permalink(); ?>">Continue reading...</a></span>
    <?php } ?>
    </div>

    Is it possible to keep this setup for the homepage but from then on (pages 2 – X) only show excerpts.

    Cheers. C.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mix of excerpts and full content on homepage but just excerpts after that?’ is closed to new replies.