[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. 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.
Viewing 2 replies - 1 through 2 (of 2 total)
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.