Featured Video Plus
Echo Video Duration (1 post)

  1. Native Imaging
    Posted 1 year ago #

    I'm trying to echo the video duration if its available from youtube or vimeo. I'm not sure if there is an existing function for this hook, but would appreciate any help if anyone knows.

    <?php if (function_exists('has_post_video') ) :
                        $post_id = get_the_post_video_url( $post_id );
    					$video_time = $min + $sek; { ?>
                    <meta itemprop="embedUrl" content="<?php echo $post_id; ?>" />
                <span>Duration: <?php echo $video_time; ?></span>
                <?php } endif; ?>

    At the moment, the duration is displaying "0".

    Any thoughts on how to accomplish this?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Featured Video Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.