WordPress Quiz Plugin - How To - Place Quizzes on Post or Pages


Placing Quizzes on Post or Pages

Back to User Guides

The WordPress Quiz Plugin allows you to place quizzes on posts or pages by using shortcodes.

This guide will walk through the process from start to finish. If you would like to learn more about the shortcodes, check the specific guide (WordPress Quiz Plugin - Shortcodes)


Tutorial

To display a quiz on a page, we use the shortcode [cm_quiz id="xxx"]  on a post or page.

The id parameter accepts either the quiz slug or its id. That means that you should substitute the "xxx" in the shortcode with one of these two values.

Finding the Slug / id

Let's take this quiz as an example:

Where to find quiz slug and ID - Questionnaire Plugin WordPress
Where to find quiz slug and ID

The slug is easily identifiable: "general-knowledge". That means the proper shortcode to display it will be [cm_quiz id="general-knowledge"]

As an alternative, let's find the id. You can verify it by editing the quiz and checking the URL. It should include a section "taxonomy=cmquizm_quiz&tag_ID=111&". 

Alternative way to find the quiz ID - WordPress Test Plugin
Alternative way to find the quiz ID

Note the "ID=111": that means the id value of this quiz is 111. So, the shortcode [cm_quiz id="general-knowledge"]  should also display this quiz on posts and pages.

In summary, both shortcodes have the same effect.

Adding to the Page

So, by inserting these two shortcodes in a post:

[cm_quiz id="general-knowledge"]

[cm_quiz id="111"]

Two ways to add a quiz - Create Quiz WordPress
Two ways to add a quiz

We get the same quiz two times, as shown:

Front-end result - WordPress Plugin for Quiz
Front-end result

More information about the WordPress Quiz Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.