• Hi, I have a CPT “magazine” which doesn’t seem to show the option to duplicate although the option shows for posts and some other CPT. These are the arguments that I’m currently using to register my CPT “magazine”:

    $labels = array(
    ‘name’ => _x( ‘Magazines’, ‘magazine’ ),
    ‘singular_name’ => _x( ‘Magazine’, ‘magazine’ ),
    ‘add_new’ => _x( ‘Add New’, ‘magazine’ ),
    ‘add_new_item’ => _x( ‘Add New Magazine’, ‘magazine’ ),
    ‘edit_item’ => _x( ‘Edit Magazine’, ‘magazine’ ),
    ‘new_item’ => _x( ‘New Magazine’, ‘magazine’ ),
    ‘view_item’ => _x( ‘View Magazine’, ‘magazine’ ),
    ‘search_items’ => _x( ‘Search Magazines’, ‘magazine’ ),
    ‘not_found’ => _x( ‘No magazines found’, ‘magazine’ ),
    ‘not_found_in_trash’ => _x( ‘No magazines found in Trash’, ‘magazine’ ),
    ‘parent_item_colon’ => _x( ‘Parent Magazine:’, ‘magazine’ ),
    ‘menu_name’ => _x( ‘Magazines’, ‘magazine’ ),
    );

    $args = array(
    ‘labels’ => $labels,
    ‘hierarchical’ => false,
    ‘supports’ => array( ‘title’, ‘editor’, ‘excerpt’, ‘author’, ‘thumbnail’, ‘trackbacks’, ‘custom-fields’, ‘comments’, ‘revisions’, ‘page-attributes’ ),
    ‘taxonomies’ => array( ‘issues’, ‘category’, ‘w2dc-tag’, ‘w2dc_listing’ ),
    ‘public’ => true,
    ‘show_ui’ => true,
    ‘show_in_menu’ => true,
    ‘menu_position’ => 9,
    ‘menu_icon’ => ‘dashicons-admin-page’,
    ‘show_in_nav_menus’ => true,
    ‘publicly_queryable’ => true,
    ‘exclude_from_search’ => false,
    ‘has_archive’ => true,
    ‘query_var’ => true,
    ‘can_export’ => true,
    ‘rewrite’ => true,
    ‘capability_type’ => ‘post’
    );

  • The topic ‘Custom post type duplicate option not showing’ is closed to new replies.