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/itsamoreh/unsplash-random-image/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.
A WordPress Gutenberg block that will get a random photo from Unsplash. Requires an Unsplash API access key.
This block was created using wds-block-starter.
Installing
Clone the repo into your WordPress plugins directory.
cd wp-content/plugins
git clone https://github.com/itsamoreh/unsplash-random-image.git
Install dependencies.
npm install
Build for production or watch files for changes.
npm run build
npm start
Built With
- wds-block-starter - Gutenberg block starter project
- unsplash-js - JavaScript wrapper for the Unsplash API
License
This project is licensed under the GPL-3.0 License - see the COPYING file for details.