• Hi Blubrry team,

    I have created on a local environment a plugin to register a new custom post type in my WordPress called “Podcast”.

    I would like to have this specific custom post type to have a second blog that shows only the entries that contain an episode of the podcast.

    The only problem I have found is that I can not find a way to show the “Podcast episode” box when editing the Custom Post Type “Podcast” entries registered by my plugin.

    I see these options in the standard entries and pages, but not in the Custom Post Type entries.

    I have also checked the “Screen options” tab and there is no option to show the “Podcast episode” box

    This is the plugin code that registers my custom post type

    function create_cpt_podcast() {

    $tags = array(
    ‘name’ => _x( ‘Podcast’, ‘post type general name’, ‘podcast-post-type’ ),
    ‘singular_name’ => _x( ‘Podcast’, ‘post type singular name’, ‘podcast-post-typen’ ),
    ‘menu_name’ => _x( ‘Podcast’, ‘admin menu’, ‘podcast-post-type’ ),
    ‘name_admin_bar’ => _x( ‘Podcast’, ‘add new on admin bar’, ‘podcast-post-type’ ),
    ‘add_new’ => _x( ‘A?adir nuevo podcast’, ‘book’, ‘podcast-post-type’ ),
    ‘add_new_item’ => __( ‘A?adir nuevo podcast’, ‘podcast-post-type’ ),
    ‘new_item’ => __( ‘Nuevo podcast’, ‘podcast-post-type’ ),
    ‘edit_item’ => __( ‘Editar podcast’, ‘podcast-post-type’ ),
    ‘view_item’ => __( ‘Ver podcast’, ‘podcast-post-type’ ),
    ‘all_items’ => __( ‘Todos los podcast’, ‘podcast-post-type’ ),
    ‘search_items’ => __( ‘Buscar podcast’, ‘podcast-post-type’ ),
    ‘parent_item_colon’ => __( ‘Podcast padre:’, ‘podcast-post-type’ ),
    ‘not_found’ => __( ‘No podcasts encontrados.’, ‘podcast-post-type’ ),
    ‘not_found_in_trash’ => __( ‘No hay podcast encontrados en la papelera.’, ‘podcast-post-type’ )
    );

    $options = array(
    ‘public’ => true,
    ‘label’ => ‘Podcast’,
    ‘labels’ => $tags,
    ‘menu_position’ => 5,
    ‘menu_icon’ => ‘dashicons-megaphone’,
    ‘has_archive’ => true,
    ‘hierarchical’ => false,
    ‘capability_type’ => ‘post’,
    ‘rewrite’ => true,
    );

    register_post_type(‘Podcast’,$options);
    }

    add_action(‘init’,’create_cpt_podcast’);

    Thanks for your help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Podcast Episode box on Custom Post Types’ is closed to new replies.