Podcasting and Media
AppPresser works great for podcasts, videos, and any type of media. You can integrate your podcasts from plugins like Blubrry Powerpress, Seriously Simple Podcasting, and others. You can also do this with no podcasting plugin at all.
Here are the steps:
- Setup your podcast post type in WordPress
- Add your AppPresser media urls to each post
- Create the podcasts page in your app
Setup the Media in WordPress
First, login to your WordPress site, and visit the AppPresser => Settings page.
Under Media Post Types, select the post types you will use for your podcasts. For example, podcasts, or posts.
Add Media URLs to Each Post
Next, you need to add the media urls for the app. Visit a post that you want to show in your media list, and scroll down to the AppPresser Media URL meta box. Enter the full url of the media file and save.
Do this for each post you want in your media list. Only posts that have this media url will show up in the app.
You can also add these urls programatically by using the post meta key 'appp_media_url'. Here's an example.
Seriously Simple Podcasting Plugin
If you are using the SSP plugin, you don't need to manually add the media urls. Just install and activate this plugin, select the "Podcast" post types under the Media Post Types, and it will all be done automatically for you. The Seriously Simple Podcasting plugin works with Castos, or with your local media library.
If you are using a different podcasting plugin, or just have a custom setup, it is possible to add the media urls programmatically. We have some sample code here.
Create the Podcasts Page
Next, create a new custom page in your app, and add a list of your podcasts.
Go to your app customizer, Custom Pages => Add New.
Choose the Page Builder, and add the Podcasts/Media block.
Replace the route with the url to the media post type you chose in your settings. For example, if you are using normal posts, it would be https://mysite.com/wp-json/wp/v2/posts
Some plugins use a custom post type with a slug of "podcast", so the route would be https://mysite.com/wp-json/wp/v2/podcast
The route would depend on your site.
Save the page and rebuild your app preview to see it in action. Media playback only works on a device.
Alternatively, if you'd like the page to look like a "playlist" with no show notes or details, choose Media. Fill out the details, here is more information on this type of media list.