cgrymala / reveal-js-presentations

Reveal.js Presentations for WordPress
GNU General Public License v2.0
9 stars 2 forks source link

oEmbed support #6

Open courtneyr-dev opened 8 years ago

courtneyr-dev commented 8 years ago

I would like to make use of oEmbed. I am linking to my presentation from a CPT at http://members.simplelocalbusiness.com/lessonplan/introduction-to-wordpress/. In "Teacher Notes" I've added the link http://members.simplelocalbusiness.com/presentation/intro-wp/. The oEmbed feature isn't working there. How can I resolve that?

mrjarbenne commented 7 years ago

It looks like you are attempting to embed the slideshow on another page using oEmbed. The native WordPress oEmbed functionality only works for single posts, not a taxonomy array, so technically you might be able to leverage the existing oEmbed to embed a single slide, which in this case is a single CPT (I haven't tried this), but embedding the entire slide show might be easier to achieve with just an iframe.

Something like this would work

<iframe src="http://members.simplelocalbusiness.com/presentation/intro-wp/" width="100%" height="600px"></iframe>