Add the below function to admin/inc/theme_functions.php or theme/yourtheme/functions.php.
It does not matter which one you add it too.
Then you can use it to return the content instead of echo it.
Or
You can do the below in your template files:
It does not matter which one you add it too.
Code:
function return_page_content() {
global $content;
exec_action('content-top');
$content = strip_decode($content);
$content = exec_filter('content',$content);
return $content;
/* un-comment below if you replace the get_page_content() function in your template files */
//exec_action('content-bottom');
}
Then you can use it to return the content instead of echo it.
Or
You can do the below in your template files:
Code:
<?php
global $content;
if($content != '')
{
get_page_content();
}
?>