Podcast episodes will not play
In some cases, your media files will not play at all. This will either result in the media player just doing nothing when users click on the play button, or the browser giving you a 404 error when you click on the ‘Download File’ or 'Pay in New Window' links. It will also cause your RSS feed to not validate and your feed to be rejected by iTunes because the audio files are not able to be accessed to play.
There are several reasons that this could be happening. Try stepping through the following steps one at a time to troubleshoot the issue:
Step One: Caching
If you are using a caching plugin (such as W3 Total Cache or WP Super Cache), then the problem is most likely that your podcast audio URLs are being unnecessarily cached. To work around this you simply need to set your plugin to exclude URLs that include strings like this from the cache:
https://gist.github.com/hlashbrooke/f370ee6219e6e6809ad6
The way to do this will depend on the plugin, but for W3 Total Cache the option is on the Performance Page Cache page and for WP Super Cache you will find it on the Settings WP Super Cache page.
Step Two: NGINX servers
Due to the unique ways some web hosts are set up, they may require a certain rule to be added to your site’s configuration in order for Seriously Simple Podcasting to work correctly. In order to do this, you simply need to log a support ticket with them and send them the following message:
Hi there,
I am using the Seriously Simple Podcasting plugin. In order for me to take full advantage of the plugin I need you to add the nginx bypass rule for the podcast-download
and podcast-player
URLs to my site's config.
Please add this to NGINX Before Rule
# Seriously Simple Podcasting
rewrite podcast-download/([^/]+)/([^/]*)/? /index.php?podcast_episode=$1 break;
rewrite podcast-player/([^/]+)/([^/]*)/? /index.php?podcast_episode=$1&podcast_ref=player break;
Thanks!.
If you have this issue with your audio files but have no idea if your server is built on nginx or not, then please contact your host and send them the link to this guide.
Last Resort
If you have tried all of these options and you still have absolutely no luck, then the absolute last resort is to add the following snippet to the functions.php
file of your theme (or child theme):
Note that this is an absolute last resort and is not recommended. You will almost never need to go this route, but it will ultimately enable the audio files to work correctly if nothing else is working for you. The downside of this method is that you cannot take advantage of the added security that the plugin’s built-in URL rewrites offer. It also means that you will also not be able to use the integrated Stats add-on.