samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

wp_get_attachment_image_src does not work for nextgen gallery post featured images #488

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
wp_get_attachment_image_src seems not to work with images from nextgen gallery 
that are set as featured.

I try to get the image src to use it as a thumbnail for facebook's sharing:
$thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID 
), 'large' );
        echo '<meta property="og:image" content="' . esc_attr( $thumbnail_src[0] ) . '"/>';

But when I use nextgen's image as featured, I get empty content for that meta 
tag.

Original issue reported on code.google.com by nowin...@gmail.com on 26 Mar 2012 at 8:17