How to return the basic url of a thumbnail?
-
Hi,
I’m trying to add a function where the ‘full’ thumbnail from the thumbnail function in WP 2.9+ is returned, but I only want the location of the thumbnail. Ergo, just https://mysiteisco.ol/thumbnail.jpg
I’ve tried
if ( function_exists('has_post_thumbnail') && has_post_thumbnail($id) ) { $thumbnail = get_the_post_thumbnail($post->ID, 'full' );
But that returns something which doesn’t work. Can anybody tell me what to use instead of get_the_post_thumbnail?
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘How to return the basic url of a thumbnail?’ is closed to new replies.