MJJ Quizzes
little quiz plugin which uses WP API and React
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/tharsheblows/mjj-quizzes/archive/refs/heads/use-jquery-and-velocity-included.zipThis is a WordPress plugin which makes simple little quizzes. It works by giving each answer a point value and then sums them up to give a result based on the score.
It makes a custom post type, mjj_quiz, which appears in admin as "Quizzes". For each questions, give some answers and the point value for each answer. (You might need to change the styles depending on how many answers per question you have.) Then put in the ranges and info for the results. You'll need to do it like 0-99, 100-199 -- ie, don't include the same number twice. You can use Markdown in the "more information" box for each result too. But no html tags. Those will be stripped out.
Then take the quiz!
requirements
- CMB2 plugin from WebDevStudios to make metaboxes
- I am not sure which version of WP is supported, but it was developed on a 4.4 beta.
- The WP REST API plugin.
- jQuery and Velocity.js already loaded
caveats and disclaimers
This is a plugin specific to my needs, feel free to make it your own.