I am using a script I obtained from a Blog that displays 3 wordpress posts on a non-wordpress page as follows:
<div class="wrapper row">
<?php
define('WP_USE_THEMES', false);
require('news/wp-load.php');
query_posts('showposts=3');
?>
<?php while (have_posts()): the_post(); ?>
<div class="col-sm-4">
<h2><?php the_title(); ?></h2>
<p><em>Posted <?php the_date(); ?> by <?php the_author(); ?></em></p>
<div class="image"><?php
if ( has_post_thumbnail() )
the_post_thumbnail( 'thumbnail' );
else
echo '<img src="news/wp-content/uploads/2015/06/150x150-2.jpg" alt="Example Image" title="Example" width="100px"/>';
?></div>
<p><?php the_excerpt(); ?></p>
<p><a href="<?php the_permalink(); ?>">Read more...</a></p>
</div><!-- /.col-sm-4 -->
<?php endwhile; ?>
</div>
I have currently got the loop ( 3 posts ) in a bootstrap grid repeating the 'col-sm-4' div across the 12 column grid.
What I would liked to do is have the first post in a 'col-sm-6' div and the other two in a 'col-sm-3' div.
Is there a way I can adapt this code to do this?
Thanks in advance!