As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread:

Wordpress/PHP help: Formatting (Paragraph tags) being stripped out, no idea why.

EinEin CaliforniaRegistered User regular
edited November 2013 in Help / Advice Forum

This is a thing I'm typing in Wordpress' visual editor. It should be putting paragraph tags after every time I hit Enter, but when I look at the HTML version...


They're not there.


So this is what it ends up looking like on the site,


And this is the source code, devoid of pretty much any formatting whatsoever.

The call for this is on single.php, very simply:
<div class="single-container">
<?php the_content(); ?>

I have no idea why I can't get my formatting and markup from the Wordpress visual editor to stick, and the output of the_content(); seems to just be an unformatted mess of whatever words I typed sans spacing.

What am I missing, here?

Edit: Nevermind, this line:

remove_filter( 'the_content', 'wpautop' );

was in my functions.php file and causing the fuck-up.

Ein on
Sign In or Register to comment.