A simple WordPress plugin for enabling theCrag.com as an oEmbed provider.
https://www.thecrag.com/article/oembed
To install the plugin via zip:
- Download from here: https://github.com/theCrag/wp-thecrag-oembed/archive/master.zip
- Unzip and move it into /wordpress/wp-content/plugins/wp-thecrag-oembed/
To install via git:
cd wp-content/plugins
git clone https://github.com/theCrag/wp-thecrag-oembed.git
Then in the admin GUI to go /wordpress/wp-admin/plugins.php and activate the plugin
Once activated urls such as these will be converted to embedded content using WordPress's oEmbed implementation.
https://www.thecrag.com/climbing/australia/ebor-gorge/area/12094801/routes
This only works on WordPress version 4.0 and above.
It is required that thecrag embedded iframes be dynamically resized to the embeded content. This is quite a tedious task for cross domain iframes, but luckily we can use David Bradshaw's iframe-resizer project (https://github.com/davidjbradshaw/iframe-resizer) to achieve this. The iframeResizer.min.js
javascript file is included in this plugin.
- Document some good example sites.
- Get feedback on the additional url's that would be interesting to embed.
- Register the plugin on official word press site.
Contact theCrag directly - [email protected]