I'm having a problem with displaying the_content()
of my custom post type. Apparently when I use the code in my single-project.php page, it outputs with a div
showing the post title. Why does this happen and how do I get rid of it?
<?php if ( get_the_content() ) : ?>
<div class=" content post__text">
<?php the_content(); ?>
</div>
<?php
endif;?>
output of above code:
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis maximus urna. Vestibulum vel nisl fermentum, ultrices felis quis, euismod massa. Sed tristique enim ut mauris cursus, non placerat est luctus. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. </p>
<div> Test Project Title</div>