WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WordPress not generating excerpt. (4 posts)

  1. Vryce
    Member
    Posted 8 years ago #

    I apologize. I did try to do a search first and didn't find what I was looking for.

    What is happening is that when I make a post, if I leave the Excerpt field blank, one is not automatically generated by WordPress. I was of the understanding that is what is supposed to happen.

    Any ideas what is causing the issue? I'm using the latest version of WordPress, though I do have a number of plugins. However, I did try it on a fresh install of WordPress and it didn't generate an excerpt either.

    Thanks in advance.

  2. TechGnome
    Moderator
    Posted 8 years ago #

    Excerpts aren't generated. Here's what does happen:
    When the_excerpt() is used in the template, it checkes to see if something was entered into the excerpt field. If something was, that is returned. If it was left blank, then the function returns the first part of the post itself. Since I always fill it in, I'm not 100% sure on how it works, but I think this is right:
    It will return up to the first work break after the 200th character; up to the first paragraph mark; up to the <!--more--> tag.... this ever comes first.

    But it's dynamic. The excerpt isn't generated and saved.

    -tg

  3. Vryce
    Member
    Posted 8 years ago #

    Ahh.. thank you for the reply.

    I was under the impression that WordPress generated one.

    Now that I'm clear on that, I'll set it so that I type one in myself. THough I think there are some plugins that create an excerpt automatically.

    Thanks again.

  4. moshu
    Member
    Posted 8 years ago #

    Also good to know: regardless whether it's automatic (?) or you type something the excerpts will be displayed only in template files (like archives view, category listing etc.) where in the Loop the_excerpt template tag is used and not the_content.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.