ableplayer / ableplayer-wordpress

Able Player plugin for WordPress
Other
5 stars 4 forks source link

Shortcode for Youtube #1

Closed integrationtfo closed 4 years ago

integrationtfo commented 6 years ago

Hello,

I try to use the shortcode for a Youtube link but it doesn't display, I know it accepts multiple file extensions but not sure if Youtube works with it. Do you have an example link by any chance ?

Thank you !

terrill commented 6 years ago

@integrationtfo this WordPress plug-in currently doesn't support shortcodes - it just enables you to run Able Player by entering HTML. I don't have a public demo of that running within WordPress - just the simple Able Player demos that accompany the main Able Player repo.

I'm hoping to build a more robust WordPress plug-in in the near future. Meanwhile, what code are you entering exactly? Also, which version of WordPress? Do you have a public URL where I can have a look?

integrationtfo commented 6 years ago

Hello Terill,

Thank you for your quick reply !

Actually my team is trying to implement accessible videos from Youtube on our Wordpress websites, we actually don't have any public URL, we all are testing locally this plugin. We have editors who want to add Youtube videos on their articles, of course, they're not developers so we want them to use a simple ableplayer shortcode where you just retrieve the video id as : [ableplayer youtube-video-id="xxxx"]

We're using the Wordpress version 4.9.4

Thank you for your help !

terrill commented 4 years ago

This is now fixed with version 1.0, which is now an official release on the WordPress Plugins site.

Please see the documentation for details. In particular, the shortcode for adding YouTube is: [ableplayer youtube-id="XXXXXXXXXXX"] (not youtube-video-id).