Hello, guys this will be a short post on How to create a quiz in WordPress without using any plugins.
A quiz combines the following shortcodes:[quiz] [/quiz] This triggers the overall Quiz shortcode. [question] [/question] This code indicates the question being asked. [answer] [/answer] This code indicates a correct answer. You can use as many of them as you like. [wrong] [/wrong] This code indicates an incorrect answer. You can also use as many of them as you like. [explanation] [/explanation] This code should be placed within either an answer or a wrong shortcode, and it indicates that the option should expand into an explanation of why it’s correct or incorrect.
Just copy and paste the below code wherever you want and change the required fields.
[question]Insert question here [/question]
[answer]Insert correct answer here [/answer]
[wrong]Insert wrong answer here [/wrong]
[wrong]Insert wrong answer here [explanation]Add additional information or an explanation for why it’s wrong here[/explanation] [/wrong]
Best plugins for show quiz in WordPress—
- Quiz Master Nexth(free)
- Gravity Forms(paid)
Let’s test your WordPress Knowledge—
Below is a list of 5 simple questions for WP Beginner. Each correct answer fetches one mark, comment below what you scored. I will be happy to share!
- How to insert a YouTube video in post without using a plugin?
- How to add new widgets in Dashboard?
- How to add facebook page widget to blogger sidebar
- How to edit footer copyright note of WordPress themes.