WP Survey And Quiz Tool
[resolved] Combine and mix questions from different sections randomly. (2 posts)

  1. Khairul
    Posted 4 years ago #


    I would like to thank the team for developing this awesome plugin!

    Question (Quiz):
    How do I mix questions from the different Sections, while still keeping the database of questions separated within their respective Sections? It seems like this is currently not possible? Hmm, is it possible to pick and choose the Sections that will be rendered on a page?

    Current Situation:
    Creates Quiz A. Within Quiz A, there are Sections A1 (5 qns), A2 (3 qns), A3 (10 qns).
    With the current system, rendering Quiz A on a page will output all 18 question, with the respective section headers at the top of each page.

    It will be more powerful and flexible if the sections for Quiz A can be rendered via Shortcode (unless you want to come up with a UI for this).

    [wpsqt name="Quiz A" type="quiz"]


    [wpsqt name="Quiz A" type="quiz" section="A1,A2,A3" questions="10"]

    I think the algorithm is similar to how the Questions are rendered randomly within their Sections.

    What do you think? Unless I've overlooked something - is there already a way to mix Sections and output a max number of questions for each Quiz?


  2. mystifier
    Posted 4 years ago #

    I think you may be missing the point Khairul.

    A section is a group of questions to be shown together. Within each section, it is possible to specify the 'limit' - that is the number of questions to be displayed in that section.

    You can add as many questions as you like to each section and if there are more than the number set by 'limit', you can set it to select questions at random.

    I think this works well and makes good sense.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Survey And Quiz Tool
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic