Forums

Show summary of article (6 posts)

  1. tim2255
    Member
    Posted 4 months ago #

    When someone clicks on a catagory, it shows the full text version. How do I get it so only the summary comes up.

  2. mercime
    Member
    Posted 4 months ago #

    change <?php the_content{}; ?> to <?php the_excerpt(); ?>
    in your archive.php / category.php

  3. Shane G
    Member
    Posted 4 months ago #

    Hi,

    You need to edit category.php file of your theme and inside the loop there will be a code like:

    <?php the_content{}; ?>

    Change this to:

    <?php the_excerpt{}; ?>

    Thanks,

    Shane G.

  4. tim2255
    Member
    Posted 4 months ago #

    Cool Thanks.

    Is there a way so it still shows one picture from the post. I always had one picture at the top of each post, not they are gone.

  5. Shane G
    Member
    Posted 4 months ago #

    Hi,

    Try to add the picture as a thumbneil in the post and have a check with the summmary..however it is depends on theme configuration..

    Thanks,

    Shane G.

  6. henkholland
    Member
    Posted 4 months ago #

    The standard way would be to use the php the_content again, and below your first text and top image put in a <morelink>
    Another way that works in 2.7.1 (don't know about 2.8) is using a plugin: the excerpt re-reloaded
    http://www.lucabiagini.com/2008/11/wordpress-plugin-the-excerpt-re-reloaded/
    and use this: <?php the_excerpt_rereloaded('14','---&raquo;&raquo;','<a><IMG>','plain'); ?>

    14 is the number of words in the excerpt; <a> allows links and <IMG>; allows images. There are more choices.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.