Struggling to eliminate the unwanted return in my Wordpress loop. The layout is ruined by trying to display a thumbnail next to the entry:
https://i.sstatic.net/j3Ozz.png
Even using padding for the entry made it worse!
Here's the code snippet that I have tried:
#thumbnail_single {
float: left;
}
.entry_single {
padding: 20px;
}
<div id="single">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 class="title_single"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div id="thumbnail_single">
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
</div>
<div class="entry_single">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
</div>
<!-- single -->
Your assistance with this issue would be greatly appreciated!