I'm collecting data via a form plugin and save that data in form of a post with several custom fields. I then display the content of the post and the custom fields on my post template via
<?php if(get_post_meta($post->ID, '_aboutus', true)): echo '<div class="companyaboutus">'.get_post_meta($post->ID, '_aboutus', true).'</div>'; endif; ?>
The form field for the about us text is a text/paragraph field and most contributors add several lines of text into the field. Displaying the content/text via the code above doesn't show any line breaks though - any idea how to preserve the line breaks?
Any help would be highly appreciated!
Many thanks in advance, Thomas