1. Home
  2. Docs
  3. LearnDash Addons
  4. LearnDash Multi Question Categories

LearnDash Multi Question Categories

Organize your LearnDash question bank by assigning multiple categories to a single question. What’s best, quiz building is easier than ever since you’ll be able to create category-based and random quizzes where questions are automatically drawn from the selected categories.

Installation

  • Install and activate the LearnDash plugin.
  • Install and activate the LearnDash Multi Question Categories.
  • A New Multi-Category Hierarchy menu will be added to the LearnDash menu.
LearnDash Multi Question Categories – Main Menu

Settings

Categories

All the categories created using this add-on will be listed under the Categories tab.  If you click on any category from this list, you will be redirected to the list of questions belonging to the selected category.

LearnDash Multi Question Categories – All Categories List
LearnDash Multi Question Categories – Questions Belonging to the Selected Category

Note: The page opens in a new tab by default. You can enable the “Open category on current tab” option if you want to open the list of questions on the same page. 

License

You can configure the add-on’s license key from the “license” tab. Enter a valid license key in the corresponding field to receive automatic updates for this add-on. 

LearnDash Multi Question Categories – License

Creating Question categories

  • Navigate to “Questions” from the LearnDash menu and select the “Multiple Question Categories” option from the Action dropdown menu on the top right.
LearnDash Multi Question Categories – Multi Question Categories
  • Enter the category’s name, description and select a parent category, if any.
LearnDash Multi Question Categories – Select Parent Categories
  • Click the “Add new category” button.

You can also create categories by navigating to any question and using the “Multi Question Category” meta-box displayed on the right.

LearnDash Multi Question Categories – Multi Question Category by Meta Box

Assigning Question categories

  • Select the question you want to categorize from the LearnDash Question menu.
  • Select the desired category for the question. You can select more than one category for a single question.
  • Click update.

Previewing Questions

You can preview the question just by clicking on the “Preview Changes” button, available on the individual question pages.

LearnDash Multi Question Categories – Preview Button
LearnDash Multi Question Categories – Preview on the Frontend

By clicking on the “Hint” button available on the left side, below the question, you can preview the hint.

LearnDash Multi Question Categories – Hint Preview on the Frontend

You can preview the solution just by clicking on the “Solution” button, available on the right side, below the question.

LearnDash Multi Question Categories – Preview With Solution on the Frontend

Creating Individual Category based Questions

This add-on allows you to create quizzes based on the assigned question categories. Quizzes can be created to include questions from one or multiple question categories, as selected. 

  • Navigate to LearnDash Quizzes and select “Add New”.
  • Scroll to the “Multi Questions per Category” meta box, where you’ll find an option “Do not set multi categories questions” along with the list of all the question categories.
  • If you enable the “Do not set multi categories questions” checkbox, then you can display the questions available only within the “Builder” tab. Meanwhile, by disabling this checkbox you can select the number of questions to be included in the quiz, only from each of the categories displayed.
LearnDash Multi Question Categories – Select Categories Base Questions in a Quiz
  • If you select less than the total number of questions from a given category, the questions included on the quiz will be selected randomly.

Creating Cumulative Category based Questions

This add-on allows you to create quizzes with randomizing questions between selected categories. 

LearnDash Multi Question Categories – Cumulative Categories Base Questions

Note: Using the multiple-question category quiz feature disables the default LearnDash Quiz Builder. The questions added or ordered through the quiz builder will not be displayed on the front-end.


FAQ’s

Why are questions not visible under multiple categories listing when the category is selected from the “Question Category” meta box?

The “Question Category” meta-box is used with the default Question category functionality of LearnDash. You’ll have to use the “Multi Question Category” meta-box to correctly use the add-on. 

How do I use the questions in the quiz from the LearnDash quiz builder without disabling/deleting this add-on?

You can use the default LearnDash Quiz builder if you set the question counters as “0” in front of the categories on the “Multi Questions per category” meta box on the Quiz edit page.

There are no categories displayed when we navigate to LearnDash LMS >Multi Category Hierarchy?

The categories will be available and visible on the navigation path when there are multi categories configured.

Can we delete the already created Multi Question Categories?

Yes, you can certainly remove multi-question categories. To do this, follow these steps:

  1. Navigate to LearnDash LMS in the left-hand menu and click on Questions.
  2. Under Actions, you will find Multi Question Categories, click on it.
  3. Hover your mouse cursor over the category you want to delete.
  4. Delete button will appear. Click on it to remove the category

Are there any limitations to LearnDash Multi-Question Categories?

Certainly. When dealing with parent-child categories, it’s advised to assign each question to only one category. Selecting multiple categories for a question, such as being in both the child and parent category, will impact the count for both categories. Consequently, this may lead to unexpected behavior in the display of questions on the front end.

How can I hide the LearnDash Multi-Question Categories to reflect on the results page?

To hide the LearnDash Multi Question Categories from the result page, you can use the following snippet:

add_filter( 'ldmqc_use_learndash_cat_on_result', 'show_learndash_cat_results' );

function show_learndash_cat_results() {

    return true;
}


Changelogs

1.3.7

  • Fix: Fixed the issue of scroll not working on quiz edit page.

1.3.6

  • New: Added hook to show LearnDash categories on the results page.

1.3.5

  • Fix: Fixed questions not updating after updating the quiz from backend.

1.3.4

  • Fix: Fixed Issue with the old question meta.

1.3.3

  • Fix: Fixed Issue of quiz page not saving.
  • Fix: Fixed Issue of wrong question number.
  • Fix: Fixed UI issues.

1.3.2

  • Fix: Fixed issue with default LearnDash save and randomization functionality.
  • Fix: Fixed fatal error on old quizzes edit screen.

1.3.1

  • Fix: Fixed the issue of individual category and show result after every question.

1.3.0

  • New: Added questions by cumulative categories.

1.2.8

  • Fix: Fixed empty Category issue.

1.2.7

  • Fix: Fixed Category and Subcategory hierarchy expend issues.

1.2.6

  • Fix: Fixed the “Display results after each submitted answer” bug.

1.2.5

  • Fix: Fixed parent-child categories linking issue.

1.2.4

  • Update: Patch.

1.2.3

  • Fix: Fixed LD Quiz questions and Multi categories questions mixups

1.2.2

  • Fix: Fixed custom category results when multiple users attempt quizzes simultaneously.
  • Fix: Fixed text domain and wrapped texts in translation function.

1.2.1

  • Fix: Fixed Fatal error on saving any Meta box.

1.2.0

  • New: Added solution message in question preview with HTML support.
  • Fix: Fixed quiz score issue in custom categories.

1.1.1

  • New: Added checkbox in the quiz builder to disable multi categories questions.
  • Fix: Fixed quiz points issues due to random feature.
  • Fix: Fixed question preview public access.

1.1.0

  • New: Added question preview feature.

1.0.2

  • Fix: Fixed missing quiz Start button when the user is not logged in.
  • Fix: Fixed license check requests once in 24 hours instead of every page load.

1.0.1

  • Fix: Fixed number of questions error in the quiz.

1.0.0

  • Initial Release.

How can we help?