Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Writeup Database Brands Taxonomy

if ( ! function_exists( 'seo_db_brands' ) ) {

// Register Custom Taxonomy
function seo_db_brands() {

	$labels = array(
		'name'                       => _x( 'Brands', 'Taxonomy General Name', 'headshophero' ),
		'singular_name'              => _x( 'Brand', 'Taxonomy Singular Name', 'headshophero' ),
		'menu_name'                  => __( 'Brands', 'headshophero' ),
		'all_items'                  => __( 'All Brands', 'headshophero' ),
		'parent_item'                => __( 'Parent Brand', 'headshophero' ),
		'parent_item_colon'          => __( 'Parent Brand:', 'headshophero' ),
		'new_item_name'              => __( 'New Brand', 'headshophero' ),
		'add_new_item'               => __( 'Add New Brand', 'headshophero' ),
		'edit_item'                  => __( 'Edit Brand', 'headshophero' ),
		'update_item'                => __( 'Update Brand', 'headshophero' ),
		'view_item'                  => __( 'View Brand Info', 'headshophero' ),
		'separate_items_with_commas' => __( 'Separate brands with commas', 'headshophero' ),
		'add_or_remove_items'        => __( 'Add or remove brands', 'headshophero' ),
		'choose_from_most_used'      => __( 'Choose from the most used brands', 'headshophero' ),
		'popular_items'              => __( 'Popular brands', 'headshophero' ),
		'search_items'               => __( 'Search Brands', 'headshophero' ),
		'not_found'                  => __( 'Not Found', 'headshophero' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'writeup-brands', array( 'seo-writeup' ), $args );

}

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

}