Image not attached to video
-
Hi there,
I’m trying to retrieve the video thumbnail otherwise display the mime icon instead. See code below.
if (wp_attachment_is_image( $attach_id)) {
$image = wp_get_attachment_image_src( $attach_id, ‘thumbnail’ );
$image = $image[0];
} else {
$image = wp_mime_type_icon( $attach_id );However every time the mime is displayed instead, which means the image is not attached to the video? This cose used to work but for some reason it no longer does. What am I doing wrong and how do I display the thumbnails generated by your plugin? Many thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Image not attached to video’ is closed to new replies.