Forums

how to show posts as excerpts in coraline? (6 posts)

  1. cghbrook
    Member
    Posted 1 year ago #

    When I add a new post, it shows in its entirety at the top of the other posts shown in their entirety. This makes for a very long page! I can not find a way for new (and all) posts to show as an excerpt where a reader may click on "more..." to see the whole post.
    Alternately, I would be happy if only the latest post showed in its entirety and the others were accessible through a "latest posts"-type menu.
    Thanks for your help!

  2. Christine
    Moderator
    Posted 1 year ago #

    In your index.php file you need to change the instance

    <?php the_content();?> to <?php the_content(__('Read more'));?>

    This will display the more tag if it in in your post. Otherwise, you can also change

    <?php the_content();?> to <?php the_excerpt();?>

    and that will display only the excerpt and create the read more automatically.

  3. noelsaw
    Member
    Posted 1 year ago #

    hi Christine, thanks for the answer but it looks like the version of Coraline that's been updated for WP 3.1 doesn't have that snippet in the index.php file anymore. It's in the loop file and looking inside the loop file, it didn't seem that obvious for me.

    Screenshot: https://skitch.com/noelsaw/rw6y2/edit-themes-beta-startup-jobs-la-wordpress

    Thanks for the help!

  4. CObra21
    Member
    Posted 1 year ago #

    noelsaw...

    Wow! It is as though you were answering my question I have had for months now! A thousand thank yous!

  5. haydenthorne
    Member
    Posted 1 year ago #

    You can install the Evermore plugin, and that works perfectly since it automatically abbreviates all your posts, and you can adjust the length of the snippet once you activate it. It says that it hasn't been tested with 3.1 and above, but I tried it, and it's just fine.

  6. noelsaw
    Member
    Posted 1 year ago #

    Haydenthorne, thanks! It worked great on my test Coraline site.

Topic Closed

This topic has been closed to new replies.

About this Topic