I'm trying to integrate a custom slider using a 3rdParty jQuery plugin onto the homepage.
I'm almost there. I need the original featured images and not the cropped ones.
<?php if (is_home()): ?>
<?php
$featured_posts = new WP_Query(array(
'post_type' => 'post',
'showposts' => 5,
'tag' => 'featured'
));
?>
<div>
<?php while($featured_posts->have_posts()): $featured_posts->the_post(); ?>
<?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'featured-image'); ?>
<a href='<?php the_permalink(); ?>'>
<img src="<?php echo $image[0]; ?>" style="width:940px;height:500px" />
</a>
<?php endwhile; ?>
</div>
<?php endif ?>
The problem here is that all the images are of 516x340 dimension. How I get the original dimensioned image ?