• The echo get_the_post_video_image function is not working for me.

    Can anyone else confirm that it is working or know how to fix my issue?

    Here’s the code that I am using the function in:

    if ( has_post_video( $post_id ) == true) {
    echo get_the_post_video_image( $post_id, array( 100, 100));
    } else {
    echo get_the_post_thumbnail ( $post_id, array( 100, 100), array(‘class’ => ‘alignleft’));
    }

    This code is in a while statement that grabs the $post_id so that is not an issue.
    The normal get_the_post_thumbnail function works like normal.

    For posts using the featured video plus option in the post settings using youtube url do not display a picture when using this function. At least for me.

    I can’t find anywhere in the code or function code on why this wouldn’t be working properly.

    Anyone with any insight?

    https://wordpress.org/plugins/featured-video-plus/

  • The topic ‘echo get_the_post_video_image function issue’ is closed to new replies.