WordPress.org

Forums

Remove <p></p> from the_excerpt() text (3 posts)

  1. Brent
    Member
    Posted 8 years ago #

    I want to use the_excerpt() to add text to my description meta tags on my posts. I noticed when I use the_excerpt() it places <p> and </p> around the text.

    I'm not sure if this will hurt my description meta in SEO. Is there a way to remove the <p> and </p> from being placed within the_excerpt() text?

    If there is a better way to add descriptive text to my description meta on my posts please let me know.

  2. BPartch
    Member
    Posted 8 years ago #

  3. Brent
    Member
    Posted 8 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic