On the main page of my blog, I have a section in the header with post thumbnails(140x170px) linking to specific categories. Below within the actual blog loop, I also have post previews- an image 440x265px, and the first paragraph or so of content.
I'm wondering how I can specify the size of the post preview image, without effecting a) the post thumbnails and b) the size of the image that will appear when the full post is viewed.
Header thumbnail:
<div class="ootd-stream">
<?php $new_query = new WP_Query( 'cat=your_category_id&showposts=2' );
if( $new_query->have_posts() ): while( $new_query->have_posts ): $new_query->the_post();
the_post_thumbnail();
endwhile;
endif;
wp_reset_query();
?>
<p>outfit of the day</p>
</div><!-- end ootd-stream -->
Loop:
<div id="blog">
<div class="preview">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post-image">
<img src="http://placehold.it/440x265" alt="cait barker post image" />
</div><!-- end blog-image -->
<div class="post">
<h2><?php the_title() ;?></h2>
<span class="post-preview">
<?php the_excerpt('read more...'); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts to list</p>
<?php endif; ?>
</span><!-- end post-preivew -->
<p class="post-meta"><span style="font-family: amatic;">>></span> Posted on <?php the_date('M-d-y'); ?> <span style="font-family: amatic;">>></span> <?php the_tags('tags: ', ', ', '<br />'); ?></p><!-- end post-meta -->
</div><!-- end post -->
</div><!-- end preview -->
</div><!-- end blog -->
Is this possible? What's the best way to achieve this?