/

Quiz Manager - Shortcodes


Shortcodes 

Back to User Guides

The plugin supports two shortcodes. 

1) Show a Quiz

  • Shortcode[cm_quiz id="xxx"]
  • Use: Displays a quiz
  • Obligatory parameters
    • id - Insert either the quiz id or the slug.
  • Example

2) Display Content Depending on Score Range

  • Shortcodes[cm_quiz_success][/cm_quiz_success] and [cm_quiz_fail][/cm_quiz_fail]
  • Use: Displays the content inside the shortcode only if the user's score for that quiz is inside a set range.
    [cm_quiz_success] will show the content only if the score is equal or higher than the chosen one.
    [cm_quiz_fail] will show the content only if the score is lower than the chosen one.
  • Obligatory parameters
    • id - Insert either the quiz id or the slug.
    • score - Value in percentage. 
  • Example: The example below considers a user that has a score above 50% in the chosen quiz. Note that only content inside the shortcode [cm_quiz_success] appears. 

More information about the  Quiz Manager WordPress 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