Shortcodes
MediaBlaster provides shortcodes for embedding video, podcast audio, and subscription UI in WordPress pages and posts.
Video player
Preferred:
[mediablaster_player]
Legacy (still supported):
[tv-video-player]
Embeds the HTML5 HLS/MP4 player for the current post context. Use on single video templates or with an explicit post ID:
[mediablaster_player id="123"]
See MediaBlaster Player for full attribute reference, the MediaBlaster Player Gutenberg block, Elementor widget, skins, and troubleshooting (e.g. block poster with no controls).
The block and shortcode use the same player. With a Video Post ID, both load fresh stream URLs from post meta on each page view.
When subscriptions are enabled, playback respects Subscription Access rules.
Podcast audio player
Preferred:
[mediablaster_audio_player]
Aliases (same behavior):
[mediablaster_podcast_player]
[wpst_audio_player]
Embeds the podcast episode audio player for the current podcast_episode or a specific episode ID:
[mediablaster_audio_player id="123"]
See Podcast Audio Player for display options, Gutenberg block, Elementor widget, and premium locking.
Requires: podcasts enabled.
Subscribe page
[wpst_subscribe]
Lists active subscription tiers with price, billing interval, trial days, and Subscribe buttons (Stripe checkout when configured).
Optional attribute:
[wpst_subscribe tier="3"]
Shows only tier ID 3.
Requires: subscriptions enabled, user logged in for checkout buttons, Stripe enabled with mapped Price IDs.
Single-tier checkout button
[wpst_stripe_checkout tier_id="1" button_text="Subscribe Now"]
Optional attributes: class, success_url, cancel_url.
Account page
[wpst_account]
Shows the logged-in user's subscription status, renewal/trial dates, cancel-at-period-end notice, and Manage Billing (Stripe Customer Portal) when applicable.
Typical page setup
| Page slug | Shortcode |
|---|---|
/subscribe/ | [wpst_subscribe] |
/account/ | [wpst_account] |
| Video landing pages | [mediablaster_player] or [tv-video-player] |
| Podcast episode pages | [mediablaster_audio_player] (also used in the default episode template) |
Match slugs to Subscribe page slug and Stripe redirect URLs under Payment Providers.
Logged-out visitors
Subscribe and checkout shortcodes show a login/register prompt with links to wp_login_url() and registration when the user is not signed in.