homepage post type
// Register Custom Post Type
function homepage_post_type() {
$labels = array(
'name' => _x( 'Homepagess', 'Post Type General Name', 'td_forcon' ),
'singular_name' => _x( 'Homepage', 'Post Type Singular Name', 'td_forcon' ),
'menu_name' => __( 'Homepages', 'td_forcon' ),
'parent_item_colon' => __( 'Parent Item:', 'td_forcon' ),
'all_items' => __( 'All Items', 'td_forcon' ),
'view_item' => __( 'View Item', 'td_forcon' ),
'add_new_item' => __( 'Add New Item', 'td_forcon' ),
'add_new' => __( 'Add New', 'td_forcon' ),
'edit_item' => __( 'Edit Item', 'td_forcon' ),
'update_item' => __( 'Update Item', 'td_forcon' ),
'search_items' => __( 'Search Item', 'td_forcon' ),
'not_found' => __( 'Not found', 'td_forcon' ),
'not_found_in_trash' => __( 'Not found in Trash', 'td_forcon' ),
);
$args = array(
'label' => __( 'homepagess', 'td_forcon' ),
'description' => __( 'Homepages', 'td_forcon' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', ),
'hierarchical' => false,
'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_admin_page',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => false,
'capability_type' => 'page',
);
register_post_type( 'homepagess', $args );
}
// Hook into the 'init' action
add_action( 'init', 'homepage_post_type', 0 );