H5P Integration
New

H5P (HTML5 Package) is an open standard for building rich, interactive browser content — quizzes, drag-and-drop activities, interactive videos, flashcards, and more. Because Masteriyo's learn page is a React application, a plain [h5p] shortcode would not render correctly on its own; this add-on bridges that gap automatically.

The integration ships in two tiers:

  • Free — any [h5p id="N"] shortcode inside a lesson is transparently converted into a responsive, auto-sizing iframe on the learn page. Nothing extra to configure.
  • Pro — everything in Free, plus a dedicated H5P Quiz curriculum item with grading, attempt limits, a timer, a result screen, and per-question score tracking.

Requirements

  1. Masteriyo LMS (installed and activated)
  2. H5P plugin (installed and activated) — free from WordPress.org
  3. At least one H5P content item created under H5P Content > All H5P Content
  4. Masteriyo Pro — required for H5P Quizzes only

Setup

  1. Install and activate the H5P plugin from WordPress.org.
  2. Go to H5P Content > All H5P Content and create at least one piece of interactive content.
  3. Activate the H5P Integration add-on from Masteriyo > Addons.

H5P Integration add-on toggle enabled in Masteriyo Addons

Note: If the H5P plugin is not active, Masteriyo displays an admin notice. The add-on stays inactive until the H5P plugin is installed and running.

Supported Content Types

For Content Embedding (Free)

Any H5P content type can be embedded in any description field that renders on the learn page — lessons, quizzes, individual questions, assignments, and Google Meet sessions. There are no restrictions on content type; Masteriyo converts the shortcode to a responsive iframe regardless.

For H5P Quizzes
Pro

The H5P Question Bank only shows scoreable content types — those that produce a grade Masteriyo can capture and display:

Content TypeContent Type
Multiple ChoiceTrue/False Question
Fill in the BlanksDrag and Drop
Mark the WordsDrag Text
EssaySummary
Image Hotspot QuestionFind Multiple Hotspots
Speak the WordsQuestion Set
Single Choice SetArithmetic Quiz
Memory GameCrossword
FlashcardsSpeak the Words Set

Note: Only content types installed on your WordPress site appear in the H5P Question Bank. Pure presentational types (Interactive Video, Course Presentation, Timeline, etc.) are excluded — they produce no score, but can still be embedded freely in lessons.

Embedding H5P Content (Free)

Every H5P item you create has a unique shortcode shown in H5P Content > All H5P Content (e.g. [h5p id="10"]).

h5p-content-shortcode

  1. Open any content item that has a Description field — a lesson, quiz, question, assignment, or Google Meet session.

  2. In the Description, paste the H5P shortcode:

    • Classic Editor — paste directly into the text area.
    • Block Editor — add a Shortcode block, then paste the shortcode inside it.
    [h5p id="10"]
    
  3. Click Publish or Update to save.

H5P shortcode pasted in the lesson description editor

On the learn page, Masteriyo silently replaces the shortcode with an iframe. The iframe resizes itself to match the content height so there is no fixed blank space or scrollbar.

H5P interactive content rendered inside the Masteriyo learn page

H5P Quizzes
Pro

With Masteriyo Pro, the H5P Integration add-on introduces the H5P Quiz — a first-class curriculum item that sits alongside lessons and standard quizzes inside a course section. Pro also enables H5P's built-in content-state saving, so students can pause an activity and resume from where they left off when they return.

Creating an H5P Quiz
Pro

  1. Go to Masteriyo > Courses, open the course, and click the Builder tab. Scroll to the section where you want to add the quiz.

Course Builder with Add New Content button highlighted

  1. Click Add New Content inside that section. A Select Your Content Type modal opens — choose H5P Quiz.

Select Your Content Type modal with H5P Quiz option highlighted

  1. The H5P Quiz editor opens with three tabs — Info, Questions, and Quiz Settings. Configure each tab as described below.

Info Tab

Enter the quiz Name and an optional Description.

H5P Quiz Info tab with name and description fields

Questions Tab

