I’ve since solved the problem with the missing paragraphs:
I created this method, added it to my functions.php and everything’s sorted:
/**
* Formats a given post content, so it is displayed properly on the webpage.
* @param string $post_content
*/
function formatPost($post_content) {
$splitContent = explode(PHP_EOL, $post_content);
//echo "<pre >", var_dump($splitContent), "</pre>"; die();
for ($i = 0; $i < count($splitContent); $i++)
$splitContent[$i] = "<p >" . $splitContent[$i] . "</p>";
return implode(PHP_EOL, $splitContent);
}
Then just called and echo-d the output; all works fine.
Thanks for your help, Andrew!