Support » Fixing WordPress » Front page to only show a few preview lines of post?

  • Hey everyone

    I wondered if it is possible to have it so on my home page, the latest post only shows a few lines, then when you click on the link to the post it has the full text there??

    Thanks for any help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can use the more tag. Place the more tag where you want your post to be ‘cut off’ and then on the homepage you should see a link to read more.

    You can also look for a plugin called “excerpts”. When you are entering your post there is an extra entry where you can enter just a few lines and if this is entered then that is what shows. Works good!

    Andrea
    http://www.andreabiz.com
    http://www.pampermeplace.net

    You can use a plugin such as andrea suggested or just go into your theme’s index.php file and change it there. If you decide to dive into the code, open up index.php and look for a piece of code that should be

    <?php the_content(); ?>

    This displays the entire post instead of just a small snippet like you are looking for. To display a small snippet with a link to read the entire post change

    <?php the_content(); ?>

    over to

    <?php the_excerpt(); ?>

    Doing this will only show the first 55 words of your post which can end up quite short. I wrote a blog post awhile back ago about how to change the WordPress excerpt length awhile ago.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Front page to only show a few preview lines of post?’ is closed to new replies.