by Alan Levine cog.dog
This plugin extends the variety of media sites whose content can be auto embedded by pasting a URL in the editor-- you know the way you can paste in the URL for any YouTube video and it automatically embeds in the editor (and when published). It is more of a proof of concept, and any WordPress coder up to the task could pull out code as needed for their own theme work.
If this is new to you, for your own sake, see all the media sites WordPress supports natively.
The Embed Extras plugin adds a few more into the mix. Why bother with this?
- HTML embed codes are messy. They have to be pasted into the text editor (WordPress running in Classic mode) or the HTML block.
- Even if you can figure this out, it's all for naught if your site is hosted in a WordPress multisite (the iframe tags of most embed codes are stripped out)
- It's much easier to paste in one URL and be done
- It feels magical when embedded media just appears after pasting in a URL
Much of this emerged from development of the WordPress SPLOTbox theme, this just generalizes things so it works anywhere in WordPress editing.
I hope.
This will work on self-hosted WordPress sites where you can install your own plugins or themes.
- Download this plugin using the Green via the Code button above, use the Download as ZIP option.
- In your dashboard, go to P;ugins then click Add New and finally the Upload Plugin button.
- Activate the plugin through the 'Plugins' menu in WordPress
The following sites can be auto embedded from a URL in the WordPress Editor, Classic or the Block Editor. Just paste the web address for any content from the sites below on a new blank line, and press ENTER (or RETURN). The media should appear in the visual editor
All content published on Padlet can be automatically embedded by pasting in the URL for any published, public padlet content, for example https://padlet.com/beckydono/48x1o4i4gi1s
Embeds support for Audio, Video, Texts, even their collection of software.
https://archive.org/details/atari_2600_frogger_1982_parker_brothers_ed_english_david_lamkins_pb5300
https://archive.org/details/artofknitting00butt
https://archive.org/details/Jolly_Fish_1932
https://archive.org/details/AMFM2019-02-09
Any audio recorded on (Vocaroo)[https://vocaroo.com] in either URL format https://voca.ro/1nE0WWUqhxlN
or https://vocaroo.com/1nRPpQCPhQ4M
Another nifty web recording/editing tool, embed audio recorded into Boonbox or edited with the Sodaphonic Editor. Examples.
https://sodaphonic.com/audio/344uhz2j8NUJjyUkckQq
Embed any public toot from it's URL, in form:
https://some.mastodon.instance/@usermame/098765431ID
or for real example https://social.fossdle.org/@cogdog/109506785930744037
Embed a photo shared through a pixelfed instance, using the public share URL in the form
https://some.pixelfed.instance/p/usermame/p/1234567890
or for real example https://pixelfed.social/p/cogdog/622954251507231026
- Oct 30 2023: (v0.5) New handler to sipport embeds of photos published through any pixelfed instance, see https://cogdogblog.com/2023/10/pixelfedding/
- Dec 14 2022: (v0.4) Added a handler to support embeds of mastodon urls (does not render correct in editor but works on publish). See https://cogdogblog.com/2022/12/toot-in-em-bed/
- Dec 11, 2022: (v0.3) Returned to add support for Vocaroo and Sodaphonic. H5P ones removed, host sites are too picky about frame sharing. Cleaned up some functions and regex.
- Mar 7, 2020: (v0.2) The idea emerges and test version shared It Takes More Magic Than a Saw to Support WordPress Media Embeds (CogDogBlog.com)
- Mar 16, 2020: First version (v .15)
If this kind of stuff has any value to you, please consider supporting me so I can do more!