Forums

[resolved] "summary" not working on home page. Only full length text showing. (7 posts)

  1. fhcadmin
    Member
    Posted 1 year ago #

    Reading Setting: For each article in a feed, show : Summary.

    But my home page (post page) still shows full text.

    Any suggestions?

    http://www.fhcmichigan.org/

  2. MAS
    Member
    Posted 1 year ago #

    use <?php the_excerpt() ?>

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    For each article in a feed, show : Summary.

    That is your rss feed

    For your index, you can either set up a custom excerpt/summary in the box provided when you create the post

    Or in index.php of your theme (or loop.php possibly) you can change the_content to the_excerpt

  4. fhcadmin
    Member
    Posted 1 year ago #

    Thanks.

    index.php doesn't seem to have a place for that?

    the loop.php is so full of "stuff" that I can't really understand which line I'd change? Should I change the php in:
    * posts that are in the gallery category,
    * when we're displaying
    posts in the asides category,
    * and finally all other posts.

  5. MAS
    Member
    Posted 1 year ago #

    goto line 131 and replace

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

    with

    <?php if ( is_home() || is_front_page() || is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

  6. fhcadmin
    Member
    Posted 1 year ago #

    Thanks! It worked.

  7. KlickDesign
    Member
    Posted 1 year ago #

    thank you for your post.. i used it too!

Topic Closed

This topic has been closed to new replies.

About this Topic