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

Viewing 5 replies - 1 through 5 (of 5 total)
  • change <?php the_content{}; ?> to <?php the_excerpt(); ?>
    in your archive.php / category.php

    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.

    Thread Starter tim2255

    (@tim2255)

    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.

    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.

    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
    https://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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show summary of article’ is closed to new replies.