Podcast

Contents

1. How to import your podcast from a RSS Feed

2. Automatically fetch/import new episodes on your website from your existing Podcast hosting

3. How to use my own YouTube channel in the grid

4. How to use the podcast Show page template

1. How to import your podcast from a RSS Feed

1. Create a Podcast Category

First, we recommend that you create a new podcast category (where your episode will be imported into) by going to wp-admin > Podcast Episodes > Podcast Category > add new.


2. Import the feed

To import your existing podcast episodes into your theme, go to wp-admin > tools > import > Podcast RSS Feed > Run importer

Paste the URL link of your actual RSS feed into the RSS Link URL field and we will import the episodes. Before importing your RSS feed, make sure you have a valid RSS Feed. You can validate it here: https://castfeedvalidator.com/


3. Keep your episode synchronized with a third party

If you are want to synchronize your exisiting RSS feed and episodes to your wordpress site and avoid running this importation process everytime, you will need to setup a cron-job. Please read this article.

2. Automatically fetch/import new episodes on your website from your existing Podcast hosting

With Sonaar, you have the option to import your RSS feed at your choosen interval by using a "Cron Job".


If you run Sonaar v4.19.2 or an higher version, you must add a Cron Event

1. Install WP Crontrol plugin and activate it.

2. Go to WP-Admin > Tools > Cron Events > Add Cron Event

3. Use these settings:

Hook name: sonaar_rssimport

Arguments: 

[{"cat_id":"99","feed_url":"https://yourpodcasthosting.com/rss.xml"}]

See screenshot: https://d.pr/i/W87woA

4. Replace the number 99 by your Podcast Episode category ID. To find out your podcast category ID, see screenshot: https://d.pr/i/6kAt67

5. Replace 'https://yourpodcasthosting.com/rss.xmlby your own RSS URL. Keep the double quotes!

6. Set your next run and its reccurance.

7. Click Add Event.

* If you want to force importing the new episodes right away, you can always manually trigger the cron job by hover the cron title and click RUN NOW. See screenshot https://d.pr/i/SpSoSd

* If your new episodes do not import, make sure they are not already present in WP-Admin > Podcast Episodes and also that they are NOT in your trash. See screenshot https://d.pr/i/FDadFF

If you run Sonaar v. 4.19.1 or lower, you must add a PHP Cron Event


1. Install WP Crontrol plugin and activate it.

2. Go to wp-admin > tools > Cron Events > Add PHP Cron Event

3. Add this code in "Add PHP Cron Event tab"

// Set up the environment
if ( ! defined('ABSPATH') ) {
    require_once( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/wp-load.php' );
}
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
define( 'WP_LOAD_IMPORTERS', true );
require_once IRON_MUSIC_DIR_PATH . 'includes/rss-importer/class-podcast-rss-import.php';
// run function
Sonaar_RSS_Import::run_import( 'https://yourpodcasthosting.com/rss.xml', $import_category = 39, $import_attachments = true, $import_settings = false );

4. Replace 'https://yourpodcasthosting.com/rss.xmlby your own RSS URL. You must keep the single quotes

5. Replace the number 39 in $import_category = 39  by your Podcast Episode category ID. To find out your podcast category ID, see screenshot: https://d.pr/i/6kAt67

6. set your next run and its reccurance.

7. Save it

* If your new episodes do not import, make sure they are not already present in WP-Admin > Podcast Episodes and also that they are NOT in your trash. See screenshot https://d.pr/i/FDadFF

Here is a screenshot to illustrate the setup of a PHP Cron Event


3. How to use my own YouTube channel in the grid

To display the YouTube videos in our grid (eg: https://demo.sonaar.io/standup-elementor/video-youtube-channel/), we use Essential Grid plugin. The video displayed in that grid is pulled directly from our YouTube channel. To replace the YouTube channel by your own, follow these steps.

1) Go to wp-admin > Ess Grid.

2) Locate the grid's name you are using in your page (https://d.pr/i/DqKCzB) and click settings (https://d.pr/i/cGGEO1)

3) Go to the source tab and change the info by your own: https://d.pr/i/v06m4p

Find information about the YouTube API key here

See how to find the Youtube channel ID here

Once your info will be set, you will be able to select your own playlist. 

4) You can clear the cache to make sure it pulls the up to date information with your channel; https://d.pr/i/TodT3g

5) You are now ready to display the grid on your website. Edit any of your pages with Elementor then add the widget Sonaar: Essential Grid and select the corresponding grid. Publish! https://d.pr/i/wa5SLZ


4. How to use the podcast Show page template

Suppose your website will contain only one podcast show. In that case, you will probably don't use a specific show page. Your website might represent your single show, so you will quickly display your episodes using Elementor's Podcast Widget or Essential Grids on any pages you'd like.

But if you have multiple shows to represent, you will probably want to set a single page per show to list their episodes.

Here is a use-case on how to do it: