To create a quiz in LearnDash, go to LearnDash LMS > Quizzes > Add New, give the quiz a title, open the Builder tab and add your questions with New Question, set each question's type, answers and points, then use the Settings tab to attach the quiz to a course or lesson and set the passing score, retakes and timing. Publish it, then take the quiz once as a test student before learners see it.
This guide covers each step (create quiz in LearnDash, add questions, configure, test) and explains the settings that cause most support tickets later: retake limits, the passing score versus the certificate threshold, quiz saving, and caching. It is written for WordPress developers and site owners building LearnDash courses.
Checked against: the LearnDash 4.18.0.1 source code, plus the official LearnDash Quiz Builder documentation and changelog for the 5.x releases (5.2.3 is the current release as of late October 2026, per the LearnDash LMS changelog). Labels below are quoted from the 4.18.0.1 source; if a label differs on your site, trust the screen and the current docs.
How a LearnDash quiz is built
It helps to know what you are creating. A LearnDash quiz is two linked records: a WordPress post of type sfwd-quiz, which holds the title, description, course association and LearnDash settings, and a row in the bundled WP Pro Quiz engine's tables, which holds the engine settings such as the time limit and retake rules. Each question is also a post (sfwd-question) linked to a question row in the engine.
You never manage that link by hand; the admin screens keep both sides in sync. It matters later for two reasons: a question can be shared between several quizzes, and some shortcodes, such as the leaderboard, expect the engine's quiz ID rather than the post ID.
Before you start
- Create the course and lessons first. A quiz is usually attached to a course, lesson or topic, and it is easier to set that up when they exist. Our LearnDash guide covers course structure.
- Check that the Quiz Builder is on. It is enabled by default. If the quiz edit screen has no Builder tab, go to LearnDash LMS > Quizzes > Settings and check the Quiz Builder option. If that section says a data upgrade must be run first, run the "Upgrade WPProQuiz Question" upgrade it links to.
- Decide on shared questions. The "Shared Quiz Questions" setting on the same screen lets one question be used in several quizzes, with progress and statistics kept per quiz. Turn it on if you plan question banks.
- Have a test student account enrolled in the course, so you can take the quiz as a learner.
Step 1: Create the quiz
- Go to LearnDash LMS > Quizzes and click Add New.
- Enter the quiz title. Learners see it, so make it specific: "Module 3 check: data protection basics" rather than "Quiz 3".
- Use the editor area for instructions shown before the quiz starts: how many questions, the pass mark, the time limit and whether retakes are allowed.
- Save a draft. The Builder and Settings tabs appear at the top of the edit screen.
LearnDash 4.8.0 also added AI-assisted quiz creation; see the official Quiz AI Builder documentation if you want to generate a first draft of questions. Review every generated question before publishing.
Step 2: Add questions in the Builder
- Open the Builder tab and click New Question at the bottom of the builder.
- Type a question title and press Enter or click Add Question. The title is for your reference; learners see the question text.
- Choose the question type from the type dropdown. The answer area changes to match.
- Click the pencil icon next to Question to write the question text learners will see.
- Add answers with New answer, then mark the correct ones: a radio button for single choice, checkboxes for multiple choice. Correct answers show in bold.
- Set the points by clicking the pencil next to the points value. To give each answer its own points, open the question settings and turn on "Different points for each answer". The official docs note this is not supported for Assessment or Essay / Open Answer questions.
- Optionally add "Message for correct answer - optional", "Message for incorrect answer - optional" and a "Solution hint".
- Reorder questions by dragging the handle or using the up and down arrows.
To reuse questions you already have, use the Questions box in the builder sidebar: hover a question and click Add, or tick several and click Add Selected. Removing a question from the builder only removes it from this quiz; the question itself stays in your question list.
Save the quiz when you are done. Use the Edit link on a question to open its full edit screen for options the builder does not show, ideally in a new tab so you do not lose unsaved builder changes.
LearnDash question types
LearnDash 4.18.0.1 has eight question types. How they are graded affects how you write them:
| Type (label in admin) | How it is graded | Good for |
|---|---|---|
| Single choice | Points if the selected answer is correct | Knowledge checks with one right answer |
| Multiple choice | All correct answers and no wrong ones, or per-answer points where wrong selections can subtract | "Select all that apply" |
| "Free" choice | The typed answer is compared with your accepted answers, case-insensitive by default | Short exact answers such as a term or number |
| "Sorting" choice | Every item must be in the right order | Process steps |
| "Matrix Sorting" choice | Each element must be matched to the right criterion | Matching terms to definitions |
| Fill in the blank | Each gap is compared with its accepted answers; one wrong gap marks the question incorrect unless per-answer points are used | Cloze text, terminology |
| Assessment | Any choice counts; points come from the option chosen | Surveys and self-ratings, not testing |
| Essay / Open Answer | Creates a submitted essay for manual grading, as text or a file upload | Written answers that need a human |
Fill in the blank uses curly braces in the question text, for example The capital of France is {Paris}., with alternatives written as {[colour][color]}. The input box is sized to the longest accepted answer, so learners can see roughly how long the answer is.
Essay questions have three grading options: "Not Graded, No Points Awarded", "Not Graded, Full Points Awarded" and "Graded, Full Points Awarded". With the first one, a learner can fail the passing score until someone grades the essay, so pick it deliberately.
Step 3: Configure the quiz settings
Open the Settings tab. The settings are grouped into five sections.
Quiz Access Settings
- Associated Course and Associated Lesson: where the quiz sits. Leave the lesson empty for a course-level quiz.
- Quiz Prerequisites: other quizzes that must be passed first.
- Allowed Users: whether only registered users can start the quiz.
Progression and Restriction Settings
- Passing Score: the percentage needed to pass. The default is 80.
- Quiz Certificate and Certificate Awarded for: the certificate and the score needed to earn it. This threshold is separate from the passing score; set both.
- Enable Quiz Saving: lets logged-in learners leave and resume an attempt.
- Restrict Quiz Retakes, Number of Retries Allowed and Retries Applicable to: see the retake note below.
- Question Completion: "All Questions required to complete", on by default.
- Time Limit and Automatically Submit After: a timer that submits the quiz when it runs out. If you enable the time limit without a value, it is switched off on save.
Display and Content Options
Choose the Question Display: "One question at a time" or "All questions at once (or paginated)", and for one at a time, whether results show after each answer or only at the end. Here you also find Randomize Order, "Display subset of questions" for drawing a random set from a larger pool, Randomize Answers, and the Question Overview Table and Quiz Summary options.
Results Page Display
Set Result Message(s) for different score bands, whether the Restart Quiz button shows, which scores learners see (Average Score, Category Score, Overall Score, No. of Correct Answers, Time Spent) and whether they can review correct and incorrect answers afterwards.
Administrative and Data Handling Settings
Custom Fields collect extra data from the learner, such as an employee number. Leaderboard, Quiz Statistics, Email Notifications and Quiz Templates also live here. Turn on Quiz Statistics if you want per-question reporting or plan to show custom field answers on a certificate; without statistics, that data is not stored.
Step 4: Place the quiz in the course and publish
Setting Associated Course and Associated Lesson places the quiz. You can also open the course, go to its Builder tab and drag the quiz under a lesson, topic or at course level, where the builder marks it as a final quiz. Use one method and check the result in the course builder.
Publish the quiz, then log in as your test student and take it at least twice: once failing and once passing. Check the result messages, the course progress, the certificate link if you set one, and the retake behaviour. If you need the quiz on another page, the [ld_quiz quiz_id="123"] shortcode embeds it, where 123 is the quiz post ID.
Settings that cause most problems
- Retakes count retries, not attempts. "Number of Retries Allowed" set to 0 means one attempt in total. The field's help text says a blank value defaults to 0, but in 4.18.0.1 saving a blank value removes the retake restriction altogether. Enter a number if you want a limit. Attempts are counted per course, so an attempt in one course does not count in another.
- Passing score and certificate threshold are separate. A learner can pass the quiz and still not get the certificate if "Certificate Awarded for" is higher than the passing score.
- Do not cache quiz pages. Each quiz page carries a security token for the current user. A page served from a full-page cache, or a learner who logs in or out after the page loaded, fails that check and the attempt is not saved. Exclude quiz URLs from page caching.
- Guests do not get progress. If anonymous users can take a quiz, their attempts are not written to LearnDash course progress. Require login when completion matters.
- Quiz saving and random order. The 5.2.0 changelog says it "Resolved quiz saving progress not working correctly when questions are set to display in a random order". If you combine those two settings, update to a current 5.x release first.
Reacting to quiz results in code
Developers usually want to act when a quiz is finished, for example to send the result to a CRM. In 4.18.0.1, the learndash_quiz_completed action fires after a logged-in learner submits a quiz, with the attempt data and the user. It fires for failed attempts too, and again after essay grading, so always check the pass value in the attempt data before treating it as a pass. The same pattern of checking state before acting appears in our guide to creating LearnDash groups, which covers group-level enrolment and reporting. For larger builds, our WordPress LMS development guide covers structure and testing.
How we can help
We build LearnDash assessments for training providers and businesses, from question banks and certification exams to custom reporting and CRM integrations. See our LearnDash development services, or hire a LearnDash expert for a fixed piece of work. LearnDash is a trademark of its owner; All-in-One LMS is an independent development company and is not affiliated with LearnDash.
Frequently asked questions
How do I add a quiz to a LearnDash lesson?
On the quiz's Settings tab, set Associated Course and Associated Lesson, or open the course's Builder tab and drag the quiz under the lesson. Leave the lesson empty for a course-level quiz.
How do I limit quiz attempts in LearnDash?
Turn on Restrict Quiz Retakes and enter a number in Number of Retries Allowed. The number counts retakes, so 0 allows one attempt and 2 allows three. In 4.18.0.1 a blank value removes the limit.
Why is the Builder tab missing on my LearnDash quiz?
The Quiz Builder is turned off or a required data upgrade has not run. Check the Quiz Builder option under LearnDash LMS > Quizzes > Settings, and run the WPProQuiz question data upgrade if that screen asks for it.
Can I reuse the same question in several LearnDash quizzes?
Yes, when Shared Quiz Questions is enabled in the global quiz settings. Add existing questions from the Questions box in the builder sidebar. Progress and statistics are kept per quiz.
Why did a learner pass the quiz but not get the certificate?
The Certificate Awarded for threshold is higher than the Passing Score. The two are separate settings, so a learner can pass without reaching the certificate score.
Free 30-minute consultation
Not sure where to start? Talk to an LMS engineer.
Tell us what platform you run and what you need. You’ll get honest, practical advice - even if the answer is that you don’t need us.
Sources & references
- Quiz Builder - LearnDash documentation
- Quiz AI Builder - LearnDash documentation
- LearnDash LMS changelog - LearnDash documentation
Learn more about this topic with AI
Gemini opens with the prompt copied - paste it into the chat to start.