As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/

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

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

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...

wp_problem04.jpg

They're not there.

wp_problem01.jpg

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

wp_problem02.jpg

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(); ?>
</div>

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.