Support » Theme: evolve » Post excerpts: Prevent HTML stripping?

  • Resolved echavous

    (@echavous)


    I’m using the one column blog layout (not grid), with post excerpts enabled.

    The excerpts show as plain text, stripping the HTML, so links don’t display in the excerpt. I’d like to prevent the HTML from being stripped (most importantly any < a > tags). I don’t want people to have to click “read more” to view the links.

    Is this possible? I’ve seen a “strip_tags($postexcerpt)” code elsewhere on the forums. Is there something similar being used in evolve theme that I can overwrite?

    Second question…

    Is it possible (maybe a plugin is required?) to fully edit the excerpts? I’d prefer to write my own HTML rich excerpts, instead of auto-generating the first several characters as a teaser. I’ve tried using the “Post Subtitle” feature in the post editor, but this doesn’t seem to affect anything. Wish there was a “Custom Post Excerpt” box that would allow me to write my own…

    Any ideas? Thank you!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • sdavis2702

    (@sdavis2702)

    Member

    Hi there,

    WordPress actually has built in post excerpt capabilities. When you go to the Add/Edit Post screen, you should see a section called Excerpt somewhere below the post content box. If not, scroll to the top of the screen and click the Screen Options tab. Then check the box for Excert. It should appear then. What you type there will not have its HTML stripped.

    Omg! Thanks Sean! I knew there was an easy fix… works just fine now.
    I’m a new WP user, recently migrated from Blogger.

    Sincerely appreciate the help. 🙂

    sdavis2702

    (@sdavis2702)

    Member

    No problem at all! Even a lot of experienced users don’t know about it. They know the Excerpt box is there but they automatically assume it will also strip the HTML. Because of this common misconception, I even wrote a post about it. http://buildwpyourself.com/wordpress-manual-excerpts-more-tag/

    Glad I could help!

    How can I add a hard return in a manual Excerpt?

    sdavis2702

    (@sdavis2702)

    Member

    Just use paragraph tags in the manual excerpt.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.