the_content() not applying filters
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘the_content() not applying filters’ is closed to new replies.