With the Display Quiz Bank(questions) shortcode, you can display the questions and their answers on the front end. Go to the General Settings page > Shortcodes, and find the shortcode.
As a default, only questions will be shown on the page. If you want to display answers as well, then tick the Enable Question Answers option.
Now, copy and paste the shortcode in your post.
Replace the “quiz/category” with either the “quiz” or “category” option, depending on whether you want to display the questions of a specific quiz or of a category.
Instead of N in id=”N,” write down the quiz ID if you have selected the quiz option or the category ID if you have selected the category option. You can find the quiz ID for the particular quiz on the Quizzes page from the list. You can find the ID for the categories on the Question Categories page from the list.
The orderby=”ASC” part decides in what order the questions will be listed.
- “ASC” means that the questions will be listed from the oldest created one to the most recent one based on their question ID.
- Replace it with “DESC” if you want the questions to be listed from the most recently created one to the oldest one based on their question ID.
- Write “default” if you want to display the questions in the same order as you have put them in the quiz. For the categories option, the questions will be ordered as with the “ASC” order.
- Or write “random” instead if you want the questions to appear in a random order every time after refreshing a page.
Lastly, if you have created a new post, then publish it or update it if you’ve put the shortcode in an old post. Click on View Post to see the result.
Here is an example of questions of a quiz displayed:
That was it about the Display Quiz Bank(questions) Shortcode. Alternatively, you can watch a detailed video tutorial on how to set Display Quiz Bank Questions Shortcode with the quiz plugin.