WordPress.org

Ready to get started?Download WordPress

Forums

Remove Subheaders from articles in Excerpts (1 post)

  1. Tom Lany
    Member
    Posted 4 years ago #

    Hi,

    I am using WordPress excerpts as a part of my theme. They work well, but they include subheaders from posts. For example, if the story content box included:

    <h3>This is more information about the story</h3>
    <p>This is the story content</p>

    The excerpt would then show up as:

    <p>This is more information about the story<br />
    This is the story content</p>

    I would like "This is more information about the story" to be removed, so the excerpt read:

    <p>This is the story content</p>.

    I would prefer not to have to use custom fields for the subheaders to do this.

    Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic