The PowerPress player shortcode allows you to control where the podcast player appears within your WordPress posts and pages.
A shortcode is a small piece of code that inserts specific functionality into your WordPress content.
Insert the PowerPress Player
To manually place the podcast player within your content:
- Open your post or page in the WordPress editor.
- Add a Shortcode block where you want the player to appear.
- Enter the following shortcode:
[powerpress] - Save or update your post or page.
If you use the Classic Editor, enter the shortcode directly into your content where you want the player to appear.
The shortcode must be entered in lowercase. By default, it uses the podcast episode associated with the post.
Customize the PowerPress Shortcode
PowerPress supports optional shortcode attributes that allow you to customize the player's behavior.
| Attribute | Description |
|---|---|
url |
Specifies a different media file. |
channel |
Selects a specific podcast channel. |
image |
Specifies a custom cover image. |
width |
Overrides the default video player width. |
height |
Overrides the default video player height. |
Shortcode Examples
Use a Custom Media File
To display a player for a media file other than the one associated with your episode, use the url attribute.
[powerpress url="https://example.com/media/episode.mp3"]
Replace the example URL with the direct URL of your media file.
Select a Podcast Channel
If you use custom podcast channels in PowerPress, you can specify which channel's player to display.
[powerpress channel="mychannel"]
Replace mychannel with your podcast channel's slug.
The default podcast channel uses the slug podcast.
[powerpress channel="podcast"]
Use a Custom Cover Image
To specify a different cover image, use the image attribute.
[powerpress image="https://example.com/images/cover.jpg"]
Replace the example URL with the direct URL of your image.
Note: Custom cover images are an experimental feature and may not work with all media types.
Troubleshooting
If your podcast player does not appear, check that:
- The shortcode is entered correctly and in lowercase.
- PowerPress is installed and activated.
- A podcast episode is associated with the post, or a valid media URL is specified.
- Any custom media or image URLs are publicly accessible.
If the issue persists, see Resolving Plugin or Theme Issues.
Comments
0 comments
Please sign in to leave a comment.