[benecaster_qr_code]
Renders a QR code for a subscriber’s private feed URL (type="feed", requires Starter or above) or a show’s public signup page (type="signup", free on all plans including unlicensed WordPress.org installs). The type attribute controls which URL is encoded:
type="feed" — subscriber’s private feed URL (default)
Encodes the current logged-in subscriber’s personal tokenized RSS feed URL. Requires an active paid Benecaster license. The shortcode only renders for logged-in WordPress users who have an active feed token for the specified show. In all other cases it renders nothing (empty output, no error):
- Visitor is not logged in → empty output
- Logged-in user has no feed token for this show (e.g. not a subscriber) → empty output
- No active Benecaster license → empty output
The default subscriber account page ([benecaster_account]) already includes a QR code section — use [benecaster_qr_code type="feed"] only when building a custom account page that replaces the default.
type="signup" — show’s public signup page
Encodes the show’s public subscriber signup page URL. Renders for all visitors regardless of login state or license. Free on all plans including unlicensed WordPress.org installs. Use on landing pages, show notes pages, or print materials to drive new subscriptions.
When download=true, both SVG and PNG download buttons render by default. Use the format attribute to limit to one. SVG is print-ready (50 mm × 50 mm); PNG is suitable for digital use and smaller print runs (1000 px, ~300 DPI up to ~8.4 cm).
QR code in the admin dashboard
The Benecaster dashboard already shows a signup QR code for each show — no shortcode needed there. Three buttons beneath it let you take it further:
- Copy image — copies the QR as a PNG to your clipboard, ready to paste into a document or design tool
- Copy embed link — copies a ready-to-paste HTML snippet for embedding the QR on any page
- Download PNG — saves the QR as a PNG file
Use [benecaster_qr_code type="signup"] on front-end pages when you want the QR to appear inline. See the embed-show-qr-code-on-marketing-page recipe for a working example.
Parameters
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
show_id |
int |
— | No | ID of the show. Optional on single-show installs — auto-resolved via benecaster_get_sole_show_id(). Required on multi-show installs; renders an inline error comment when omitted. |
type |
string |
feed
|
No | QR code target. `feed` (default) — encodes the logged-in subscriber's private feed URL; renders nothing for logged-out visitors, users with no token for this show, or unlicensed installs. `signup` — encodes the show's public signup page; renders for all visitors on all plans. |
size |
int |
200
|
No | Display size of the QR code in pixels (clamped 80–1000). Controls the inline display only — download file dimensions are fixed (SVG: 50 mm × 50 mm; PNG: 1000 px). |
download |
bool |
true
|
No | Whether to show download button(s) below the QR code. |
format |
string |
both
|
No | Which download button(s) to show when download is true. Options: both (SVG and PNG), svg (SVG only), png (PNG only). SVG downloads at 50 mm × 50 mm (print-ready); PNG downloads at 1000 px (~300 DPI up to ~8.4 cm). |
Example
<!-- Subscriber's private feed QR code — SVG download only -->
[benecaster_qr_code show_id="3" type="feed" format="svg"]
<!-- Public signup QR code for a landing page, no download button -->
[benecaster_qr_code show_id="3" type="signup" download="false" size="300"]