Support » Plugin: Video Thumbnails » [Plugin: Video Thumbnails] thumbnails via a custom field

  • Hi Sutherland, great plugin. Many thanks for this contribution.

    I adapted one of your functions to grab a video ID from a custom field (the ‘hZBPgqbXeQA’ bit of for instance) and echo to my theme. Very basic (I’m a cut and paste coder!), but worked for what I was trying to achieve. Hopefully may help someone else.

    function getBliptvThumb() {
    global $post;
    $blipID = get_post_meta($post->ID, 'Video', true);
    $xml = simplexml_load_file("$blipID?skin=rss");
    $result = $xml->xpath("/rss/channel/item/media:thumbnail/@url");
    $thumbnail = (string) $result[0]['url'];
    echo '<img src="'.$thumbnail.'" border="0" />';

    Thanks again

  • The topic ‘[Plugin: Video Thumbnails] thumbnails via a custom field’ is closed to new replies.