How to create a simple quiz in WordPress[without plugin]?

how to create a quiz in wordpress

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.

 

[quiz]

[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]

[/quiz]

 

Best plugins for show quiz in WordPress—

  1. Quiz Master Nexth(free)
  2. 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!

Q1 How can I add a sidebar to my WordPress theme?
In the WordPress widget section
👍 correct !
In the WordPress site settings section
👎 worng
By installing sidebar plugin
👎 wrong
Inside the theme template
👎wrong
Q2 Where can I find wp_config.php file?
It is located inside WordPress admin folder
👎 wrong
It is stored in the WordPress root directory of your web server
👍correct !
It is located inside WordPress database
👎 wrong
In my WordPress theme folder
👎 wrong
Q3 What database does WP use? 
Notes
👎wrong
Oracle
👎 wrong
PostgreSQL
👎 wrong
MySQL
👍correct !
Q4 What programing language is WordPress written in? 
Python
👎 wrong
Pearl
👎 wrong
PHP
👍 correct !
C
👎 wrong
Q5 To access your admin area, you need to put the following URL 
/wp-wordpress
👎 wrong
/wp-login
👎wrong
/wp-admin
👍 correct !
/admin
👎wrong

Similar Posts:

The following two tabs change content below.
An adventurous mind with a good knowledge of WordPress. Loves to talk about technology. He has more than 3 years of experience in website building and social media marketing.

Latest posts by Ankurman (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *