Sutherland Boswell
Forum Replies Created
-
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Not Displaying ThumbnailBecause you’re using
the_post_thumbnail()it will use whatever size is defined in functions.php, so check out the documentation on the_post_thumbnail. You may need to use this plugin to regenerate the new thumbnail sizes.Forum: Plugins
In reply to: [Video Thumbnails] Array error on line 408 in video-thumbnails.phpTry opening the plugin and replacing this section on line 408:
if (in_array($post_type, $video_thumbnails_post_types) OR $post_type == $video_thumbnails_post_types) {with this:
if (in_array($post_type, (array) $video_thumbnails_post_types) || $post_type == $video_thumbnails_post_types) {Let me know if this fixes your problem and I’ll include it in the next update!
Forum: Plugins
In reply to: Plugin: Video Thumbnails never finds thumbnailsIt looks like Videozoom uses a custom field to store the embed code, and the plugin only searches the body of the post by default.
The solution is to open the plugin in the editor and find this
// Gets the post's content $post_array = get_post($post_id); $markup = $post_array->post_content; $markup = apply_filters('the_content',$markup); $new_thumbnail = null;and replace it with
// Gets the post's content $video_key = 'video'; $markup = get_post_meta($post_id, $video_key, true); $new_thumbnail = null;You’ll have to change the value of $video_key = ‘video‘ to the name of the custom field Videozoom uses, but since it’s a premium theme I have no idea what they’ve named it.
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] support for BambuserI just contacted them about API access, so it might be possible to add support.
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Not working after reinstallThe thumbnails show on the category page on one of your sites but not the category page of another with the same theme? If they’re in the library and set as the featured image, the plugin is doing everything it can. Try uploading any image and setting it as the featured image, if that image doesn’t appear on the category page then it’s something with the theme.
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Can't Find YouTube Thumbnailsmrmclen,
I think you’re on the right track, but if the plugin only stores the YouTube ID in the custom field, it doesn’t realize it’s a YouTube ID. It should be easy to fix this though by changing the line that sets $markup to a value that includes the rest of the URL. Just replace this one line in your current changes:
$markup = 'http://youtube.com/watch?v=' . get_post_meta($post_id, $video_key, true);Let me know if it works!
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Not working after reinstallIf you edit your theme, you can add a meta tag that notifies Facebook about your image. Put the following somewhere in the <head></head> section:
<?php if (is_single() && ( $video_thumbnail = get_video_thumbnail() ) != null ) { ?><meta property="og:image" content="<?php echo $video_thumbnail; ?>" /><?php } ?>Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Not working after reinstallThis is happening because the thumbnail URL is saved as a custom field with the post. When deleting the images from the media library, the custom field information is left behind. When scanning past posts, it’s seeing that the custom field already has a URL.
Here’s what you should try. Open the plugin with the editor and look for this section:
function video_thumbnails_past_callback() { global $wpdb; // this is how you get access to the database $post_id = $_POST['post_id']; echo get_the_title($post_id) . ' - '; if ( ($video_thumbnail=get_video_thumbnail($post_id)) != null ) { echo '<span style="color:green">✔</span> Success!'; } else { echo '<span style="color:red">✖</span> Couldn\'t find a video thumbnail for this post.'; } die(); }Now replace it with the code below, which adds in the delete_post_meta line:
function video_thumbnails_past_callback() { global $wpdb; // this is how you get access to the database $post_id = $_POST['post_id']; echo get_the_title($post_id) . ' - '; delete_post_meta($post_id, '_video_thumbnail'); if ( ($video_thumbnail=get_video_thumbnail($post_id)) != null ) { echo '<span style="color:green">✔</span> Success!'; } else { echo '<span style="color:red">✖</span> Couldn\'t find a video thumbnail for this post.'; } die(); }This should clear out the custom field before searching. Remove the line once you’re done so that if you ever need to scan old posts again you won’t be doubling images.
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] Can't Find YouTube ThumbnailsYep, the plugin only searches the main content of the post. To fix this, replace these lines:
// Gets the post's content $post_array = get_post($post_id); $markup = $post_array->post_content; $markup = apply_filters('the_content',$markup); $new_thumbnail = null;with:
// Gets the post's content $video_key = 'video'; $markup = get_post_meta($post_id, $video_key, true); $new_thumbnail = null;You’ll have to change the value of $video_key = ‘video’ to the name of your custom field, but this should fix it as long as the field contains a full YouTube url.
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails]Page URL Dailymotion supportIncluded this in 1.7.4, thanks again!
Forum: Plugins
In reply to: [Video Thumbnails] [Plugin: Video Thumbnails] DailyMotion not WorkingJust released version 1.7.4 which includes this fix
My guess is that there’s a conflict with another plugin, can you provide a list of the plugins being used?
Forum: Plugins
In reply to: [Video Thumbnails] Not pulling thumbnails from custom post typeSo you’re putting the embed code into a custom meta box? Currently only the post body itself it searched, but you should be able to use it with your custom meta box by replacing these lines:
// Gets the post's content $post_array = get_post($post_id); $markup = $post_array->post_content; $markup = apply_filters('the_content',$markup); $new_thumbnail = null;with:
// Gets the post's content $video_key = 'video'; $markup = get_post_meta($post_id, $video_key, true); $new_thumbnail = null;You may have to tweak the value of $video_key = ‘video’; but I think this should work. Let me know your results.
As a premium theme, I can’t test Genesis myself, but the first thing I would do is try temporarily switching to a different theme and seeing if the problem still exists. My first guess is that something else is going on, but I’m not familiar with Genesis.
Forum: Plugins
In reply to: [Video Thumbnails] Not pulling thumbnails from custom post typeCan you try embedding it the same way but with the standard post type? My first suspicion is that something else is the problem. If it doesn’t work there either, let me know how you’re embedding the videos (the embed code or the plugin you’re using).