I came across a odd behavior in WordPress in which paragraphs and line breaks were removed from blog posts.
The theme was exploding the content into chunks based on the location of the “Read More” tag in order to facilitate an accordion-style presentation in which the user would click “Read More” to reveal the entire blog post instead of going to a separate page.
The problem was that this exploded content did not get any of the default filters applied which automatically add paragraphs and line breaks to post content. In order to correct this, I had to apply the
wpautop function to the output:
<?php echo wpautop($explodemore); ?>