Omny.fm is a high-end podcast and audio hosting service with integrated player analytics. It's a premium service typically used by radio stations and other audio professionals because of a range of features that permits editing, live cloud capture, and audience analytics. While not typically used by your everyday podcaster, there are times when you might integrate the player into your WordPress website, and this article provides the necessary code to achieve that end.
As with any embed code, shortcode is almost always a better alternative to raw embed code because of the ease of which global player changes can be made (changing the shortcode alters each occurrence of the player on your website).
I've referenced an audio clip from Alan Jones' radio program in our examples (and for no particular reason except it was the first I found). I've also truncated the URL for page formatting purposes.
The player renders in three flavours:
[omny url="https://omny.fm/show .. d-with"] returns the following:
[omny url="https://omny.fm/show .. d-with" style="cover"] returns the following:
[omny url="https://omny.fm/show .. d-with" style="square"] returns the following:
Copy and paste the WordPress function into your theme's
functions.php file or, if you sensibly have one installed, your custom functions plugin.
The following attributes are available to alter the appearance of the player.
widthto your liking. If using a square player, the height will inherit your width.
square(as shown above)