Keep your podcast and RSS feed synchronized with your existing hosting

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

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://yourdomain.com/rssfeed', $import_category = 39, $import_attachments = true, $import_settings = false );

4. Replace 'https://yourdomain.com/rssfeedby 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.

5. Save it

Here is a screenshot to illustrate the setup of a cron job: