Outputing Thumbnail URL WordPress

June 4th, 2014 by
Replace the “THUMB SIZE” with the thumb size category name you want to output.
			<?php 
 if ( has_post_thumbnail()) {
   $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'THUMB SIZE');
   echo '$large_image_url[0]';
 }
?>

Post a Comment

You must be logged in to post a comment.

Cached at: 2024-12-26 10:04:26am