An attempt at a simple plugin that loads the last observations on iNaturalist.org

uses a shortcode [inaturalist user="troutcolor" count="32"] where user is my username and count is the number I want displayed.

I am often searching my blog for the time I notice some natural event, the first snowdrop, cuckoo or the like. This requires looking through a few posts. I though I could make something that woud search and sort by day and month, not year. This is it:

I do not know if this is a very cleverer way to go about this, it uses the WordPress Rest API to search then sorts. It is a simple plugin at the mo with a [firstofyear] shortcode to get the search box.

GifMovie site

I am trying to make a plugin that will:

  1. add sounds to a gif
  2. present a gif as a ‘movie’ starting and stopping on a click.

I do not really know what I am doing. I have seen a few plugins that ‘freeze’ a gif until clicked, they seem to generate a jpg from the the gif. The approach here is different:

  1. A shortcode [gifmovie gif=’gif-url’ mp3=’mp3-url’]eg: [gifmovie gif='http://38.media.tumblr.com/5704f412385f040cb6c7e232519867c7/tumblr_npstce4Hpp1rggurro1_500.gif' mp3='http://freesound.org/data/previews/157/157873_2836235-lq.mp3']
  2. The short code adds the gif with a class of gifmovie and an attribute of mp3
  3. Javascript then adds a canvas element, put a frame from the gif on and a play button, it hides the gif. Adds an audio element for the mp3. Clicking hide canvas, shows gif and play audio.