the_excerpt ditches <p> tags
-
On my front page (index.php) I changed the_content to the_excerpt. Now, instead of paragraphs being wrapped in <p> tags, paragraphs displayed on the front page just have a single < br / > tag separating them. This obviously results in an undesirable effect.How can I make the_excerpt retain the formatting? I tried adding “add_filter(‘the_excerpt’, ‘wpautop’);” on a whim, but it didn’t change anything.
Thanks in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘the_excerpt ditches <p> tags’ is closed to new replies.