The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Have summary post on mainpage but click to full post. (4 posts)

  1. jakczuhang
    Posted 7 years ago #

    How can I set it so that only a small summary is posted onto the front page but if somebody clicks on the title of the post they can view the complete post?


  2. Shane G
    Posted 7 years ago #


    Open index.php file of your theme and replace this code:


    <? php the_content() ?>

    Replace with:

    <?php the_excerpt() ?>

    Refer this article:



    Shane G.

  3. A lot of themes generally use the_content() function to display the full post on the front page and the_excerpt() function to display a "small summary".

    Try opening you index.php file of your active theme and search for "the_content"; change it to "the_excerpt" (less the quotation marks) and see if that displays what you are looking for.

    Of course, you will also have to look at your single.php file to make sure it is using the_content (it normally will).

    Hope that gets you pointed in the right direction ...

  4. jakczuhang
    Posted 7 years ago #

    Thanks a lot for your help, it's working perfectly now :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.