learningtech
learningtech

Reputation: 33715

Wordpress - How to do an excerpt of blog content without striptags

In wordpress, it can print a list of blog entries with excerpts. When you click on a blog entry, it takes you to the full article.

My problem is that wordpress applies something like a "strip html tags" function to the excerpts, so that it removes ul,li, superscript, tags etc...

Is there a way to either prevent this, or be selective of which tags to strip out? I definitely want to keep the superscript tag.

Upvotes: 0

Views: 365

Answers (1)

SMacFadyen
SMacFadyen

Reputation: 3165

If you want to control the excerpts contents, I suggest using Advanced Excerpt Plugin, or quite simply

the_content();

Upvotes: 1

Related Questions