Custom Post Type ( page ) Page Attributes Incorrect
-
I’ve setup a new custom post type using register_post_type and I’m trying to make a new ‘page’ type and I need the regular Page Attributes ( Parent, Template, Order ), however, just ( Order ) is showing up.
function custom_posts_init() {
// Set UI labels for Custom Post Type
$labels = array(
‘name’ => _x( ‘Landers’, ‘Post Type General Name’, ‘twentythirteen’ ),
‘singular_name’ => _x( ‘Lander’, ‘Post Type Singular Name’, ‘twentythirteen’ ),
‘menu_name’ => __( ‘Landers’, ‘twentythirteen’ ),
‘parent_item_colon’ => __( ‘Parent Lander’, ‘twentythirteen’ ),
‘all_items’ => __( ‘All Landers’, ‘twentythirteen’ ),
‘view_item’ => __( ‘View Lander’, ‘twentythirteen’ ),
‘add_new_item’ => __( ‘Add New Lander’, ‘twentythirteen’ ),
‘add_new’ => __( ‘Add New’, ‘twentythirteen’ ),
‘edit_item’ => __( ‘Edit Lander’, ‘twentythirteen’ ),
‘update_item’ => __( ‘Update Lander’, ‘twentythirteen’ ),
‘search_items’ => __( ‘Search Lander’, ‘twentythirteen’ ),
‘not_found’ => __( ‘Not Found’, ‘twentythirteen’ ),
‘not_found_in_trash’ => __( ‘Not found in Trash’, ‘twentythirteen’ ),
);// Set other options for Custom Post Type
$args = array(
‘label’ => __( ‘landers’, ‘twentythirteen’ ),
‘description’ => __( ‘Landing pages for Offers and Promotions’, ‘twentythirteen’ ),
‘labels’ => $labels,
‘taxonomies’ => array( ‘genres’ ),
‘hierarchical’ => true,
‘public’ => true,
‘show_ui’ => true,
‘show_in_menu’ => true,
‘show_in_nav_menus’ => true,
‘show_in_admin_bar’ => true,
‘menu_position’ => 5,
‘menu_icon’ => ‘dashicons-star-filled’,
‘can_export’ => true,
‘has_archive’ => true,
‘exclude_from_search’ => false,
‘publicly_queryable’ => true,
‘capability_type’ => ‘page’,
‘supports’ => array( ‘title’, ‘editor’, ‘excerpt’, ‘author’, ‘page-attributes’, ‘thumbnail’, ‘comments’, ‘revisions’, ‘custom-fields’, )
);// Registering your Custom Post Type
register_post_type( ‘landers’, $args );}
add_action(‘init’, __NAMESPACE__ . ‘\\custom_posts_init’ );What am I missing?
The topic ‘Custom Post Type ( page ) Page Attributes Incorrect’ is closed to new replies.