WordPress.org

Ready to get started?Download WordPress

Forums

Excerpts on all posts after first (4 posts)

  1. davethepak
    Member
    Posted 4 years ago #

    I am not sure if this is possible without coding in the loop to have all of the posts after the most recent show as excerpt?

    That is:

    First post: full text
    Second post: excerpt only
    third post: excerpt only
    etc.

    any suggestions?

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

  3. t31os
    Member
    Posted 4 years ago #

    No need for multiple loops for that...

    Search the forum, this question has been answered.. I know i've at least answered a question of this nature at least once this week..

    Please mark this topic resolved if this helps
    :Posting to resolve:

    <?php while(have_posts()) : the_post(); $some_number = 0;
    $some_number++; ?>
    
    Your post content, html, etc ....

    Then in your loop where the_content normally is...

    <?php
    if($some_number == 1) {
      the_content(); }
    else {
      the_excerpt();
    }
    ?>
  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    I plead tiredness...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.