Forums

Why is full post showing on second page? (2 posts)

  1. websydaisy
    Member
    Posted 2 years ago #

    I have this site that I took over and on the home page of the blog, it should show all of the first post, then excerpts after that (accomplished).

    On the second etc pages of posts, it should just show excerpts, but instead it is showing the full first post then excerpts. Any ideas?

    Here is what it is using to supposedly make this happen:

    I have this at the beginning of the loop in the home.php:

    <?php if (have_posts()) : ?>
    
    <?php $i = 0; while (have_posts()) : the_post(); $i++; ?>

    Then this for the entry:

    <?php
    if($i == 1)
    the_content('Read the rest of this entry &raquo;');
    else
    the_excerpt();
    ?>

    but obviously something is amiss. The link is here:

    http://beyondbeliefthemovie.com/blog/

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try changing:

    if($i == 1)

    to:

    if($i == 1 && !is_paged())

    http://codex.wordpress.org/Conditional_Tags#A_Paged_Page

Topic Closed

This topic has been closed to new replies.

About this Topic