Remove paragraph tags from excerpt
-
In my template, on the “single post” page (single.php) I am displaying the excerpt with:
<p class="intro"><?php the_excerpt(); ?></p>
However my class is not getting applied because the excerpt function adds its own
<p></p>
tags to the excerpt.The docs say there are no parameters for this function. How can I remove the tags and just display the text?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Remove paragraph tags from excerpt’ is closed to new replies.