Support » Plugin: Featured Video Plus » Play video in excerpt

  • Hello,

    The plugin looks like what I need. But I cannot get it to work like I want.

    I show excerpts with featured images on a category page.

    How can i select the video will play there? Its working in the single post etc.. but I want it to be able to play in the excerpts part.

    I hope you can give me an advice!

    regards JAP

Viewing 2 replies - 1 through 2 (of 2 total)
  • ThemeSumo


    You would need to modify your theme code to display the video.

    Within your archive.php (or category.php) file I would expect to see the_excerpt() being referenced, you would swap this code for the code that displays the video.

    This depends entirely on the theme you’re currently using.

    Thread Starter rheajap



    Thank you for your answer. I didn’t think about the archive.php or category.php to look overthere.

    What I did find out was that its possible to show the youtube player in the excertp by placing the youtube at the top of my blogpost. Problem what showed up was the video was way to big for the excerpt.

    I noticed I can give the youtube player a size and other commands in the link structure via jetpack but that did not work out.

    Finally I did find a sollution for reaching what I want. I do not know if this is the best sollution but for now it is working.

    I placed the code next code in functions.php of my childtheme.

    add_filter('template_redirect', 'custom_content_width_embed_size');
    function custom_content_width_embed_size($embed_size){
    if ( is_category() || is_attachment() ) {
    global $content_width;
    $content_width = 420;
    //global $content_height;
    //$content_height = 250;

    Now the player’s heigth is just as high as the featured image on the excerpt.

    I am thinking of showing the video as a featured image but I did not find the time to investigate if that is possible.

    I use twenty sixteen theme. I will go look into the two files you described to see if there is a better way to do this.



Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Play video in excerpt’ is closed to new replies.