• Resolved jakczuhang

    (@jakczuhang)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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 …

    Thread Starter jakczuhang

    (@jakczuhang)

    Thanks a lot for your help, it’s working perfectly now 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Have summary post on mainpage but click to full post.’ is closed to new replies.