• Is there a way to have posts take on the “extended entry” style as they move down the main page, i.e. they are shown in their full glory at first, but after two weeks or so they are in the “extended entry” format?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Another alternative:
    In index.php, look for start_wp(); and change it to:
    start_wp(); $ext_count = 0; $extended_after = 5;
    The value of 5 indicates how many posts you want as full; change it to whatever you prefer. Then look for this:
    <div class="storycontent">
    <?php the_content(); ?>
    </div>

    And make changes such that it looks like this:
    <div class="storycontent">
    <?php
    ($ext_count < $extended_after) ? the_content() : the_excerpt();
    $ext_count++;
    ?>
    </div>

    Though I haven’t tested it, this should make the first 5 posts of your blog appear in full, then any subsequent posts will appear excerpted (i.e. shorter). Triggering the excerpt by the age of the post is also just as easily possible.

    Thread Starter jdunavin

    (@jdunavin)

    Excellent, thank you. I’ll be looking into it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Posts to become “extended” as they move down?’ is closed to new replies.