Skip to content

Shortcode Reference

The EnaCast plugin provides 10 shortcodes to display your radio station’s content in WordPress. Each shortcode has optional attributes to customise its behaviour.

Displays a grid with all the station’s programs. Includes a search bar, filters and pagination.

AttributeDescriptionDefault Value
onairShow only on-air programs (1) or all (empty)1
featuredShow only featured programs (1)empty
searchSearch textempty
per_pageResults per page20
pageCurrent page1

Example:

[enacast_programs onair="1" per_page="12"]

Displays the full profile of an individual program, including logo, description, schedule (with start and end times) and its latest episodes. Includes a “See all episodes” link to browse the complete episode list.

AttributeDescriptionDefault Value
codenameProgram identifier(from URL parameter)
show_podcastsShow the program’s podcasts (1/0)1
podcast_countNumber of podcasts to display10

Example:

[enacast_program codename="myshow" show_podcasts="1" podcast_count="5"]

ℹ️ Note: you usually do not need to specify codename. The detail page receives the ?program=codename parameter automatically from the programs list.

Displays a grid of episodes (podcasts), ordered from newest to oldest. Includes search and program filter.

AttributeDescriptionDefault Value
programFilter by program codenameempty (all)
searchSearch textempty
per_pageResults per page20
pageCurrent page1

Example:

[enacast_podcasts program="myshow" per_page="12"]

Displays the full profile of an episode with audio player, time markers, summary and metadata. Includes breadcrumb navigation showing the parent program name with a link back to the program detail page.

AttributeDescriptionDefault Value
idPublic podcast identifier(from URL parameter)

Example:

[enacast_podcast id="myradio_podcast_12345"]

Displays published news/articles, with filters by tag, year, month and search.

AttributeDescriptionDefault Value
tagFilter by tagempty
searchSearch textempty
yearFilter by yearempty
monthFilter by monthempty
per_pageResults per page20
pageCurrent page1

Example:

[enacast_news tag="culture" per_page="10"]

[enacast_news_article] — News Article Detail

Section titled “[enacast_news_article] — News Article Detail”

Displays a full article with featured image, body, tags and metadata. Includes a “Back to news” navigation link at the top.

AttributeDescriptionDefault Value
idPublic news identifier(from URL parameter)
slugNews slug (alternative to id)empty

Example:

[enacast_news_article slug="new-season-2025"]

Displays the weekly broadcast schedule in a grid format with all 7 days, including times, logos and links to each program. Includes week-by-week navigation.

AttributeDescriptionDefault Value
weekISO week numbercurrent week
yearISO yearcurrent year

Example:

[enacast_schedule]

ℹ️ Note: in most cases you do not need to specify any attributes. The shortcode automatically displays the current week and allows navigation with the arrows.

Displays the program currently being broadcast, with an auto-refresh option.

AttributeDescriptionDefault Value
show_nextAlso show the next program (1/0)0
refreshAuto-refresh interval in seconds (0 to disable)0

Example:

[enacast_now_playing show_next="1" refresh="60"]

Displays the station’s upcoming events, with tag filter.

AttributeDescriptionDefault Value
tagFilter by tagempty
per_pageResults per page20
pageCurrent page1

Example:

[enacast_agenda tag="concerts" per_page="10"]

Displays the content of a custom page created in the EnaCast admin panel.

AttributeDescriptionDefault Value
slugCustom page slugempty

Example:

[enacast_page slug="about-us"]

The list shortcodes ([enacast_programs], [enacast_podcasts], [enacast_news], [enacast_agenda]) include automatic AJAX filtering: filters, search and pagination work without reloading the page. The URL is automatically updated to allow sharing filtered links.