WordPress.org

Ready to get started?Download WordPress

Forums

limiting words in excerpt (6 posts)

  1. Z33
    Member
    Posted 9 years ago #

    how do i limit the words display, say only 20 words when i call out <?php the_excerpt ?>

    thanks in advance.

  2. Lorelle
    Member
    Posted 9 years ago #

  3. Z33
    Member
    Posted 9 years ago #

    well, i plan to use the_excerpt in my archive page. it seems like the the_excerpt display too many words and i would like to limit it because i display all the post in my archive.

    is limiting words in the_excerpt playing with the core codes?

  4. moshu
    Member
    Posted 9 years ago #

    Yes. It is set in core files to 120 words, I think.

  5. Jinsan
    Member
    Posted 9 years ago #

    You can use Kaf's brilliant excerpt plugin, the excerpt reloaded - which is available here:

    http://guff.szub.net/the-excerpt-reloaded

    What it does:
    Based on the_excerpt, the_excerpt Reloaded, when a post does not contain an excerpt, displays the contents of the post (typically abbreviated), which can be customized on which HTML tags to allow, length of the excerpt (in words), “more…� link, and filtering type. The plugin’s function the_excerpt_reloaded() must be used in The Loop.

    No need to screw around with more tag, or excerpt core :)

  6. miri
    Member
    Posted 9 years ago #

    Thank you! This is just what I needed for a site I'm making. I love these forums and the search feature. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.