Yes, you’ll need to enter something in “custom field” if your theme has the embed code in a separate field. Somewhere in your theme’s code you should find something like get_post_meta($post->ID, 'key');, but ‘key’ will be equal to something else like ’embed_code’, and that is what you’ll enter in the custom field setting. If you can’t find what this value should be, ask the theme’s creator what the title of the custom field should be.
Hi Boswell!
Thanks for your reply.
I finalle got the name of the custom filed from the theme people:
video_html
However, when I try using this, it still doesn’t generate the thumbnail. Do you have any ideas what could be the reason for this?
Thanks again for your assistance!
Ximena
Make sure the “portfolio” post type is enabled in the plugin’s settings. Can you share an example of the html you’re using for a video?
Yeah Portfolio was already enabled.
Here is an example:
<iframe width=”640″ height=”360″ src=”http://www.youtube.com/embed/BF_x3_0eLVI” frameborder=”0″ allowfullscreen></iframe>
Just videos from youtube really.
They could be setting it as a hidden custom field, which means there’s actually an underscore at the beginning. Try setting it to _video_html
Hello, sorry for bumping an old thread.
I think I am on the same situation and add to that I can’t access the Setting page for this plugin. Maybe it is a plugin conflict issue, but I don’t think I can deactivate the other plugins (all are important).
Is there a way to “bypass” the setting page? I look at the code and found this:
<input name="video_thumbnails_custom_field" type="text" id="video_thumbnails_custom_field" value="<?php echo get_option( 'video_thumbnails_custom_field' ); ?>" />
at the bottom and this near the top:
if ( $video_key = get_option( 'video_thumbnails_custom_field' ) ) {
$markup = get_post_meta( $post_id, $video_key, true );
I believe this is where we are inputting the custom field’s name? How do I “bypass”, so I can get my custom field name without opening the setting page? I am not good enough in PHP..
Other than that, the plugin works fine if I directly embed the video to the post.