p5js wp
Wordpress Plugin allows local hosting & embedding of p5.js scripts directly in posts & pages using iframes & shortcode. Legacy version uses shortcodes & has maximum compatibility.
by Cassia Duske · github.com/cass-e-design/p5js-wp-legacy · website
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/cass-e-design/p5js-wp-legacy/archive/refs/heads/main.zipFrom the readme
p5.js WP
Local hosting & embedding of p5.js scripts directly in posts & pages using iframes & shortcode
Description
p5.js scripts can be tricky to embed safely alongside other content, especially when using plugins that aggregate or defer scripts. This plugin enables inclusion of p5.js scripts more easily, directly inside WordPress content using a shortcode. It encapsulates scripts inside an \, so one post or page can safely handle multiple p5.js sketches using conflicting libraries, versions, etc.
Usage
This plugin adds a shortcode, not a Gutenberg Block. For a detailed explanation of shortcodes, please see the Wordpress Codex Page on Shortcodes. For the usage of this shortcode, please see the usage examples below.
Additional Note: I use to indicate where a URL needs to go. You should replace the whole thing, including the < brackets.
Special Characters
All HTML Entities inside the shortcode need to be encoded. Like '&' (&).