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/achttienvijftien/wp-last-viewed/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress Last Viewed
Show last viewed WordPress posts.
Prerequisites
- Docker
- nvm
- yarn
- Composer
Set-up
- Run
nvm use - Run
yarn dev
To-do
- [ ] Add client-sided tracking so this plugin may also work with proxy caching + add setting in admin to choose between serverside and clientside;
- [ ] Add option to choose which (custom) post types should be tracked + provide tracking for selected post types;
- [ ] Make a Gutenberg block which shows an overview of "last viewed" (see View class);
- [ ] Add a setting to shortcode & Gutenberg block (if possible) to set the amount of posts shown + implement in View class.
Development guidelines
Please note the following:
- Use WordPress Coding Standards;
- We're doing Trunk Based Development (main being trunk) with short lived feature branches;
- Commit messages should follow (conventional commits)[https://www.conventionalcommits.org/en/v1.0.0/];
- Keep a changelog;
- Tests should be written preferably.