// Custom Post types for testimonial add_action( 'init', '_init_blm_testimonials' ); function _init_blm_testimonials() { register_post_type( 'testimonial', array( 'labels' => array( 'name' => __( 'Testimonials' ), 'singular_name' => __( 'Testimonial' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add Testimonial' ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit Testimonial' ), 'new_item' => __( 'New Testimonial' ), 'view' => __( 'View Testimonial' ), 'view_item' => __( 'View Testimonial' ), 'search_items' => __( 'Search Testimonials' ), 'not_found' => __( 'No Testimonials found' ), 'not_found_in_trash' => __( 'No Testimonials found in Trash' ), ), 'public' => true, 'show_in_nav_menus' => false, 'show_ui' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'hierarchical' => false, 'menu_position' => 20, 'capability_type' => 'post', 'menu_icon' => get_stylesheet_directory_uri() . '/images/testimonial_menu.png', 'query_var' => true, 'rewrite' => array( 'slug' => 'testimonials', 'with_front' => true ), 'has_archive' => true, 'supports' => array('title', 'editor'), ) ); register_taxonomy( 'genre', array( 'testimonial' ), array( 'public' => true, 'show_in_nav_menus' => true, 'show_ui' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'rewrite' => array( 'slug' => 'genre' ), 'hierarchical' => false, 'query_var' => true, 'labels' => array( 'name' => _x( 'Genres', 'taxonomy general name' ), 'singular_name' => _x( 'Genre', 'taxonomy singular name' ), 'search_items' => __( 'Search Genres' ), 'all_items' => __( 'All Genres' ), 'parent_item' => __( 'Parent Genre' ), 'parent_item_colon' => __( 'Parent Genre:' ), 'edit_item' => __( 'Edit Genre' ), 'update_item' => __( 'Update Genre' ), 'add_new_item' => __( 'Add New Genre' ), 'new_item_name' => __( 'New Genre Name' ), ), ) ); // set taxonomy registration register_taxonomy_for_object_type('testimonial', 'genre'); }