# OnAir Wordpress Plugin

**URL:** <https://discourse.libretime.org/t/onair-wordpress-plugin/718>\
**Category:** Dev Talk\
**Created:** [November 25, 2020, 11:54am UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718 "2020-11-25T11:54:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OliCat](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@OliCat](https://discourse.libretime.org/u/OliCat)\
**Post date:** [November 25, 2020, 11:54am UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/1 "2020-11-25T11:54:41Z")

</div>

Hello,  
For [our radio](https://cause-commune.fm), we use airtime (v2.5.2) and Wordpress with the Onair2 theme.

We are using a wp plugin which connected to the airtime API, displays what is on the air and retrieves the image of the show.

The code is here: [https://github.com/OliCat/onair-wp-plugin](https://github.com/OliCat/onair-wp-plugin)

A plugin that displays the week’s program on the same principle would undoubtedly be interesting.  
Feel free to contribute to the existing code 🙂

---

<div class="post-metadata">

**Author:** ![bobjonkmandj](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/bobjonkmandj/32/340_2.png) [@bobjonkmandj](https://discourse.libretime.org/u/bobjonkmandj)\
**Post date:** [November 25, 2020, 6:32pm UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/2 "2020-11-25T18:32:36Z")

</div>

We’re using a shortcode plugin “Insert PHP Code Snippet” [https://wordpress.org/plugins/insert-php-code-snippet/](https://wordpress.org/plugins/insert-php-code-snippet/) and some custom code to generate our weekly schedule: [https://radiowaterloo.ca/schedule](https://radiowaterloo.ca/schedule)

After [today’s Dev conference](https://discourse.libretime.org/t/online-libretime-meetup-25-november-2020-19-00-utc/713) I’ll post the code…

I’m also working on a “week-info-2-ics” script, so you can view the schedule in any iCal conformant calendar, but that hasn’t progressed beyond the thinking stage yet.

–Bob.

---

<div class="post-metadata">

**Author:** ![gusaus](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/gusaus/32/42_2.png) [@gusaus](https://discourse.libretime.org/u/gusaus)\
**Post date:** [December 1, 2020, 9:51pm UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/3 "2020-12-01T21:51:26Z")

</div>

> [@OliCat](#):
>
> We are using a wp plugin which connected to the airtime API, displays what is on the air and retrieves the image of the show.

Not yet possible with LibreTime since there’s not yet a stable API? There might be some potential for integration with the [Radio Station plugin](https://netmix.com/radio-station/). See [Planning out an API - #7 by djtonyz](https://discourse.libretime.org/t/planning-out-an-api/341/7)

---

<div class="post-metadata">

**Author:** ![OliCat](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@OliCat](https://discourse.libretime.org/u/OliCat)\
**Post date:** [December 1, 2020, 10:40pm UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/4 "2020-12-01T22:40:56Z")

</div>

Hello,

The plugin was written for our wordpress theme but it’s necessarily adaptable. Besides, it also works with current versions of LibreTime.

OliCat

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [December 5, 2020, 5:01pm UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/5 "2020-12-05T17:01:55Z")

</div>

Thanks for sharing this. This is cool.

---

<div class="post-metadata">

**Author:** ![gusaus](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/gusaus/32/42_2.png) [@gusaus](https://discourse.libretime.org/u/gusaus)\
**Post date:** [December 16, 2020, 10:48pm UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/6 "2020-12-16T22:48:02Z")

</div>

Is this supposed to appear as a widget when enabled? Would be ideal if WordPress could pull in additional data via the API

> [@Planning out an API](https://discourse.libretime.org/t/planning-out-an-api/341/7):
>
> I maintain the Radio Station plugin for WordPress and we are looking to pull the following from LibreTime: Shows Show Schedule DJ (user) Playlists Live Stream URL We would love to read/write though back into LibreTime, so once the show schedule is passed into WordPress on the first connection, the show schedule can be updated in WordPress the push up into LibreTime. We’d want to create in WordPress new shows that are crated and scheduled in LibreTime, so they publish into WordPress automatic…

Better yet, integration with a player, similar to OnAir2/Pro.Radio - [Radio Player with non-stop music, compatible with any mp3/aac stream | Pro.Radio](https://pro.radio/theme-features/radio-player/)

---

<div class="post-metadata">

**Author:** ![OliCat](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@OliCat](https://discourse.libretime.org/u/OliCat)\
**Post date:** [December 17, 2020, 9:59am UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/7 "2020-12-17T09:59:27Z")

</div>

Hello @gusaus , it appears as a plugin not a widget. It is possible via wordpress to retrieve any information from the API. We are currently looking for a developer to create a calendar plugin and also improve the player.

---

<div class="post-metadata">

**Author:** ![gusaus](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/gusaus/32/42_2.png) [@gusaus](https://discourse.libretime.org/u/gusaus)\
**Post date:** [December 17, 2020, 7:30pm UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/8 "2020-12-17T19:30:52Z")

</div>

Thanks OliCat

> [@OliCat](#):
>
> it appears as a plugin not a widget

I downloaded and enabled the plugin to test - it wasn’t clear how to use or where the settings can be accessed.

> [@OliCat](#):
>
> We are currently looking for a developer to create a calendar plugin and also improve the player.

These would be addons to the same plugin? If yes, I’d recommend taking a look at what @djtonyz is [planning for the Radio station plugin](https://discourse.libretime.org/t/question-about-user-api-uploading-from-wordpress-and-podcast-function/298/32) and possibly contributing to that effort.

---

<div class="post-metadata">

**Author:** ![gusaus](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/gusaus/32/42_2.png) [@gusaus](https://discourse.libretime.org/u/gusaus)\
**Post date:** [January 19, 2021, 9:09pm UTC](https://discourse.libretime.org/t/onair-wordpress-plugin/718/9 "2021-01-19T21:09:16Z")

</div>

This related issue in the Radio Station plugin queue references [MetaRadio](https://mediarealm.com.au/metaradio/). Curious how many LibreTime folks use or are aware of their service/plugin.

> <https://github.com/netmix/radio-station/issues/310>
>
> Describe the solution you'd like
> If a custom play button was implemented can it have a widget/shortcode so it shows up to...
