PressPrimer Quiz provides two methods for embedding quizzes and quiz-related content into your WordPress site: Gutenberg blocks and shortcodes. Both produce identical results; choose whichever option best fits your workflow.
Here’s a list of blocks in the plugin:
PPQ Quiz: Displays a quiz on the page for learners to take. Make sure you choose a quiz in the drop-down list.
PPQ Quiz Attempts: Displays a list of all quiz attempts completed by the active user. The block includes settings to turn dates and scores on or off, as well as how many attempts to show per page. Users must be signed in to see quiz attempt history.
PresssPrimer Quiz Dashboard: Displays the front-end dashboard, including the My Results screen where students can review their past quiz attempts. Users must be signed in to see the dashboard. After adding the block, select the page in the Dashboard Page setting under PressPrimer Quiz > Settings > General.
Here’s a lot of shortcodes in the plugin:
Quiz Shortcode
[pressprimer_quiz id=”X”]
Replace “X” with your quiz ID, which you can find in the list of quizzes under PressPrimer Quiz > Quizzes. The id attribute is required and you must specify a quiz ID.
My Attempts Shortcode
[pressprimer_quiz_my_attempts per_page=”10″ show_score=”true” show_date=”true”]
The per_page attribute is optional and defines how many attempts to list on the page. If this attribute is excluded, 20 attempts will be shown per page.
Dashboard Shortcode
[pressprimer_quiz_dashboard]
Displays the front-end dashboard. There are no attributes to configure.
Troubleshooting
- If no quiz is shown and you instead see a message like, “Please select a quiz”, make sure the associated quiz is “Published” (not “Draft”) and that it is properly selected in the block or shortcode.
- If the quiz you want to use is not shown in the block drop-down, make sure it is “Published” and that you have permission to access it (if you were not the creator).
- If the shortcode shows as plain text, make sure that PressPrimer Quiz is active.
