Support » Plugin: Seriously Simple Podcasting » Customizing for Churchope Theme

  • I use the Churchope theme which has a custom type called Sermons and has custom fields for the mp3. Is there a way to customize the plugin to use those values?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Anyone???

    Plugin Author Craig Hewitt

    (@podcastmotor)

    Hi Josh,

    Assuming you’re looking to include the podcast episodes in the Sermons post type, right? In the Podcast->Settings->General area it gives you the option to include different post types in the podcast feed. Selecting your Sermon CPT should include those posts in the podcast feed.

    From there you’ll just upload the podcast episodes in the Sermon posts as usual and they’ll be included in the feed.

    Let me know how it goes.

    You can use something like this to fetch the URL of the media that you already have in your post meta (replacing cmb_thst_audio_url with whatever your custom post meta name is):

    
    function ssp_fetch_existing_media_url( $url, $episode_id ) {
    	return get_post_meta( $episode_id, 'cmb_thst_audio_url', true );
    }
    add_filter( 'ssp_episode_enclosure', 'ssp_fetch_existing_media_url', 10, 2 );
    

    Either add this in your child theme’s functions.php or in a small functional plugin.

    While it does make the player work on all the posts, I’m not seeing it automatically include all the posts in the /feed/podcast/ feed though. So might need another bit of code or something to fill in the feed?

    Digging into the code, in the ssp_episode_ids function there’s a meta_query to check if the audio_file meta value is set (the one Seriously Simple Podcasting uses).

    So currently you’ll need to write a little script to go through each post, and set the audio_file meta value to the value of your custom post meta with the audio file URL.

    • This reply was modified 2 years, 4 months ago by  Brian Hogg.
    Plugin Author Craig Hewitt

    (@podcastmotor)

    Thanks for digging into this Brian and for your help with the code snippets. Josh, if you have any other questions just let us know. Happy to dig in further to help you out with this.

    Craig

    @podcastmotor – No worries! Looks like it may just need another filter in the ssp_episode_ids to change the post meta field name.

    Is there a github for the plugin by chance? Could submit a pull request.

    • This reply was modified 2 years, 4 months ago by  Brian Hogg.
    Plugin Author Craig Hewitt

    (@podcastmotor)

    Yep for sure. Here’s the github repo: https://github.com/TheCraigHewitt/Seriously-Simple-Podcasting Feel free to submit a pull request. Would be great. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Customizing for Churchope Theme’ is closed to new replies.