Forums

how can i only show a summry of the artical in the front page (5 posts)

  1. xbrt
    Member
    Posted 3 years ago #

    how can i only show a summery of the article in the front page and not all the post ?

  2. Roy
    Member
    Posted 3 years ago #

    1) Use the more tag while writing;
    2) Replace the_content by the_excerpt in the index.php
    3) Get an excerpt plugin, there are plenty.

    I prefer option 3, I use Excerpt Editor myself.

  3. George Appiah
    Member
    Posted 3 years ago #

    What you're talking about is the WordPress "excerpt". See http://codex.wordpress.org/Glossary#Excerpt and http://codex.wordpress.org/Template_Tags/the_excerpt

    Basically you can:

    1) Insert the <!--more--> quicktag at the spot where you want the summary to end. OR

    2) In your theme files, use "the_excerpt" (instead of "the_content") and then add your own summary in the Excerpt box when writing a post (if you leave this blank, WordPress will do this for you automatically).

    See the links above for more information.

  4. xbrt
    Member
    Posted 3 years ago #

    thanks man

  5. Saurus
    Member
    Posted 3 years ago #

    Hey - it's ALL in the Codex .....

    ...which nobody bothers to read.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.