WordPress.org

Ready to get started?Download WordPress

Forums

How-to only show the first sentence of every post on main-page. (2 posts)

  1. kesla
    Member
    Posted 8 years ago #

    I wonder if there's any easy way to only show the first sentence of every post (in the loop). It'll will not work by adding <!-- more --> in every post, what I'm looking for is an automatic solution.

    I'd be really happy if anyone would like to help me with this!
    Thanks.

  2. moshu
    Member
    Posted 8 years ago #

    You can replace the_content~ tag in your index.php with the_excerpt`. It will show the first 120 words or so.
    Read more: Template_Tags#Post_tags

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags