Shortcodes and block reference
Reference for the quizably_quiz, popup, slide-in and result shortcodes, the Advance Quiz block and the iFrame embed URL, with attributes and behavior.
This page lists every way to place Quizably content on a page, with the exact attributes each one accepts. For step by step instructions, see Embed a quiz: block, shortcode and iFrame.
At a glance
| Method | Syntax | Takes | Output |
|---|---|---|---|
| Quiz shortcode | [quizably_quiz id="123"] | id: numeric ID or UUID. Optional autostart | The interactive quiz |
| Popup shortcode | [quizably_quiz_popup id="123"] | id, label, trigger, delay, scroll, once | A button that opens the quiz in a modal |
| Slide-in shortcode | [quizably_quiz_slidein id="123"] | id, label, position, trigger, delay, scroll, once | A corner button that opens the quiz in a panel |
| Result shortcode | [quizably_quiz_result] | No attributes. Reads ?quizably_result= from the address | A static result card |
| Gutenberg block | Advance Quiz (quizably/quiz) | A quiz chosen from a dropdown | The interactive quiz |
| iFrame embed | https://your-site.com/?quizably_embed=123 | Numeric ID, optional max_width and bg | A bare page with the quiz |
All of them show a quiz only when the quiz is Published.
[quizably_quiz]
Places a quiz where the shortcode appears.
[quizably_quiz id="123"]
[quizably_quiz id="a1b2c3d4-0000-4000-8000-000000000000"]
| Attribute | Required | Description |
|---|---|---|
id | Yes | The numeric quiz ID, or the 36 character UUID. |
autostart | No | 1, true, yes or on skips the intro screen and starts at the first question. Anything else leaves it off. |
Accepted ID forms
- Numeric. The ID shown on the Summary tab and in the address bar of the builder (
#/quiz/<ID>/summary). - UUID. A 36 character value of letters, numbers and hyphens. It is not shown in the admin. It appears in an exported quiz file, in the
uuidfield of thequizobject.
What renders
A container for the quiz, with the quiz data included in the page. Visitors with JavaScript turned off see “This quiz requires JavaScript.” The quiz scripts and styles are loaded only on pages that contain a quiz.
Requirements and behavior
- The quiz must be Published. Draft and archived quizzes print nothing.
- An empty
id, an unknown ID or a value that is neither numeric nor a UUID prints nothing. - With
autostarton, a visitor who has saved progress still sees the “Resume where you left off?” prompt first. - The quiz can appear more than once on a page, and several different quizzes can share a page. Each one runs separately.
- Every time the shortcode renders on the server, the quiz’s view count goes up. The count appears only in the analytics CSV export, not in the admin screens. A page cache serves stored copies of the page, so views on cached pages are not counted.
- The output contains the quiz content. After you edit a quiz, clear your page cache so visitors see the new version.
[quizably_quiz_popup] and [quizably_quiz_slidein]
Both put the quiz behind a button. id accepts the numeric ID or the UUID, and the quiz must be Published. Both include the quiz data, so the quiz has its questions without any other embed on the page.
| Attribute | Applies to | Default | Description |
|---|---|---|---|
id | Both | none | Numeric ID or UUID. |
label | Both | “Take the quiz” (popup), “Take quiz” (slide-in) | Button text. |
position | Slide-in | inline-end corner | bottom-right or bottom-left. Anything else uses the inline-end corner: bottom right on left-to-right sites, bottom left on right-to-left sites. |
trigger | Both | click | click, delay, scroll or exit. An unknown value falls back to click. |
delay | Both | 5 | Seconds before opening when trigger="delay". From 0 to 600. |
scroll | Both | 50 | Percent of the page scrolled before opening when trigger="scroll". From 1 to 100. |
once | Both | session | How often an automatic open may repeat: session, day or always. Clicking the button always works. |
trigger="exit" opens when the mouse leaves through the top of the window, so it never fires on touch devices. Press Esc to close either one. Full details: Popup and slide-in embeds.
[quizably_quiz_result]
Prints a saved result as a static card, without the interactive quiz.
[quizably_quiz_result]
The shortcode has no attributes. It reads the address of the current page for a quizably_result value, which must be the ID of a completed submission:
https://your-site.com/my-result-page/?quizably_result=SUBMISSION-UUID
| Situation | Output |
|---|---|
No quizably_result in the address | Nothing |
| ID is unknown, or the submission is not completed | “Result not found.” |
| Valid completed submission | A card with the quiz title, the result title (or “Your Result” if there is none), the result content, a Score: line, and the result’s button if it has a label and URL |
The Score: line appears only when the submission has a score, which in practice means trivia quizzes.
Note: Quizably does not create these links. The share buttons on a result screen point to the page the visitor was on. Use this shortcode only if you build the links yourself, for example in an automation that has the submission ID from a webhook (
submission_uuid).
The Gutenberg block
| Property | Value |
|---|---|
| Block name | quizably/quiz |
| Title in the inserter | Advance Quiz |
| Category | Widgets |
| Search keywords | quiz, quizably, form |
| Rendering | On the server. The editor shows a text line, not a live preview |
Choose a quiz
- Insert the block.
- In the block sidebar, open the Quiz panel.
- Under Choose quiz, select your quiz. The first option is - Select a quiz -.
The dropdown lists up to 100 quizzes, most recently updated first, and includes drafts. A draft prints nothing on the live page, so check that the quiz is Published.
If no quiz is chosen, the page shows “Choose a quiz in the block settings.” to every visitor.
Attributes
| Attribute | Type | Default | Works |
|---|---|---|---|
quizId | string | empty | Yes. Set by the Choose quiz dropdown. |
autoStart | boolean | false | Yes. The Auto-start on load toggle (“Skip the intro screen and go straight to the first question.”) adds autostart="1" to the quiz. |
The iFrame embed URL
The iFrame embed loads the quiz on its own page, which you place in an <iframe> on any site.
https://your-site.com/?quizably_embed=123
| Part | Description |
|---|---|
quizably_embed | Required. The numeric quiz ID. The UUID is not accepted. A value that is not a positive number returns an error response. |
max_width | Optional. Limits the width of the quiz card. Accepts a number with px, em, rem, vw, ch or % (for example 900px or 100%), or none. Other values are ignored. |
bg | Optional. Page background as a hex color without the #, for example f5f5f5. Three to eight hex characters are accepted. |
Example with both options:
<iframe src="https://your-site.com/?quizably_embed=123&max_width=900px&bg=f5f5f5" width="100%" height="600" frameborder="0" allowtransparency="true" style="border:none;max-width:100%"></iframe>
Things to know:
- The page has no theme header or footer and is marked
noindex, nofollow. - It is served from your WordPress site, so your site must stay online for the embed to work, even when the iFrame sits on another domain.
- It can be framed by other sites.
- A quiz that is not published returns a blank page.
- The frame does not resize itself. Set the
heightto fit your quiz.
Related
Last updated October 4, 2026.