WordPress.org

Forums

Featured Video Plus
Echo Video Duration (1 post)

  1. Native Imaging
    Member
    Posted 10 months 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?

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

Reply

You must log in to post.

About this Plugin

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

About this Topic

  • RSS feed for this topic
  • Started 10 months ago by Native Imaging
  • This topic is not resolved
  • WordPress version: 3.9.1

Tags

No tags yet.