Hi I am using a script that displays related post to the particular blog post:
$tags = wp_get_post_tags($post->ID);
if ($tags) {
echo '';
$first_tag = $tags[0]->term_id;
$args=array(
'tag__in' => array($first_tag),
'post__not_in' => array($post->ID),
'showposts'=>5,
'caller_get_posts'=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</li>
<?php
endwhile;
}
}
But I want it to display a thumbnail image of the blog post as well. Every blog post I have a custom field with a image on. I want it to display this image resized to a thumbnail sized: 36px x 36px
Does anyone know how do I do this? Much help is appreciated
Thank you