I created a new wordpress page and added this into the Text tab (NOT the visual tab. The visual tab is disabled):
<div></div>
When I click Publish, the code turns into this:
<div></div>
How do I stop it from doing that?? The website displays the code like text and not HTML, so you literally see "<div></div>
" on the page. I even tried adding a replace script into the functions.php file and it didn't work:
function my_content_filter( $content ) {
$new_content = str_replace('>','>',$content);
return $new_content;
}
add_filter( 'the_content', 'my_content_filter', 1 );
I should also note that I have tried to use a shortcode/snippet plugin to add HTML to the page and it still comes out with entity code.
unfiltered_html
capability? – Nathan Johnson Mar 1 '18 at 17:41