• ********* FOUND OUT HOW TO DO THIS WITHOUT A PLUGIN – VERY EASY *******

    1. Upload p5.min.js file to media library.
    2. Upload sketch file to media library.
    3. Grab “attachment page” URL from each file upload
    4. In post or page, use these two scripts:

    <script type="text/javascript" src="#link_to_p5.min.js"> </script>
    <script type="text/javascript" src="#link_to_sketch.js"> </script>

    5. That’s it. Very simple. No need for plugins.

    ****************************************************************

    Followed the instructions very carefully but the sketch does not show. This is the test sketch I’m using.

    function setup() {
      createCanvas(640, 480);
      background(250, 0, 0);
    }
    
    function draw() {
      fill(255, 0, 0);
      ellipse(mouseX, mouseY, 80, 80);
    }

    Works perfectly when opened as local file.

    Please update your plugin and I will change my review to 5 stars!

The topic ‘Doesn't work for recent wordpress’ is closed to new replies.