WordPress.org

Ready to get started?Download WordPress

Forums

None of the Excerpts work (6 posts)

  1. zilvinas
    Member
    Posted 3 years ago #

    Hello,

    I tried over 20 plugins, but none of them helps. I tried choosing in settings --> reading --> both summary and full text, but no matter what i choose i see on home page full text and at the end of the last post I see read the rest of the entry, but it's already all entry! Can anybody help me?

    If needed to see how it looks, my website http://zilvinasjuraska.com

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    The options in Settings -> Reading are for your RSS feed - not your web pages. You will need to edit the relevant template files in your theme and replace <?php the_content();?> with <?php the_excerpt;?>. Or use the <!--more--> tag in your posts to define where the post teaser should end on post listing pages.

  3. zilvinas
    Member
    Posted 3 years ago #

    Thanks esmi!

    You showed me the way! Just added <?php the_excerpt();?> instead of <?php the_content('Read the rest of this entry'); ?> in the main index template and it showed!

    But I need one mre thing: How can I add Read the rest of this entry because it dissapeared once i changed it with excerpt?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Try adding something like:

    <p class="more-link"><a href="<?php the_permalink();?><?php _e('Read the rest of this entry');?></a></p> just after <?php the_excerpt();?>

  5. zilvinas
    Member
    Posted 3 years ago #

    I added it, but it doesn't show up. I found another way to do that: put that read the rest of this entry manually. And I think it will be ok :) thanks for help esmi :)

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    No problem :-)

Topic Closed

This topic has been closed to new replies.

About this Topic