Results 1 to 1 of 1

Thread: youtube video loop

  1. #1
    Thread Starter
    Expired Customer madmanc's Avatar
    Join Date
    Feb 2015
    Posts
    265
    Thanks
    77
    Thanked 33 Times in 29 Posts

    youtube video loop

    does any one know what to add to this code so that the youtube video loops indefinatley ? many thanks in advance

    <?php
    $videoID = get_post_meta($post->ID, 'cp_youtube_video_id', true);
    // Check if there is a video ID
    if ($videoID) {
    echo '<br/><p class="dotted"></p></br><H3>Video</H3></br>';
    echo '<div class="videoContainer">';
    echo wp_oembed_get( 'http://www.youtube.com/watch?v=' . $videoID );
    echo '</div>';
    }
    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Youtube video imbedded in ads
    By ranstey2208 in forum Help Using ClassiPress
    Replies: 0
    Last Post: December 5th, 2013, 11:34 AM
  2. Responsive YouTube Video
    By properjob in forum Vantage General Discussion (Legacy)
    Replies: 0
    Last Post: July 17th, 2013, 09:49 PM
  3. [SOLVED] YouTube video embed
    By myhero in forum Help Using JobRoller
    Replies: 2
    Last Post: June 19th, 2013, 10:31 AM
  4. Link youtube video to ad
    By ezsolutionspk in forum Help Using ClassiPress
    Replies: 2
    Last Post: April 23rd, 2013, 03:58 AM
  5. Lightbox over Youtube video
    By wagsy in forum ClassiPress General Discussion
    Replies: 0
    Last Post: January 8th, 2011, 07:21 PM