• Resolved Rose

    (@eos-rose)


    I have the following custom post type configured in the CPT UI plugin:

    function cptui_register_my_cpts_mypodcast() {
    
    	/**
    	 * Post Type: Podcast Audio.
    	 */
    
    	$labels = array(
    		"name" => __( "Podcast Audio", "bootstrap-dashboard" ),
    		"singular_name" => __( "Podcast Audio", "bootstrap-dashboard" ),
    	);
    
    	$args = array(
    		"label" => __( "Podcast Audio", "bootstrap-dashboard" ),
    		"labels" => $labels,
    		"description" => "",
    		"public" => true,
    		"publicly_queryable" => true,
    		"show_ui" => true,
    		"show_in_rest" => false,
    		"rest_base" => "",
    		"has_archive" => false,
    		"show_in_menu" => true,
    		"exclude_from_search" => false,
    		"capability_type" => "post",
    		"map_meta_cap" => true,
    		"hierarchical" => true,
    		"rewrite" => array( "slug" => "mypodcast", "with_front" => true ),
    		"query_var" => true,
    		"supports" => array( "title", "editor", "thumbnail", "page-attributes", "post-formats" ),
    		"taxonomies" => array( "writer", "duration" ),
    	);
    
    	register_post_type( "mypodcast", $args );
    }
    
    add_action( 'init', 'cptui_register_my_cpts_mypodcast' );

    I have 46 posts assigned to this custom post type with the PowerPress metabox all filled in with links to the appropriate MP3s. When I go to PowerPress > Podcast Channels, I see that my Podcast (default channel) has all these episodes counted under the Episodes column, but when I visit the feed RSS none of these episodes load in the RSS.

    As a test, I filled in the PowerPress metabox on a regular post. That episode appeared in the RSS feed without issue.

    The default channel is set to include All Post Types under Other Settings, so I’m not sure what I’m missing here. Please help! How do I make my custom post type appear in the feed as it should?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Shawn

    (@shawnogordo)

    You don’t really need to dig into any code in order to make Post Type Podcasting work. Have you followed all of the instructions here:
    https://create.blubrry.com/resources/powerpress/advanced-tools-and-options/post-type-podcasting/

    Thread Starter Rose

    (@eos-rose)

    It looks like maybe where I’m running into trouble is that my post type is hierarchical. Perhaps PowerPress is not the plugin for me, alas!

    Plugin Author Angelo Mandato

    (@amandato)

    Hello Rose,

    WordPress only creates permalink style feeds for post types that are not hierarchical. If you can imagine, hierarchical (pages) have a tree structure to determine the navigation, where-as blog posts are linear based on date, I believe this is why the limitation is in WordPress.

    PowerPress extends the feed functionality that is built into WordPress.

    If you are ok with a non-permalink URL to your feed, you can use post types that are hierarchical with the podcast feed slug. The URL would look something like this: example.com/?post_type=food&feed=italian-food-podcast (this would give you the post type podcast feed slug “italian-food-podcast” to the post type “food”. Note that the permalink structure is not available from the PowerPress screen because WordPress doesn’t map hierarchical pages with permalink feeds. Once you have 2+ deep tree you can see why this is difficult for WordPress.

    Thanks,
    Angelo

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Episodes on custom post type missing from feed’ is closed to new replies.