Quote:
Originally Posted by Colmike7
This should get the URL of only the featured image:
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<stuff><img src='<?php echo $image[0]; ?>'/></stuff>
<?php endif; ?>
Edit: Might not be what you're looking for. Look at the reply above. 
|
Ya I know how to do all that but this is different. It's part of a function and I need to get all of the featured images from the media library. Displaying them individually isn't a problem.