I have been searching for a number of hours now and have tried to figure it out myself however I am having great difficulties resolving it. Basically, I have a wordpress loop in which I have, on my homepage, the post thumbnails displayed. They all appear vertically and I want it so that at least 3 images appear next to each other before starting a new line.
The code for the page is:
<?php
get_header();?>
<div id="primary">
<div id="content" role="main">
<?php
$mypost = array('post_type' => 'photo_posts');
$loop = new WP_Query($mypost);
?>
<?php while ($loop->have_posts()):$loop->the_post();?>
<article id="post-<?php the_ID();?>" <?php post_class(); ?>>
<header class="entry-header">
<!-- Display featured image -->
<div>
<a href="<?php echo $permalink = get_post_permalink();?>"><?php the_post_thumbnail(array(230, 230)); ?></a>
</div>
</header>
<div class="entry-content"><?php the_content(); ?></div>
</article>
<?php endwhile; ?>
</div>
</div>
<?php get_footer(); ?>
CSS:
.container {
position: absolute;
padding-right: 20px;
width: 70%;
right: 0;
}
Any help is appreciated. Thanks!