WordPress.org

Ready to get started?Download WordPress

Forums

Automatic Youtube Video Posts Plugin
Images replaced by this plugin (6 posts)

  1. hermantf
    Member
    Posted 1 year ago #

    When I activate this plugin and put it to use, it replaces the images in another area of my site to the image it creates for the post.

    In other words, this plugin creates the post perfectly, but in another area of my blog, the images that were there are replaced by the image that this plugin uses as its default on the post it creates.

    This only happens when it is the most current post. As long as another post is more recent, this does not happen.

    Any insights as to why this might be happening?

    Thanks

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

  2. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    The image is replaced on a post that has a video assigned to it or a post that does not have a video assigned to it?

  3. hermantf
    Member
    Posted 1 year ago #

    No video assigned. It is affecting a music player that shows album artwork. The album artwork is replaced by the default image that this plugin creates. But only if it is the most recent post.

    Thanks!

  4. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    Weird. Is there any information when editing the post in the YouTube ID field?

  5. hermantf
    Member
    Posted 1 year ago #

    No.

  6. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    That's the part I don't understand. As you can see below the plugin checks to see if there is a YouTube video associated with the post before it hijacks the thumbnail:

    $m = get_post_meta($post->ID,'_tern_wp_youtube_video',true);
    if($m) {
    	$html = '<img src="'.get_bloginfo('wpurl').'/wp-content/plugins/automatic-youtube-video-posts/tools/timthumb.php?src=http://img.youtube.com/vi/'.$m.'/0.jpg&w='.$w.'&h='.$h.'&zc='.$c.'" alt="" title="'.$i.'" />';
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.