Skip to content

Show Codes on Your Site

QRify Shortcode: Show a QR Code Anywhere in WordPress

Need a QR code inside a page builder, a widget, a theme template or a classic-editor post? The [qrify] shortcode prints one anywhere WordPress runs shortcodes. It can show a code you designed in QRify, a code for the page it's on, or a code for any URL or text — rendered as inline SVG, with no extra JavaScript or CSS loaded on your front end.

What is the [qrify] shortcode?

[qrify] is QRify's shortcode for displaying a QR code on the front end of your site. Give it a saved code's id, url="current" for the current page, any url, or plain text. Optional attributes set the size, alignment, a caption and a download link. It renders the same markup as the QR Code block.

Show a QR code you created

  1. Go to QRify → All QR Codes.
  2. Open the code's actions menu and click Copy shortcode — or open the code in the editor and click Copy next to Shortcode.
  3. Paste the shortcode into your page:
[qrify id="12"]

A saved code keeps its own design and, for dynamic codes, its short link — so scans are tracked in analytics.

Paused codes show nothing

If a saved code is paused, the shortcode outputs nothing until you activate it again.

Show a QR code for the current page

[qrify url="current"]

This encodes the permalink of the post or page the shortcode is on. It's handy in a template part or reusable block that appears on many pages. To add a code to every post of a type automatically, use automatic QR codes on posts instead.

Show a QR code for any URL or text

[qrify url="https://example.com/menu"]
[qrify text="Table 7 — ask staff for the Wi-Fi password"]

These are static codes: the content is encoded directly, nothing is saved in QRify, and scans aren't tracked. For a code you can re-point later or track, create a dynamic code under QRify → Add New and use its id.

url and text codes use your default design template — see QR code design templates.

Shortcode attributes

Attribute Default What it does
id 0 ID of a saved QRify code. Takes priority over url and text.
url (empty) A URL to encode, or current for the current page's permalink.
text (empty) Plain text to encode. Used when neither id nor url is set.
size 200 Width in pixels. Clamped to 48–2048. The code never grows wider than its container.
align (empty) left, center or right. Empty aligns left.
caption (empty) Text shown under the code.
download no yes (or 1 / true) adds a Download QR code link that saves the code as an SVG file.

QRify uses the first of id, url or text that you set. With none of them, the shortcode outputs nothing.

Examples

A centred code with a call to action and a download link:

[qrify id="12" size="240" align="center" caption="Scan me" download="yes"]

A small code for the current page, right-aligned:

[qrify url="current" size="120" align="right"]

How the shortcode renders

The code is output as an inline SVG inside a <figure class="qrify-qr">. Codes are rendered on the server and cached, so a page with a QR code makes no extra requests. The caption and download link sit in a <figcaption> below the code, which you can style from your theme.

Conclusion

Use [qrify id="…"] for codes you designed and want to track, and url/text for quick static codes. In the block editor, the QR Code block does the same job with a visual picker.

FAQs

How do I find a QR code's ID for the shortcode?

You don't need to look it up. On QRify → All QR Codes, open the code's actions menu and click Copy shortcode, or open the code and click Copy next to Shortcode. Both copy a ready-made [qrify id="…"] shortcode to paste into your page.

Why does my [qrify] shortcode show nothing?

The most common reasons are that the saved code is paused, the id doesn't exist, or no id, url or text attribute was given. Activate the code on QRify → All QR Codes, or check the attribute. When you're logged in as an editor, a generation error is written as an HTML comment in the page source.

Are scans from a shortcode QR code tracked?

Only when the shortcode shows a saved dynamic code with id. Codes made with url or text are static: the content is encoded directly, so scans never reach your site and can't be counted.

Can visitors download the QR code?

Yes. Add download="yes" and a Download QR code link appears under the code. It saves the code as an SVG file named after the code's title.

Does the shortcode slow my site down?

QRify renders the QR code on the server, caches it, and outputs inline SVG. It doesn't add JavaScript or CSS files to your front end, so the page makes no extra requests for the code.

Was this page helpful?