Excerpt without a paragraph tag


/ Published in: PHP
Save to your folder(s)

This strips out any html tags (like paragraph tags) from the excerpt in WordPress.


Copy this code and paste it in your HTML
  1. <?php $excerpt = strip_tags(get_the_excerpt());
  2. echo $excerpt; ?>

URL: http://wordpress.org/support/topic/strip-html-from-template-tag-excerpt

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.