manifest / integrations / wp-thecrag-oembed
WP theCrag oEmbed
Easily embed climbing data from theCrag.com into your wordpress site
★ 2stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/thecrag/wp-thecrag-oembed/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WP theCrag oEmbed #
A simple WordPress plugin for enabling theCrag.com as an oEmbed provider.
https://www.thecrag.com/article/oembed
Install Plugin on WordPress ###
To install the plugin via zip:
1) Download from here: https://github.com/theCrag/wp-thecrag-oembed/archive/master.zip
2) Unzip and move it into /wordpress/wp-content/plugins/wp-thecrag-oembed/
To install via 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.
Internals ###
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.
TO DO ###
Document some good example sites.
Get feedback on the additional