WordPress.org

Forums

Automatic Youtube Video Posts Plugin
No thumbnail image? (16 posts)

  1. bfwick
    Member
    Posted 3 years ago #

    For some reason the thumbnail of the videos is not showing up on the posts and such please take a look and help.
    http://ronamonroe.com/
    Thanks,
    bfwick

    http://wordpress.org/extend/plugins/automatic-youtube-video-posts/

  2. mpraetzel
    Member
    Plugin Author

    Posted 3 years ago #

    There is a function you'll need to add to your active theme files to display your thumbnails. You can read about it here:
    http://www.ternstyle.us/products/plugins/wordpress/wordpress-automatic-youtube-video-posts/wordpress-automatic-youtube-video-posts-functions

  3. pookeyblow
    Member
    Posted 3 years ago #

    I want the thumbnail to be set as the featured image of the post.

    I know I have to use this line of code:
    <?php tern_wp_youtube_image(); ?>

    but where should I place the code?

  4. mpraetzel
    Member
    Plugin Author

    Posted 3 years ago #

    @pookeyblow,

    That depends on your theme. If your videos are displayed on the homepage you'll most likely edit the index.php or home.php files of your active theme. If your videos are displayed on category pages you'll most likely need to edit you theme's archive.php or category.php files.

  5. pookeyblow
    Member
    Posted 3 years ago #

    Let's say I want to do it on both. Where in the php files should I include the code?

    thanks for helping!

  6. mpraetzel
    Member
    Plugin Author

    Posted 3 years ago #

    Does you theme include functions like has_post_thumbnail and the_post_thumbnail?

  7. pookeyblow
    Member
    Posted 3 years ago #

    I found this in the functions.php:

    // 210px width images for the grid
    if ( function_exists( 'add_theme_support' ) )
    {
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 210 );
    }
    if ( function_exists( 'add_image_size' ) )
    {
    	add_image_size( 'homepage-thumb', 210 );
    }

    This is the theme I'm using: http://wpshower.com/themes/imbalance-2

    Do you think it will work?

  8. mpraetzel
    Member
    Plugin Author

    Posted 3 years ago #

    Your theme supports featured images but you'll need to find where in your theme's code the featured image is actually printed to the page.

  9. shaleshock
    Member
    Posted 3 years ago #

    Not being that much of a code person, I use a plugin to retrieve video thumbnails and use tham as featured images: http://sutherlandboswell.com/projects/wordpress-video-thumbnails/

  10. shaleshock
    Member
    Posted 3 years ago #

    The problem is, it finds the images when the post is published. I set my youtubeposts category NOT to appear on my home page, then I publoish, it fins the images, then I change the category so the video will be displayed in the video carousel on my home page.

  11. pookeyblow
    Member
    Posted 3 years ago #

    @ mpraetzel

    I have no idea where to start looking. Do you know what the code looks like so I can do a search?

    @ shaleshock

    Tried the plugin, but it seems like it won't work with the Automatic Youtube Video Posts Plugin?

  12. shaleshock
    Member
    Posted 3 years ago #

    @ pookeyblow

    I started a new this on this. http://wordpress.org/support/topic/plugin-automatic-youtube-video-posts-plugin-safe-mode-or-open_basedir-error-when-adding-new-channel

    Doesn't seem to make any diffeence whethe or not Video Thumbnails plugin is activated o not. As long as automatic-youtube-video-posts 3 is activated, some, but not all, of the featured images won't display. I am going to try a work-around.

  13. mpraetzel
    Member
    Plugin Author

    Posted 3 years ago #

    Try searching for:

    the_post_thumbnail

  14. elbeomar
    Member
    Posted 2 years ago #

    Hello mpraetzel,

    I am using the Innovation +2 Science theme that uses a custom post, that you have to manually add images to the blog section of the theme. I cant find "post_thumbnail" so that I can add the function <?php tern_wp_youtube_thumb(); ?>,anywhere in the template files. Do you have any suggestions on how to solve this problem?

  15. Japh
    Member
    Posted 2 years ago #

    Hello Elbeomar,

    You may find it easier to get support from the author of the theme itself to help you implement this. You can contact them from their ThemeForest profile page here: http://themeforest.net/user/DigitalCavalry

  16. mpraetzel
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the suggestion @Japh. @elbeomar, any luck with that approach?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Automatic Youtube Video Posts Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic