WordPress.org

Forums

Video Thumbnails
2 images for the same post (17 posts)

  1. ze.n
    Member
    Posted 2 years ago #

    hi
    thx for the plugin. i'm having trouble with the normal thumbnails of images and video thumbnails... so i'm getting 2 images for the same post. can you give me a hand ?

    http://wordpress.org/extend/plugins/video-thumbnails/

  2. ze.n
    Member
    Posted 2 years ago #

    how can i undo the video thumbs ?

  3. ze.n
    Member
    Posted 2 years ago #

  4. Sleerts
    Member
    Posted 2 years ago #

    I removed line #18 of TwentyTwelve content.php
    <?php the_post_thumbnail(); ?>

    It has corrected it. However, I don't have any posts that are just using a featured image instead of a video thumbnail.

    Anyone confirm this resolves it?

  5. ze.n
    Member
    Posted 2 years ago #

    hi
    thx for the reply. i'm using suffusion theme on my site. i tried to edit but my php knowledge is reduced. any hint ?

  6. Sleerts
    Member
    Posted 2 years ago #

    Technically I'm not giving you really a good fix...it's more of a work around. Not familiar with that theme...plus unless you've setup a child theme if your theme is updated the tweak will be lost. They've gotta have a content.php file or they re-named it. Use Notepad ++ and search for thumbnail, should be similar to string I posted above.

  7. ze.n
    Member
    Posted 2 years ago #

    i've been looking and it's quite different but i can copy the php file if it´s ok for you

  8. ze.n
    Member
    Posted 2 years ago #

    the code you gave me is different but i can copy the content.php and paste it here if that's ok for you

  9. Sleerts
    Member
    Posted 2 years ago #

    Sure

  10. ze.n
    Member
    Posted 2 years ago #

    <?php
    /**
    * Default post format applied to all types of posts.
    *
    * @since 3.8.4
    * @package Suffusion
    * @subpackage Formats
    */
    global $post, $suf_show_content_thumbnail, $suffusion_cpt_post_id;
    if (isset($suffusion_cpt_post_id)) {
    $cpt_image = suffusion_get_post_meta($suffusion_cpt_post_id, 'suf_cpt_show_full_thumb', true);
    }

    $show_thumbnail = isset($suffusion_cpt_post_id) ? $cpt_image : $suf_show_content_thumbnail != 'hide';
    global $suf_excerpt_thumbnail_alignment, $suf_excerpt_thumbnail_size;
    if (has_post_thumbnail($post->ID) && $show_thumbnail) {

    //Could use suffusion_get_image(), but the theme uploader recommends use of the_post_thumbnail at least once in the theme...
    //echo suffusion_get_image(array('no-link' => true));
    if ($suf_excerpt_thumbnail_size == 'custom') { $thumbnail = get_the_post_thumbnail(null, 'excerpt-thumbnail');

    }
    else {
    $thumbnail = get_the_post_thumbnail(null, $suf_excerpt_thumbnail_size);
    }
    echo "<div class='$suf_excerpt_thumbnail_alignment-thumbnail'>" . $thumbnail . "</div>";
    }

    $continue = __('Continue reading »', 'suffusion');
    the_content($continue);

  11. Sleerts
    Member
    Posted 2 years ago #

    Currently in the process of learning php...

    That being said..I'd go and ask for assistance in removing the featured image in suffusion.

    If I had to GUESS, I'd remove this and see what happens -
    if (has_post_thumbnail($post->ID) && $show_thumbnail)

    Make sure you backup the php file so that you can re-upload it via FTP if it crashes and burns.

  12. ze.n
    Member
    Posted 2 years ago #

    ok. seeing what happens...

  13. ze.n
    Member
    Posted 2 years ago #

    nothing happened !

  14. Sleerts
    Member
    Posted 2 years ago #

    Remove all of this -

    if (has_post_thumbnail($post->ID) && $show_thumbnail) {
    
    //Could use suffusion_get_image(), but the theme uploader recommends use of the_post_thumbnail at least once in the theme...
    //echo suffusion_get_image(array('no-link' => true));
    if ($suf_excerpt_thumbnail_size == 'custom') { $thumbnail = get_the_post_thumbnail(null, 'excerpt-thumbnail');
    
    }
    else {
    $thumbnail = get_the_post_thumbnail(null, $suf_excerpt_thumbnail_size);
    }
    echo "<div class='$suf_excerpt_thumbnail_alignment-thumbnail'>" . $thumbnail . "</div>";
    }

    See what happens.

  15. ze.n
    Member
    Posted 2 years ago #

    still the 2 images

  16. Sleerts
    Member
    Posted 2 years ago #

    Sorry :(

    I'd kick it to your theme support page on how to delete the featured thumbnail or wait for this developer to official let us know.

  17. ze.n
    Member
    Posted 2 years ago #

    ok Sleerts thanks for all the help

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Video Thumbnails
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.