Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

S34 Testimonial Tags

if ( ! function_exists( 's34_testimonial_tags' ) ) {

// Register Custom Taxonomy
function s34_testimonial_tags() {

	$labels = array(
		'name'                       => _x( 'Testimonial Tags', 'Taxonomy General Name', 's34' ),
		'singular_name'              => _x( 'Testimonial Tag', 'Taxonomy Singular Name', 's34' ),
		'menu_name'                  => __( 'Testimonial Tag', 's34' ),
		'all_items'                  => __( 'Testimonial Tags', 's34' ),
		'parent_item'                => __( 'Parent Testimonial Tag', 's34' ),
		'parent_item_colon'          => __( 'Parent Testimonial Tag:', 's34' ),
		'new_item_name'              => __( 'New Testimonial Tag Name', 's34' ),
		'add_new_item'               => __( 'Add New Testimonial Tag', 's34' ),
		'edit_item'                  => __( 'Edit Testimonial Tag', 's34' ),
		'update_item'                => __( 'Update Testimonial Tag', 's34' ),
		'separate_items_with_commas' => __( 'Separate testimonial tags with commas', 's34' ),
		'search_items'               => __( 'Search Testimonial Tags', 's34' ),
		'add_or_remove_items'        => __( 'Add or remove testimonial tags', 's34' ),
		'choose_from_most_used'      => __( 'Choose from the most used testimonial tags', 's34' ),
		'not_found'                  => __( 'Not Found', 's34' ),
	);
	$rewrite = array(
		'slug'                       => 'testimonial_tag',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'query_var'                  => 'testimonial_tag',
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 's34_testimonial_tag', array( 's34_testimonial' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 's34_testimonial_tags', 0 );

}