[audio:] Short Tag
Built-in Feature
The [audio:] short tag is used to render an audio player for an attached file, using the first audio player plugin available.
When you attach an audio file to a post and click on the blue (+) icon, a tag like [audio:123] will be automatically inserted at the cursor position in your post.
Note:
[audio:123] generates a block element (<audio>...</audio>) and cannot appear inside a paragraph. (b2evolution will automatically move it out of the paragraph).Syntax Breakdown
[audio: Link ID ]
Link ID: the ID of the linked file. The linked file must be of audio filetype.
Samples
[audio:123][audio:9992]
Proper placement
Because this tag will typically render to a block element (like <div>), it should not be placed into a paragraph (<p>). It should be placed between 2 paragraphs. If b2evolution finds the tag inside of a paragraph if will actually move it before the paragraph at rendering time.
![[audio:] Short Tag](https://b2evolution.net/media/blogs/man/quick-uploads/audio-short-tag/.evocache/audio_player_example.png/fit-1280x720.png?mtime=1470575979)