WordPress.org

Ready to get started?Download WordPress

Forums

Shortening posts on home page (5 posts)

  1. Debwood
    Member
    Posted 5 years ago #

    Can someone tell me how to make the posts on the home page so they only show a couple inches of them and have the continue link so you have to open them up to see the rest.

    Thanks.

    Debbie Wood.

  2. nazcar
    Member
    Posted 5 years ago #

    the easiest way is inserting <!--more--> code in your post.

  3. viceng
    Member
    Posted 5 years ago #

    you can also use

    <?php the_excerpt(); ?>

    in the loop after checking if this is the home page

  4. Rok
    Member
    Posted 5 years ago #

    Better use excerpt reloaded plugin, I'm using this plugin for past three years without any problems.

  5. Shane G
    Member
    Posted 5 years ago #

    Hi,

    Open index.php file of your theme and check for this:

    <?php the_contents(); ?>

    replace with:
    <?php the_excerpt(); ?>

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.