audio_item Shortcode

The audio_item shortcode renders the audio track component.

The attributes below match the current Page Builder controls and public output. Use raw syntax only for reviewed content that cannot be maintained through the visual controls.

Allowed parent shortcodes: audio_playlist.

Usage

[audio_item]

Attributes

Attribute Default Accepted values Purpose
author — String unless stated otherwise Controls the author.
title — String unless stated otherwise Controls the title.
file_url — String unless stated otherwise Controls the audio file url.
purchase_url — String unless stated otherwise Controls the purchase audio url (optional).
duration 00:00 m:ss or h:mm:ss Optional display label; playback uses the actual file duration. Invalid labels are omitted.
enable_download_button — yes If checked, the audio track will include a download link.
el_id — Valid unique HTML ID Enter element ID (Note: make sure it is unique and valid according to w3c specification).
el_class — String unless stated otherwise If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.

Verification

Keep audio_item inside audio_playlist; verify the child order and the parent interaction on the public page. Pay particular attention to author and title.

Use valid public audio URLs. Purchase links open in a new tab; download behavior for cross-origin files depends on their server. Set device visibility on the parent playlist. Titles and authors are plain text. The Gutenberg equivalent is the constrained Audio item inside Audio Playlist.