Support » Plugin: Featured Video Plus » I need to only change the Featured images not the thumbnails

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same need and this would make the plugin just perfect !

    I think a few other people may be interested (http://wordpress.org/support/topic/creates-featured-image-but-not-video?replies=6)

    The thing is, in media setting we can only choose between displaying video everywhere or individually with shortcode.
    There should be an option to display video instad of featured image only on posts.

    Yeah, that’s what I’m looking for.
    I just need the featured image replaced, but not the thumbnails.

    Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    Hey guys, a google search for this exact question brought me here. Failing to find an answer, I had a look at the code and figured it out.

    Basically, the behavior of featured-video-plus relies on options. In my case, I needed to display the featured video on single posts, but not in archives.

    Here’s the solution that worked for me:

    //filter the option - see options.php
    add_filter( 'pre_option_fvp-settings', 'wwm_filter_fvp_settings' );
    function wwm_filter_fvp_settings( $options )
    {
     if ( ! is_single() ) {
      $options['usage'] = 'manual';
     }
     return $options;
    }

    Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    In addition to the above, the filter needs to be added at an appropriate time. If the filter is added when the admin interface is loaded things may get inadvertently hosed up. I used the pre_get_posts action to conditionally add the filter…
    If the filter is added too late, layout and formatting may very well suffer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I need to only change the Featured images not the thumbnails’ is closed to new replies.