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.
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' ); ?>
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?
But they all have a transcript if you press the transcript button
(Press the Transcript button…:)
But it’s in all of them…
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.
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!!!
I’m very glad you enjoy it.
Don’t hesitate to let me know of anything you think can be improved or added.
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…
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.
Sorry, wasn’t going to look at immediately – I’ll get back to you in a few days.
- The topic ‘Video transcript in template’ is closed to new replies.