LInks
// Register Custom Post Type
function custom_links() {
$labels = array(
'name' => _x( 'Links', 'Post Type General Name', 'troom' ),
'singular_name' => _x( 'Link', 'Post Type Singular Name', 'troom' ),
'menu_name' => __( 'Links', 'troom' ),
'parent_item_colon' => __( 'Parent Links:', 'troom' ),
'all_items' => __( 'All Links', 'troom' ),
'view_item' => __( 'View Link', 'troom' ),
'add_new_item' => __( 'Add New Link', 'troom' ),
'add_new' => __( 'Add Link', 'troom' ),
'edit_item' => __( 'Edit Link', 'troom' ),
'update_item' => __( 'Update Link', 'troom' ),
'search_items' => __( 'Search Links', 'troom' ),
'not_found' => __( 'Not found', 'troom' ),
'not_found_in_trash' => __( 'Not found in Trash', 'troom' ),
);
$args = array(
'label' => __( 'blog_links', 'troom' ),
'description' => __( 'Links', 'troom' ),
'labels' => $labels,
'supports' => array( 'title', ),
'taxonomies' => array( 'categories ' ),
'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' => '',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'blog_links', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_links', 0 );