My website on Wordpress is causing me trouble. When I input text directly into the HTML/CSS structure hardcoded style, it fits perfectly. However, when I attempt to do the same thing using Wordpress
<?php echo the_content();?>
, it ends up breaking out of the structure.
Let's compare the hardcoded version with the PHP generated Wordpress version:
<div class="wrapper">
<p class="about-text">
Hardcoded text remains properly displayed.
</p>
</div>
<div class="wrapper">
<p class="about-text">
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<?php echo the_content(); ?>
<?php endwhile; ?>
<?php else: ?>
<?php endif; ?>
</p>
</div>