• Resolved antgiant

    (@antgiant)


    If you are willing to to modify code of this plugin here are a few bug fixes that are valid for both 2.0.2 and 2.0.3

    Making Shortcode output again themeable by the standard advice
    Open “/includes/shortcodes.php” in Plugin Editor and go to line 261.
    You will find <?php wpfc_sermon_excerpt(); ?>
    Change it to <?php do_action( 'sermon_excerpt' ); ?>

    Fix issue where podcast enclosures are sometimes duplicated
    Open “/includes/podcast-functions.php” in Plugin Editor and got line 126.
    Add this

    	function wpfc_podcast_delete_enclosure() {
    	    return '';
    	}

    The go to line 136 and add this line after what’s there
    add_filter( 'rss_enclosure', 'wpfc_podcast_delete_enclosure' );

    Convert all https links to http in podcast feed. (Only http links pass validation.)
    On line 48 of “/includes/podcast-functions.php”
    Replace $audio = get_post_meta($post->ID, 'sermon_audio', 'true');
    With $audio = str_ireplace('https://', 'https://', get_post_meta($post->ID, 'sermon_audio', 'true'));
    On line 67 of “/includes/podcast-functions.php”
    Replace $post_image = ( $post_image ) ? $post_image['0'] : null;
    With $post_image = str_ireplace('https://', 'https://', ( $post_image ) ? $post_image['0'] : null);

    • This topic was modified 8 years ago by antgiant.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Kilmanagh

    (@kilmanagh)

    Does any of this fix the destruction of the XML sitemap in Yoast SEO?
    “ERROR: This is not a valid feed template.” on sitemap_index.xml with every site using Sermon Manager.

    Kilmanagh

    (@kilmanagh)

    No it doesn’t. I guess I will have to find where the Podcast rewrite is at, and comment it out.

    Plugin Author wpforchurch

    (@wpforchurch)

    Hey guys,

    This has been resolved in version 2.0.6. Please update and let us know how it goes.

    Thanks for your patience,

    Igor

    Thread Starter antgiant

    (@antgiant)

    As of 2.0.8 Three of the four issues listed above are resolved. Thank you!

    The final issue is that if you add an audio file to a sermon it sometimes gets attached as an enclosure. Due to how the podcast feed is generated that causes those audio files to be added as an enclosure twice. There are two options to handle this. Delete the system generated enclosure or put your logic for enclosures into the system location. I elected for option A. That requires this change

    Fix issue where podcast enclosures are sometimes duplicated
    Open “/includes/podcast-functions.php” in Plugin Editor and go to line 133.
    Add this

    
    	function wpfc_podcast_delete_enclosure() {
    	    return '';
    	}

    The go to line 139 or 140 and add this line after what’s there
    add_filter( 'rss_enclosure', 'wpfc_podcast_delete_enclosure' );

    Hey @antgiant, thank you!

    The fix will be available in the next release.

    Thread Starter antgiant

    (@antgiant)

    @nikolam Awesome! Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Various Bug Fixes’ is closed to new replies.