In addition to the shortcode features in the free plugin, pro plugin also support many other features and styling options. We need to learn a few more shortcode attributes to showcase a fully featured pro podcast player. With new shortcodes, we can also display podcast player using WP posts or any post type as episodes. We do not need to enter feed_url in this shortcode.
Instructions and Attributes list for podcast player pro shortcode
Easily display Podast player using Shortcode as mentioned in following steps. Podcast Player data will be fetched from Posts or post types.
Minimum Setup
[podcastplayer fetch_method='post' post_type='post OR any_custom_post_type']
Advanced Setup
[podcastplayer fetch_method='post' post_type='post OR any_custom_post_type' taxonomy='category/tag OR any_custom_taxonomy' terms='comma_separated_list_of_terms']
For advanced setup, there are many shortcode parameters you can use to customise display of your podcast player. Shortcode parameters mentioned in above example is just for demonstration purpose. You need not use all of the parameters mentioned in below table, just use whatever is required to achieve a particular customization.
Complete list of parameters is as below,
Minimum required attributes
Attribute | Default Value | Description |
---|---|---|
fetch_method | ‘feed’ | How to fetch podcast episodes. Options: feed (fetch from feed url), post (fetch from post or post type), link (fetch from audio or video URL) |
post_type | ‘post’ | Enter post or post type from which episodes are to be fetched. |
Get Required content
Attribute | Default Value | Description |
---|---|---|
taxonomy | ” | Select taxonomy to filter episodes list. |
terms | ” | comma separated list of taxonomy terms from which episodes are to be fetched. |
Customize Podcast Content
Attribute | Default Value | Description |
---|---|---|
podtitle | ” | Podcast main title |
cover_image_url | ” | Your Podcast’s cover image url |
podcast_menu | ” | Any WordPress menu’s name, ID OR slug |
number | 10 | Number of podcasts episodes to be displayed at a time |
excerpt_length | 18 | Excerpt length (only with default and premium display style) |
Podcast Subscription Links
Attribute | Default Value | Description |
---|---|---|
apple_sub | ” | Apple podcast subscription link |
google_sub | ” | Google podcast subscription link |
spotify_sub | ” | Spotify podcast subscription link |
breaker_sub | ” | Breaker subscription link |
castbox_sub | ” | Castbox subscription link |
castro_sub | ” | Castro subscription link |
iheart_sub | ” | iHeart subscription link |
overcast_sub | ” | Overcast subscription link |
castbox_sub | ” | Castbox subscription link |
pocketcasts_sub | ” | Pocketcasts subscription link |
podcastaddict_sub | ” | Podcastaddict subscription link |
podchaser_sub | ” | Podchaser subscription link |
radiopublic_sub | ” | Radiopublic subscription link |
soundcloud_sub | ” | Soundcloud subscription link |
stitcher_sub | ” | Stitcher subscription link |
tunein_sub | ” | Tunein subscription link |
youtube_sub | ” | YouTube subscription link |
bullhorn_sub | ” | BullHorn subscription link |
podbean_sub | ” | Podbean subscription link |
playerfm_sub | ” | PlayerFM subscription link |
Show / Hide Player Items
Attribute | Default Value | Description |
---|---|---|
header_default | false | Show player header items by default |
list_default | false | Display Episodes list by default on small screen |
hide_header | false | Hide player header items |
hide_title | false | Show / Hide podcast Title in header info section |
hide_cover | false | Show / Hide podcast cover image |
hide_description | false | Show / Hide podcast description |
hide_subscribe | false | Show / Hide podcast subscribe button |
hide_search | false | Show / Hide podcast search field |
hide_author | false | Show / Hide author/podcaster’s name |
hide_content | false | Show / Hide podcast episode’s content |
hide_loadmore | false | Show / Hide podcast load more button |
hide_download | false | Show/ Hide podcast episode download link |
hide_social | false | Show/ Hide podcast episode social sharing links |
hide_featured | false | Hide podcast episode featured image (Value: true OR false) |
Podcast player styling
Attribute | Default Value | Description |
---|---|---|
accent_color | #65b84f | Podcast player’s accent color hexcode |
display_style | ” | Podcast player display style. Options: ” (for default view OR do not use this attribute), legacy (for legacy view), gv1 (for Grid View), gv2 (for Material Grid View), lv1 (for list view), lv2 (for small list view), lv3 (for minimalist list view), lv4 (for individual list view) |
bgcolor | ” | Background Color hex code (i.e., #262626). |
txtcolor | ” | Make light text color for grid and list view (use txtcolor=”ltext”). |
aspect_ratio | ‘squr’ | Featured image aspect ratio (only with grid view and list view display style). Options: land1 (for landscape 4:3), land2 (for landscape 3:2), port1 (for portrait 3:4), port2 (for portrait 2:3), wdscrn (for widescreen 16:9), squr (for square 1:1) |
crop_method | ‘centercrop’ | Featured image crop method (only with grid view and list view display style). Options, topleftcrop, topcentercrop, centercrop, bottomleftcrop, bottomcentercrop |
grid_columns | 3 | Number of grid columns (only with grid view display style) |
font_family | ” | Name of google font to be loaded. |
Sort & Filter options
Attribute | Default Value | Description |
---|---|---|
sortby | sort_date_desc | Sort episodes (Available options: sort_date_desc, sort_date_asc, sort_title_desc, sort_title_asc) |
filterby | ” | Filter by any string in episode’s title |
Custom Audio Message
Attribute | Default Value | Description |
---|---|---|
audio_msg | ” | URL of mp3 audio file which is to be played before, after or during podcast episodes. |
play_freq | 0 | After how many episodes the audio should be replayed. |
msg_start | ‘start’ | When to start playing the audio message. Possible values are: start (Play at the beginning of the episode.) end (Play at the end of the episode.) custom (Play at any given custom time. Check below mentioned ‘msg_time’ option below) |
msg_time | ’00:00:00′ | Required only if above msg_start is set as ‘custom’. Enter time at which the audio should be played in hh:mm:ss format. |
msg_text | ” | Message text to be displayed while playing audio. |