• George

    (@quantum_leap)


    I am importing video posts through an addon that also generates an extenral image video URL path to YouTube, Vimeo, etc. The image URL is saved in the postmeta table with a “VideoImage” meta key name. Is it possible to display that image as a thumbnail image?

Viewing 2 replies - 1 through 2 (of 2 total)
  • wp-content/plugins/recent-posts-widget-extended/includes/functions.php and code above line 155 (// Display default image.):

    elseif ( ! empty( $args['thumb_default'] ) && get_post_meta( get_the_ID(), 'VideoImage', true ) ) :
    	$html .= '<a class="rpwe-img" href="' . esc_url( get_permalink() ) . '"  rel="bookmark">';
    		$html .= '<img class="' . esc_attr( $args['thumb_align'] ) . ' rpwe-thumb" src="' . get_post_meta( get_the_ID(), 'VideoImage', true ) . '" alt="' . esc_attr( get_the_title() ) . '" width="' . esc_attr( $args['thumb_width'] ) . '" height="' . esc_attr( $args['thumb_height'] ) . '">';
    	$html .= '</a>';

    wp featured image or VideoImage or default image

    Thread Starter George

    (@quantum_leap)

    Yes man! It worked great! Thank you! Just a though for next update, maybe you could include an input field in the widget for inserting a custom meta to replace the featured image. That would be great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbnail image from custom meta?’ is closed to new replies.