Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tdturn2

    (@tdturn2)

    Well, I figure out how to get it to feed into the homepage RSS. I had to disable the option to do so within the settings and put it manually within functions.php.

    // ADDING PODCAST TO HOMEPAGE QUERY
    function my_get_posts( $query ) {
    	if ( is_home() && $query->is_main_query() )
    		$query->set( 'post_type', array( 'post', 'podcast' ) );
    	return $query;
    }
    
    // ADDING PODCAST TO RSS
    function mycustomfeed_cpt_feed( $query ) {
            if ( $query->is_feed() )
                $query->set( 'post_type', array( 'post', 'podcast' ) );
            return $query;
    }
    add_filter( 'pre_get_posts', 'mycustomfeed_cpt_feed' );

    So, it shows up now, however, the RSS feed doesn’t validate and is throwing errors due to this line:<enclosure url="https://s3.amazonaws.com/ats-ymc/YMC_Episode003.mp3" length="" type=""/>

    The length and type values are null. Any thoughts or ideas how to resolve this?

    Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    This is all sorted out in v1.8 of the plugin that I have just released. Please read this for more information: https://www.hughlashbrooke.com/2015/01/important-upgrade-information-seriously-simple-podcasting-v1-8/

    Cheers,
    Hugh

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom post type (podcast) not showing in RSS’ is closed to new replies.