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/nickdavis/random-testimonial/archive/refs/heads/master.zipOn Packagist as nickdavis/random-testimonial:
composer require nickdavis/random-testimonialNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress plugin which creates a testimonial post type and then shows one testimonial at random on your website.
NB. This plugin is aimed at developers and the random testimonial output must be added manually in your plugin or theme. The following is an example in a Genesis theme.
if ( function_exists( 'NickDavis\RandomTestimonial\do_random_testimonial' ) ) {
add_action( 'genesis_after_content_sidebar_wrap', 'NickDavis\RandomTestimonial\do_random_testimonial' );
}