WordPress.org

Support

Support » Plugins and Hacks » Remove Subheaders from articles in Excerpts

Remove Subheaders from articles in Excerpts

  • Tom Lany

    @tomthewebmaster

    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.

  • The topic ‘Remove Subheaders from articles in Excerpts’ is closed to new replies.
Skip to toolbar