H5P Quiz Questions tab — empty state before adding questions

  1. Click Add H5P Question to open the H5P Question Bank.
  2. Browse or search your H5P library. Each item shows its title and content-type badge.

H5P Question Bank modal with search and content-type filter

  1. Select one or more items and click Add. Items appear as an ordered list inside the quiz.
  2. Drag to reorder or click the trash icon to remove an item.

H5P Quiz Questions tab showing selected H5P content items

Quiz Settings Tab

Configure grading and display behaviour before saving.

H5P Quiz Settings tab — General section

H5P Quiz Settings tab — Display section

General

SettingDescription
Full PointsTotal points the quiz is worth. Click Auto Calculate to pull the maximum score directly from the selected H5P content — no manual counting needed.
PassThe score required to pass. Toggle between Point and Percent as the unit.
DurationOptional time limit in hours and minutes. When set, a countdown timer appears on the learn page.
Attempts AllowedSet to No limit for unlimited retakes, or Limit to cap the number of attempts.
Number of AttemptsVisible when Limit is selected — the exact cap on retakes.

Display

SettingDescription
Questions Per PageFrom Global Settings inherits the site-wide default; Set Individually lets you override it for this quiz.
Randomize QuestionsShuffles question order on each new attempt so students cannot memorise the sequence.
Show ResultDisplays the result screen (score, pass/fail, per-question breakdown) after the student submits.
  1. Click Add H5P Quiz to save and return to the builder.

The quiz now appears in the curriculum sidebar on the learn page with its name and, if set, its duration.

Taking an H5P Quiz
Pro

Students open the H5P Quiz from the curriculum sidebar. The quiz intro screen shows the quiz name, description, and a summary bar with duration, number of questions, total points, and pass points.

H5P Quiz intro screen with Start Quiz button

Click Start Quiz to begin. Each H5P question loads in its own iframe, identical to the free lesson embedding but wired up for score capture.

H5P Quiz in progress with questions and Submit Quiz button

When Duration is configured, a countdown timer is displayed. When time expires, the quiz is auto-submitted.

After answering all questions, the student clicks Submit. If Show Result is enabled, a result screen appears showing a summary table:

MetricDescription
Total QuestionsNumber of H5P items in the quiz
Answered QuestionsNumber of items the student interacted with
Total AttemptsHow many times the student has attempted this quiz
Total PointsMaximum possible score
Earned PointsScore the student achieved
ResultPass or Fail badge with percentage

H5P Quiz result screen with score and pass/fail indicator

From the result screen the student can Start Quiz Again (if retakes are allowed) or click Complete Quiz to mark the item as complete and continue through the course.

Viewing H5P Quiz Attempts
Pro

H5P Quiz attempts are visible in two places. Both surfaces share the same Default / H5P Quiz type dropdown that separates H5P attempts from standard Masteriyo quiz attempts.

Admin and Instructor — Masteriyo > Quiz Attempts

Go to Dashboard > Masteriyo > Quiz Attempts. The first dropdown defaults to Default (standard quizzes). Select H5P Quiz to switch the entire table — including the student search and the quiz filter — to show only H5P Quiz attempts.

Masteriyo Quiz Attempts admin screen filtered to H5P Quiz

Each row in the table shows:

  • Student name and email
  • Quiz name and course name
  • Score Overview — attempt number and score (earned / total points)
  • Result — pass/fail badge with percentage
  • ActionsView to open the full attempt detail, plus a context menu

Student — Your Quiz Attempts (Account page)

Students can view their own attempts from the frontend account page by navigating to Your Quiz Attempts in the account sidebar. Select H5P Quiz from the dropdown to filter the table to H5P attempts. The table columns are Quiz, Quiz Summary, and Result.

Student account Your Quiz Attempts page with H5P Quiz filter


Analytics

H5P data is not included in Masteriyo Analytics. Attempt counts, scores, and pass/fail results from H5P Quizzes are recorded in Masteriyo > Quiz Attempts (use the H5P Quiz filter to view them), but they do not appear in Masteriyo's built-in analytics reports or course-level analytics widgets.



Was this article helpful to you?
Give us Rating

Last edited on June 25, 2026.
Edit this page