Support » Fixing WordPress » the_content() not applying filters

  • Resolved alevalentini


    This is my code for a custom single.php:

    <?php if (have_posts()) : ?>
    	<?php if (($wp_query->post_count) < 2) : ?>
       	<?php while (have_posts()) : the_post(); ?>
    			<?php the_post_thumbnail('full', array('class' => 'immagine_article')); ?>
           	<h1><?php the_title(); ?></h1>
           	<?php the_content(); ?>
          <?php endwhile; ?>
      	<?php endif; ?>
    <?php endif; ?>

    The output shows the content, but not formatted. I thought that the_content() used the apply_filter by itself. Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • what theme are you using?

    does this also happen if you temporarily deactivate all plugins?

    and if you switch to the default theme Twenty Thirteen?

    I’m creating my own theme. I really don’t know why, but it works perfectly as expected now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_content() not applying filters’ is closed to new replies.