Contents
On this page
Shortcodes - Plugixa Video
Shortcodes put the player and the plugin’s pages anywhere on your site: in a page, a post, a widget or a theme template. Each one has a block and an Elementor widget that print exactly the same thing, so use whichever suits your editor.
You do not need a shortcode for a video, channel or series PRO page: those show their player or page on their own.
| Shows | Shortcode | Block | Elementor widget |
|---|---|---|---|
| The player | [pvx_video id="123"] |
Plugixa Video | Plugixa Video |
| The browse page | [pvx_browse] |
Video browse page | Video browse page |
| The member library | [pvx_library] |
Member video library | Member video library |
| All channels | [pvx_channels] |
Video channels | Video channels |
| One channel | [pvx_channel id="12"] |
Video channel | Video channel |
| One series PRO | [pvx_series id="34"] |
Video series | Video series |
| One playlist | [pvx_playlist id="56"] |
Video playlist | Video playlist |
See Blocks and Elementor widgets.
The player: [pvx_video]
| Attribute | Value | Default |
|---|---|---|
id |
The video’s id. Required. | none |
autoplay |
true starts the video as soon as it loads. |
false |
width |
full, wide or content. See Width. |
The site setting |
[pvx_video id="706"]
[pvx_video id="706" autoplay="true"]
[pvx_video id="706" width="content"]
Browsers may refuse to autoplay a video with sound until the visitor has interacted with your site. See The player.
What the shortcode prints depends on the video:
- Published or unlisted: the player. Who may actually watch is checked when it loads, see Access control.
- Password-protected: WordPress’s password form, until the visitor enters it.
- Draft, private, scheduled, trashed or unknown: nothing, for visitors. Someone who can edit the video sees the player.
The browse page: [pvx_browse]
Search, filters and rows of videos by category. It takes width. See
Browse and search.
The member library: [pvx_library]
Continue watching, the subscriptions feed, favorites, history, playlists and subscriptions of
the signed-in viewer. Guests are asked to sign in. It takes width. See
Member library.
Channels: [pvx_channels] and [pvx_channel]
[pvx_channels] shows a grid of all your channels. [pvx_channel id="12"] shows one
channel with its videos: put the channel’s id in id. Both take width. A channel’s own
page shows it without a shortcode. See Channels.
A series: [pvx_series]
[pvx_series id="34"], part of Pro, shows one series with its seasons and episodes. It takes id and
width. A series’ own page shows it without a shortcode. See
Series.
A playlist: [pvx_playlist]
[pvx_playlist id="56"] shows one playlist in its own order. It takes id and width.
A private playlist is only shown to its owner. See
Playlists.
Width
Every shortcode takes width, which overrides the Width on the site setting for that one
shortcode:
| Value | Result |
|---|---|
full |
The full width of the theme’s container. |
wide |
The theme’s wide width. |
content |
The theme’s reading width. |
Left out, or with any other value, the shortcode follows Settings -> General -> Player ->
Width on the site, which is full by default. See
Appearance.
[pvx_browse width="wide"]
[pvx_video id="706" width="content"]
On a block theme, give pages that hold these shortcodes the Video: Full-width page
template, so full can use the whole width.
Finding an id
A video’s id is the number in its edit address in the admin app: #/videos/706 is video
706. The same goes for #/channels/..., #/series/... and #/playlists/.... The Videos
list can also show each video’s ready-made shortcode.
Loading and caching
A page with a shortcode loads the plugin’s script and styles; a page without one loads nothing from the plugin. The shortcodes print nothing personal into the page, only an empty box of the right size that fills in after the page opens, so pages stay cacheable by a page cache.
Quick Links
Share