[resolved] the_content() not applying filters (3 posts)

  1. alevalentini
    Posted 1 year ago #

    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?

  2. Michael
    Forum Moderator
    Posted 1 year ago #

    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?

  3. alevalentini
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.