WP Manifestindependent plugin directory
manifest / media / videolength

VideoLength Grabber

Video Duration Grabber

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/devsrealm/videolength/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Installation

  1. Go to your Dashboard
  2. Hover over the Plugin section at the left hand side and select Add New
  3. Click Upload Plugin
  4. Choose Quick Summary Zip File and Select Install
  5. When you are done uploading, Activate Plugin and Follow The Next Step Below

Requirements

Requires at least Classicpress V1

Description

A ClassicPress plugin that grabs a video duration and inject it into a meta field in the post editor

Usage

Goto any template part you would like to display the value of duration, be it a content, below your post title, under featured image, etc;)

and add this

  <div class="video-duration">
          <?php
          $video_duration   = get_post_meta( $post->ID, 'videolength_duration', true );
          if ( is_singular( get_post_type() ) && '' !== $video_duration) {
             ?> <span> <?php echo esc_html( $video_duration ); ?> </span> <?php
            } 
          else {
            echo '';}
          ?>
   </div>