0
Good morning guys, I’m making the loop using wordpress + bootstrap and at the time of shows the content the loop some posts as shown in the following image:
Follow the loop code:
<div class="container">
<div class="row">
<?php get_sidebar(); ?>
<div class="col-md-9">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="coluna-post">
<div class="thumbnail">
<?php
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb,'full'); //get img URL
$image = aq_resize( $img_url, 207, 292); //resize & crop img
?>
<img src="<?php echo $image ?>" />
<div class="caption">
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h4>
<p><?php the_excerpt(); ?></p>
</div>
</div>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php wp_pagenavi(); wp_reset_postdata(); ?>
</div>
</div>
</div>
As I am using bootstrap, only the div-post column I created css.. follows the code
.coluna-post{ float:left; width:260px; padding:10px; margin:10px;}
I think this is a flaw in my loop, but I’m not able to identify the problem. It’s already happening in some sites that create loops with images.
In my Wordpress settings in Reading is the following:
Some light at the end of the tunnel?