Custom Post Type not appearing in default feed
-
I recently created a custom post type and changed the setting of my default podcast channel to read Custom Post Type: All Post Types instead of Custom Post Type: Posts (post). I added a post to my custom post type with content in the Powerpress media file box and published it.
The item in my custom post type does not appear in my default feed no matter what I do.
My post type is setup like this:
function cptui_register_my_cpts_part() { /** * Post Type: Chapters. */ $labels = array( "name" => __( "Chapters", "bootstrap-dashboard" ), "singular_name" => __( "Chapter", "bootstrap-dashboard" ), ); $args = array( "label" => __( "Chapters", "bootstrap-dashboard" ), "labels" => $labels, "hierarchical" => false, "capability_type" => "post", "rewrite" => array( "slug" => "part", "with_front" => true ), "has_archive" => true, "publicly_queryable" => false, "supports" => array( "title", "excerpt" ), "exclude_from_search" => true, "show_ui" => true, "public" => true, "show_in_menu" => true, ); register_post_type( "part", $args ); } add_action( 'init', 'cptui_register_my_cpts_part' );
For the life of me, I don’t know what I’m doing wrong. The feed picks up my custom post type just fine if I set Custom Post Type: Chapters (part). I just can’t get multiple post types to appear in the feed.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Custom Post Type not appearing in default feed’ is closed to new replies.