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/shortlist-digital/agreable-advert-plugin/archive/refs/heads/master.zipOn Packagist as shortlist-digital/agreable-advert-plugin:
composer require shortlist-digital/agreable-advert-pluginNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Shortlist Media Wordpress Advert Plugin
Wordpress Plugin built for Croissant stack using Herbert plugin framework.
Use within Twig
Get advert HTML
Get advert data
Use within PHP
API routes
Get a single advert, rendered as HTML, complete with container CSS and JS to load (for Instant Articles):
Ad type
Horizontal
Billboard 970x250
Leaderboard 728x90
Mobile banner
Vertical
HPU 300x600
MPU 300x250
In-Article
Skin