Ready to get started?Download WordPress


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

  1. alevalentini
    Posted 8 months 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. alchymyth
    The Sweeper & Moderator
    Posted 8 months 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 2 weeks ago #

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


You must log in to post.

About this Topic


No tags yet.