“the_content” filter can get added with other filters from plugins and themes which could alter content, when you simply want this to format the post_content to HTML format.
Is there a better solution for this that other plugins do not add filters to and can format the post content to HTML format just like this filter do?
<?php
if ( ! function_exists ('ct_filter_the_content') ) {
function ct_filter_the_content( $content ) {
$content = wptexturize($content);
$content = convert_smilies($content);
$content = wpautop($content);
return $content;
}
}
