Forums

Remove Subheaders from articles in Excerpts (1 post)

  1. tomthewebmaster
    Member
    Posted 6 months 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.

Reply

You must log in to post.

About this Topic