Return to Snippet

Revision: 24303
at February 25, 2010 13:22 by Xtraboy


Initial Code
<?php
	the_content(); // this is your standard way to output Post or Page content
	// now the test which works
	$var_content = get_the_content();
	$var_content = apply_filters( 'the_content', $var_content );
	$var_content = str_replace( ']]>', ']]>', $var_content );
	echo $var_content;
?>

Initial URL
http://rider.sofarider.com/blog/wordpress-tips/how-to-fix-get_the_content-stripped-tags/

Initial Description

                                

Initial Title
How to fix get_the_content() stripped tags in WordPress

Initial Tags
php, html, wordpress

Initial Language
PHP