Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- register_post_type( 'photo_gallery',
- array(
- 'labels' => array(
- 'name' => __( 'Photo' ),
- 'singular_name' => __( 'Photoes' ),
- 'add_new' => __( 'Add New' ),
- 'add_new_item' => __( 'Add New photo' ),
- 'edit_item' => __( 'Edit photo' ),
- 'new_item' => __( 'New photo' ),
- 'view_item' => __( 'View photo' ),
- 'not_found' => __( 'Sorry, we couldn\'t find the photo you are looking for.' )
- ),
- /*custom taxonomies*/
- 'taxonomies' => array('category'),
- 'public' => true,
- 'publicly_queryable' => true,
- 'exclude_from_search' => true,
- 'menu_position' => 14,
- 'has_archive' => true,
- 'hierarchical' => true,
- 'capability_type' => 'post',
- 'rewrite' => array( 'slug' => 'slide' ),
- 'supports' => array( 'title', 'editor', 'custom-fields', 'thumbnail' )
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement