Thread Starter
dcnz
(@dcnz)
Ok so I found the solution myself. After trying many different things, the answer was actually quite simple. And that was to use wpautop http://codex.wordpress.org/Function_Reference/wpautop
And here’s the code to output the post content and keep the P tags intact:
<?php if( !empty( $property['post_content'] ) ): ?>
<div class="property_content"><?php echo wpautop( $property['post_content'] ); ?></div>
<?php endif; ?>
Thread Starter
dcnz
(@dcnz)
That’s cool.
Do you think it could be added as a feature in the future?