• Resolved tonleu

    (@tonleu)


    I would like to use a cpt for my podcast. But every time I create the cpt, the podcast episode box does not appear below the content.
    Here is the cpt declaration I used.

    register_post_type('podcast', array(
    		'show_in_rest' => true,
    		'has_archive' => true,
    		'supports' => array('title', 'editor', 'thumbnail'),
    		'taxonomies' => array( 'category' ),
    		'public' => true,
    		'capability_type' => 'post',
    		'rewrite' => true,
    		'hierarchical' => false,
    		'labels' => array(
    			'name' => 'Podcasts',
    			'add_new_item' => 'Add A Nouveau Podcast',
    			'edit_item' => 'Edit Podcast',
    			'all_items' => 'All Podcasts',
    			'singular_name' => 'Podcast'
    		),
    		'menu_icon' => 'dashicons-microphone'
    	));
    

    So I don’t know what I’m doing wrong

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

    (@benzoid)

    The best way to do a CPT is to use the CHANNELS feature instead of Post Type podcasting.

    You setup a channel and then in the “other” menu in the channel settings, select the post type you would like to use.

    Thread Starter tonleu

    (@tonleu)

    Thank you for your answer.
    I did as you said and created a channel and linked to a Post type. I then created an episode and validated the feed.
    The problem now is that every time I do the import, the episodes are put in the default post and not in the post type to which I linked the channel.

    I don’t know if I forgot a step

    Plugin Support Mike Dell

    (@benzoid)

    No, You didn’t forget something. I forgot about the CPT.

    So, to fix that Install a plugin called “Post Type Switcher” and then you can move the posts from Posts to your CPT. That will get it into the feed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with cpt’ is closed to new replies.