Home Blog Embed an Omny.fm Audio Player With WordPress Shortcode

Embed an Omny.fm Audio Player With WordPress Shortcode


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).

The Result

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:

artwork (default)

Shortcode of [omny url="https://omny.fm/show .. d-with"] returns the following:


Shortcode of [omny url="https://omny.fm/show .. d-with" style="cover"] returns the following:


Shortcode of [omny url="https://omny.fm/show .. d-with" style="square"] returns the following:

WordPress Shortcode

Copy and paste the WordPress function into your theme's functions.php file or, if you sensibly have one installed, your custom functions plugin.

If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.

Shortcode Attributes

The following attributes are available to alter the appearance of the player.


The page URL of the audio clip.


We’ve wrapped the player in a container to avoid the player stretching to 100% by default. Alter the width to your liking. If using a square player, the height will inherit your width.


Available player types are artwork (default), cover, or square (as shown above)


Omny has an API that provides some seriously funky features . We’ll be sharing some features of the API sometime soon via the tag of omny Tag: omny


Title: Embed an Omny Audio Player With WordPress Shortcode
Description: Embed an Omny.fm Audio Player With WordPress Shortcode. Includes options to alter the player appearance.
Download: Shortcode (V0.1) | Plugin Page

■ ■ ■

Interested in WordPress and Web Design? Subscribe to our list and we'll send you subscriber-only tools and plugins

Short URL for this post: http://shor.tt/Jon


Please enter your comment!
Please enter your name here