Title: [Plugin: Video Thumbnails] Using thumbnails in recent posts plugin
Last modified: August 19, 2016

---

# [Plugin: Video Thumbnails] Using thumbnails in recent posts plugin

 *  Resolved [jsteez](https://wordpress.org/support/users/jsteez/)
 * (@jsteez)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-video-thumbnails-using-thumbnails-in-recent-posts-plugin/)
 * The thumbnails are working fine in my template files, but I want to use them 
   in the [recent posts plugin](http://wordpress.org/extend/plugins/recent-posts/).
   I tried several ways but the images are not showing up.
 * Here’s a piece of my edited code:
 *     ```
       if ( $posts ) {
       		foreach ( $posts as $post ) {
       			$post_title = $post->post_title;
       			$permalink = get_permalink( $post->ID );
       			$thumbnail = get_video_thumbnail( $post->ID );
       			$output .= $before . '<div id="laatsteBanners"><img src="<$thumbnail" width=50 height=50 /><a href="' . esc_url( $permalink ) . '" rel="bookmark" title="Permanent Link: ' . esc_attr( $post_title ) . '">' . esc_html( $post_title ) . '</a></div>';
       ```
   
 * When I put a link to a normal image in the img src it works. Is it even possible
   to use this plugin from another plugin? A little help would be appreciated.
 * [http://wordpress.org/extend/plugins/video-thumbnails/](http://wordpress.org/extend/plugins/video-thumbnails/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Sutherland Boswell](https://wordpress.org/support/users/sutherlandboswell/)
 * (@sutherlandboswell)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-video-thumbnails-using-thumbnails-in-recent-posts-plugin/#post-1971393)
 * Try this out.
 *     ```
       if ( $posts ) {
       		foreach ( $posts as $post ) {
       			$post_title = $post->post_title;
       			$permalink = get_permalink( $post->ID );
       			$thumbnail = get_video_thumbnail( $post->ID );
       			$output .= $before . '<div id="laatsteBanners"><img src="' . $thumbnail . '" width=50 height=50 /><a href="' . esc_url( $permalink ) . '" rel="bookmark" title="Permanent Link: ' . esc_attr( $post_title ) . '">' . esc_html( $post_title ) . '</a></div>';
       ```
   
 *  Thread Starter [jsteez](https://wordpress.org/support/users/jsteez/)
 * (@jsteez)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-video-thumbnails-using-thumbnails-in-recent-posts-plugin/#post-1971552)
 * It worked, thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Video Thumbnails] Using thumbnails in recent posts plugin’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/video-thumbnails_3e6f7f.svg)
 * [Video Thumbnails](https://wordpress.org/plugins/video-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/video-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-thumbnails/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jsteez](https://wordpress.org/support/users/jsteez/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-video-thumbnails-using-thumbnails-in-recent-posts-plugin/#post-1971552)
 * Status: resolved