Hey thanks for your quick answer.
unfortunately the website is under construction on my computer, i have no version online so i can’t give you an access.
it’s a WP 3.8 version with Mixfolio theme from GraphPaperPress and video thumbnail plugin.
i have use this combinaison several times.
i try to explain you what i did ??
with this modification below i have all video_thumbnails instead of these from the path but they are all identical it’s the thumbnails of the same post
Modifications i did in the file thumbnailer.php
/**
* Get thumbnails when post is displayed
*/
function wp_rp_get_img_tag($src, $alt, $size=null) {
if (!$size || !is_array($size)) {
$size = array(WP_RP_THUMBNAILS_WIDTH, WP_RP_THUMBNAILS_HEIGHT);
}
$size_attr = ($size[0] ? ('width="' . $size[0] . '" ') : '');
if ($size[1]) {
$size_attr .= 'height="' . $size[1] . '" ';
}
//return '<img src="'. esc_attr($src) . '" alt="' . esc_attr($alt) . '" '.$size_attr.'/>';
return '<img src="'. get_video_thumbnail($video_thumbnail) . '" alt="' . esc_attr($alt) . '" '.$size_attr.'/>';
}
For example i use in my theme on category.php file this code to show the video_thumbnail and it works well
in the original category.php file there was this code to show the featured thumbnail before i use a second one image.
<?php
if ( has_post_thumbnail() )
the_post_thumbnail();
else
echo '<img src="'.get_stylesheet_directory_uri().'/images/image.jpg" />';
?>
i have change with this code and that’s what i try to do withe related posts plugin
<?php
if( ( $video_thumbnail = get_video_thumbnail() ) != null ) {
echo "<img src='" . $video_thumbnail . "' class='attachment-post-thumbnail wp-post-image' />"; }
?>
thanks for your help ??
best,
Hugo