WordPress.org

Ready to get started?Download WordPress

Forums

Video Thumbnails
[resolved] Automatic Youtube Video Posts Plugin - Custom Field (11 posts)

  1. UnexpectedWebsites
    Member
    Posted 2 years ago #

    The Plugin was recently updated and I am having trouble with the custom field feature. I have Automatic Youtube Video Posts Plugin installed and I am trying to get them to work together. I had no problem with the older version, but the newer version I can't identify what I should put in the custom field spot.

    http://wordpress.org/extend/plugins/video-thumbnails/

  2. microo12345
    Member
    Posted 2 years ago #

    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.

  3. Sutherland Boswell
    Member
    Plugin Author

    Posted 2 years ago #

    @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 = 'http://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

  4. UnexpectedWebsites
    Member
    Posted 2 years ago #

    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

  5. microo12345
    Member
    Posted 2 years ago #

    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

  6. Sutherland Boswell
    Member
    Plugin Author

    Posted 2 years ago #

    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);

  7. microo12345
    Member
    Posted 2 years ago #

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

  8. dsdmdesign
    Member
    Posted 1 year ago #

    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.

  9. BanditSiix
    Member
    Posted 1 year ago #

    You'll have to change the line
    $markup = get_post_meta( $post_id, $video_key, true );
    to
    $markup = 'http://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

  10. HEAT22
    Member
    Posted 1 year ago #

    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.

  11. HEAT22
    Member
    Posted 1 year ago #

    Hate when I do this, nevermind: video_thumbnails_custom_field

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic