UnexpectedWebsites
Member
Posted 3 months 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/
microo12345
Member
Posted 3 months 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.
@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
UnexpectedWebsites
Member
Posted 3 months 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
microo12345
Member
Posted 3 months 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
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);
microo12345
Member
Posted 3 months ago #
Wow Thanks, that's the info I needed. Changed everywhere on the theme and problem solved.