Skip to main content

Keeping Prices and Tier Names in Sync

If you hardcode a price or tier name into your site copy — “Join for $12/month” in a page block, say — it stays wrong the moment you change it in your membership plugin. The two shortcodes below pull that data live from your subscription bridge, so your site always reflects the current value without any manual updates.


The shortcodes

[benecaster_tier_price] outputs the current price for a membership tier as a plain number — for example, 12. Combine it with your own markup for currency symbol and billing period.

Join for $[benecaster_tier_price show_id="3" tier="premium"]/month.

[benecaster_tier_name] outputs the display name of a tier as it’s set in your membership plugin — for example, Founding Member. If you rename the tier in MemberPress or RCP, the shortcode reflects the new name on the next page load.

Upgrade to [benecaster_tier_name show_id="3" tier="founding"] for ad-free listening.

Both shortcodes return raw text — no wrapping element, no CSS classes. To style the output, wrap it in your own element:

<span class="price">$[benecaster_tier_price show_id="3" tier="premium"]</span>

If the tier is not found or the price is unavailable, both shortcodes return an empty string rather than a placeholder or error.


The fully-styled option

If you want a complete pricing display with tier names, live prices, and subscribe buttons — all styled and in sync — use [benecaster_pricing_table] instead. It renders a full tier comparison table and carries BEM CSS classes for custom styling.

[benecaster_pricing_table show_id="3"]

Use [benecaster_tier_price] and [benecaster_tier_name] when you need to embed pricing data inside prose copy, a custom-designed block, or a page builder section that isn’t the full pricing table.


For PHP templates

If you’re working in a theme template rather than a page editor, the same data is available via the output filters benecaster_tier_price_output and benecaster_tier_name_output. Both filters receive the rendered string, the show ID, the tier slug, and the resolved shortcode attributes.

See Shortcodes (Developer Reference) for filter signatures and examples.

See Also