2010-10-07, 16:42:26
Johonwayni Wrote:Does the same apply in get_page_content? :/No. All get_* functions use “echo†to display content, and you need a string for your function. There is no return_* function for the page content, so you will have to come up with your own solution.
I haven’t tested this, but it should work. Add the following function to your code:
Code:
function return_page_content() {
global $content;
$content = stripslashes(htmlspecialchars_decode($content, ENT_QUOTES));
$content = exec_filter('content',$content);
return $content;
}
Code:
<?php echo __(return_page_content()); ?>
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!