[Plugin: NextGEN Gallery] Find URL of Featured Image
-
I am using NextGen Gallery for all images on my site including the featured images. Now while I can return the featured images using:
the_post_thumbnail( 'thumbnail' )
I need to be able to adjust the size of this image slightly. Using the arrary feature hasn’t worked as it returns a resized version of the full image.
What I want to do is somehow return the URL of the featured image only and not the rest of the code that comes with the_post_thumbnail. This is easy enough when dealing with images through the WordPress Media library, using:
$image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'thumbnail'); $image_url = $image_url[0];
but with the NextGen Gallery images this isn’t return anything.
Any ideas?
https://www.ads-software.com/extend/plugins/nextgen-gallery/
- The topic ‘[Plugin: NextGEN Gallery] Find URL of Featured Image’ is closed to new replies.