WordPress.org

Ready to get started?Download WordPress

Forums

Vixy YouTube Embed and Download
Video transcript in template (15 posts)

  1. Begin
    Member
    Posted 1 year ago #

    I'm trying to use the transcript code in my template like that:
    <?php get_youtube_transcript( MSPsrhCPt-0 ) ?>

    But it doesn't work.

    When I use the post inside shortcode ([transcript]MSPsrhCPt-0[/transcript])
    it work's great, but with php thing in the template I have no luck.

    http://wordpress.org/extend/plugins/youtube-embed/

  2. dartiss
    Member
    Posted 1 year ago #

    Using get_youtube_transcipt returns the transcript but doesn't write it out. You should also put the ID in quotes.

    You're best putting something such as...

    <?php echo get_youtube_transcript( 'MSPsrhCPt-0' ); ?>

    David.

  3. Begin
    Member
    Posted 1 year ago #

    Oh Great! Thank you very much!

    But it's very weird, it's working only with that specific id (MSPsrhCPt-0),
    but with any other youtube video id it doesn't show nothing...

    Is it working only with special videos?

  4. dartiss
    Member
    Posted 1 year ago #

    Only those with transcripts.

    David.

  5. Begin
    Member
    Posted 1 year ago #

    But they all have a transcript if you press the transcript button
    in youtube?!

  6. dartiss
    Member
    Posted 1 year ago #

    Can you give me an example?

    David.

  7. Begin
    Member
    Posted 1 year ago #

    http://www.youtube.com/watch?feature=player_embedded&v=8vlcsFJyEXQ
    (Press the Transcript button...:)

    But it's in all of them...

  8. dartiss
    Member
    Posted 1 year ago #

    You're right. However, I can see that YouTube is not returning the transcript when I request it via the required URL. They may have changed it. I'll investigate further.

    David.

  9. Begin
    Member
    Posted 1 year ago #

    Thank you very much it would be great if we can use it...

    Btw - I installed the plug-in few days a go and only now
    had the time to learn it a little bit, and it's so great!!!
    Thank you very much!!!

  10. dartiss
    Member
    Posted 1 year ago #

    I'm very glad you enjoy it.

    Don't hesitate to let me know of anything you think can be improved or added.

    David.

  11. Begin
    Member
    Posted 1 year ago #

    Great, thank's. I actually add a few ideas, like:
    adding an option to choose an image that will replace the
    "big play button" when using the image mode (not loading
    the player straight away), but on the other side there something
    nice about the plug-in's simplicity so I don't know if adding a lot of
    options is a good idea...

  12. dartiss
    Member
    Posted 1 year ago #

    That's one I can't achieve, not using the standard YouTube player. The image is as supplied by YouTube and can't be modified.

    David.

  13. Begin
    Member
    Posted 1 year ago #

    Any new insights aout the youtube transcript?

  14. dartiss
    Member
    Posted 1 year ago #

    Sorry, wasn't going to look at immediately - I'll get back to you in a few days.

    David.

  15. Begin
    Member
    Posted 1 year ago #

    Oh sorry, of course it's ok :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic