0

For some reason, the theme I've made won't turn the double newlines (pressing enter in the Visual editor) into paragraph tags. I tried disabling all plugins and it still doesn't work. It does work if I change to a default theme though. Any ideas?

<?php while ( have_posts() ) : the_post(); ?>

      <div class="container">
        <h2>
            <?php the_title(); ?>
        </h2>
      </div> <!-- /container -->
    <div class="container contentArea">

        <?php the_content(); ?>

    </div>

<?php endwhile; // end of the loop. ?>
4

1 回答 1

0

我认为这是由我认为默认启用的wpautop功能(请参阅此处)完成的(请参阅此处)。

也许您可以手动将其添加到您的主题中?或者更好的是,找出它没有被启用的原因。

于 2013-01-13T11:02:14.627 回答