---
title: Shortcodes
menu_group: Front-end
menu_order: 70
tab: —
tab_order: 10
summary: Embed video and podcast audio players, subscription checkout, and account management on pages.
---

# 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](mediablaster-player.md) for full attribute reference, the **MediaBlaster Player** Gutenberg block, Elementor widget, skins, developer hooks, and **troubleshooting** (e.g. block poster with no controls).

The block and shortcode share the same PHP renderer. 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](metabox-subscription-access.md) 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](audio-player.md) for display options, Gutenberg block, Elementor widget, premium locking, and developer hooks.

**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](subscriptions-payment-providers.md).

## 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.

## Related guides

- [Stripe Checkout Setup](stripe-checkout-setup.md)
- [Subscriptions Overview](subscriptions-overview.md)
- [Video Data metabox](metabox-video-data.md)
- [Podcast Audio Player](audio-player.md)
