WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jakczuhang
    Member
    Posted 5 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?

    Thanks

  2. Shane G
    Member
    Posted 5 years ago #

    Hi,

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

    Find:

    <? php the_content() ?>

    Replace with:

    <?php the_excerpt() ?>

    Refer this article:

    http://codex.wordpress.org/Customizing_the_Read_More

    Thanks,

    Shane G.

  3. Edward Caissie
    Theme Review Admin
    Posted 5 years ago #

    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
    Member
    Posted 5 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

Tags

No tags yet.