2012-01-02, 02:36:31
Here's one way to do it, by creating a modified copy of GS's get_page_content() function.
Create a functions.php file in your theme folder (or edit it if exists), and insert this:
Now edit your template file and change:
to:
Create a functions.php file in your theme folder (or edit it if exists), and insert this:
Code:
<?php
function get_page_content_nl2br() {
global $content;
exec_action('content-top');
$content = strip_decode($content);
$content = nl2br(exec_filter('content',$content));
echo $content;
exec_action('content-bottom');
}
Now edit your template file and change:
Code:
<?php get_page_content(); ?>
Code:
<?php get_page_content_nl2br(); ?>