Show an other thumbnail (video_thumbnail) instead of the featured_image
-
Hi,
i use 2 pictures on each post of my WP Videos Blog (the featured for the post and the video_thumbnail).
in my homepage for example i use this functioh to show the video_thumbnail :
<?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { echo "<img src='" . $video_thumbnail . "' class='attachment-post-thumbnail wp-post-image' />"; } ?>
i use “list_category_post” plugin in the posts but i would only show the video_thumbnail instead of the featured_image but it doesn’t works…
When i change in “Catlist.php” :
$lcp_thumbnail .= get_the_post_thumbnail(
by :
$lcp_thumbnail .= get_video_thumbnail(
i have as result not the picture but her file name :
- https://www.mywebtv.tv/wp-content/uploads/2013/03/mypicture-video.jpg
- <img src=”https://www.mywebtv.tv/wp-content/uploads/2013/03/mypicture-video.jpg” />
but i want to have this :
i don’t know how to get the picture instead of her name, i have try with echo but each time i have syntax errors.
can anybody help me ? ??
thanks,
https://www.ads-software.com/extend/plugins/list-category-posts/
- The topic ‘Show an other thumbnail (video_thumbnail) instead of the featured_image’ is closed to new replies.