the_excerpt() retain new lines
-
When a user searches on my wordpress site, the_excerpt is called to display the search results, however all new lines from my original post are removed. I have tried modifying the wp_trim_excerpt function, however the $text passed to this function already has all new lines removed.
Essentially, I want the_excerpt to retain new lines from my blog post when displaying the results information.
Does anyone know how to do this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘the_excerpt() retain new lines’ is closed to new replies.