Get only Youtube Video Id from the embed code? (2 posts)

  1. albi107
    Posted 3 years ago #

    Anyway how i can get only the youtube Video id from the iframe embed code on a single post.

    I need this because sometimes the embed code of the video is disabled. I want the visitors to show. Video not working? Click here (with the link of http://www.youtube.com/watch?v=ID )

    I found one solution but is not working

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Than on Single.php
    <?php linkifyYouTubeURLs(); ?>

    But is not working.... Any solution?

  2. albi107
    Posted 3 years ago #

    I added the first code on functions.php of the my theme.

Topic Closed

This topic has been closed to new replies.

About this Topic