Viewing 10 replies - 1 through 10 (of 10 total)
  • Having problems also with update. I added the word “thumb” to custom field feature doesn’t work or add video thumbnail to post. Pligin also quits finding thumbnail from Youtube. Removing the word “thumb” from field then save the plugin find thumbnails again.

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    @unexpectedwebsites had you modified the code in a previous version? Automatic Youtube Video Posts only stores the YouTube video’s ID instead of an embed code or URL, which means the plugin doesn’t know it’s from YouTube. You’ll have to change the line
    $markup = get_post_meta( $post_id, $video_key, true );
    to
    $markup = 'https://youtube.com/watch?v=' . get_post_meta( $post_id, $video_key, true );
    and set the custom field value to _tern_wp_youtube_video. Let me know if that doesn’t work.

    @microo12345 you should only enter something in the custom field setting if your video is being stored in a custom field instead of the regular post content

    Thread Starter UnexpectedWebsites

    (@unexpectedwebsites)

    Thanks Again Sutherland you solution worked without fail. I shouldn’t have anymore problems now. I will see if it automatically does it now. Keep up the updates.

    I do have one more question though, if you release another update in the future and I automatically update the plugin will the change to the php script remain or will I have to change it again.

    Thanks, Again
    Sent you another small donation through paypal.

    Nick

    Thanks, then is there a way for your plugin to add thumbnail url to to custom field value. My template need custom field name “thumb” to contain the url of the thumbnail. Now I right click on the thumbnail that your plugin program finds, get the url and paste into value for thumb and then create the custom field. I need to do that for every video post for the thumbnail to display on front page on website. My website is mmavideoplays.com

    Mike

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    The thumbnail is already stored in a custom field named _video_thumbnail, so I’d recommend modifying the theme to use that field instead. You should find something like get_post_meta($post->ID, "thumb", true); in your theme files which could be changed to get_post_meta($post->ID, "_video_thumbnail", true);

    Wow Thanks, that’s the info I needed. Changed everywhere on the theme and problem solved.

    Will making this change still allow me to get thumbnails automatically for other videos from other sources? For instance, I use the Automatic Youtube plugin, but I also manually embed Blip.tv videos in some pages.

    You’ll have to change the line
    $markup = get_post_meta( $post_id, $video_key, true );
    to
    $markup = ‘https://youtube.com/watch?v=’ . get_post_meta( $post_id, $video_key, true );
    and set the custom field value to _tern_wp_youtube_video. Let me know if that doesn’t work.

    Suherland, thanks for the great plugin. Question I have as a non programmer, which file am I replacing the code mentioned above to get the Thumbnails to work in AYVP plugin as discussed?

    Oh by the way I’m using the SoMoSocial child theme with Genesis. It does support featured images.

    Thanks

    Can anyone give me the exact name of the field in the database to set “_tern_wp_youtube_video”? I get a blank page on the plugin setting page but it was at least working on the single edit page before I de-actived the plugin trouble-shooting but lost all my settings.

    Hate when I do this, nevermind: video_thumbnails_custom_field

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Video Thumbnails] Automatic Youtube Video Posts Plugin – Custom Field’ is closed to new replies.