Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Meeting Tag Taxonomy

if ( ! function_exists( 'anp_meetings_tag' ) ) {

// Register Custom Taxonomy
function anp_meetings_tag() {

	$labels = array(
		'name'                       => _x( 'Meeting Tags', 'Taxonomy General Name', 'anp_meetings' ),
		'singular_name'              => _x( 'Meeting Tag', 'Taxonomy Singular Name', 'anp_meetings' ),
		'menu_name'                  => __( 'Meeting Tags', 'anp_meetings' ),
		'all_items'                  => __( 'All Tags', 'anp_meetings' ),
		'parent_item'                => __( 'Parent Tag', 'anp_meetings' ),
		'parent_item_colon'          => __( 'Parent Tag:', 'anp_meetings' ),
		'new_item_name'              => __( 'New Tag Name', 'anp_meetings' ),
		'add_new_item'               => __( 'Add New Tag', 'anp_meetings' ),
		'edit_item'                  => __( 'Edit Tag', 'anp_meetings' ),
		'update_item'                => __( 'Update Tag', 'anp_meetings' ),
		'view_item'                  => __( 'View Tag', 'anp_meetings' ),
		'separate_items_with_commas' => __( 'Separate tags with commas', 'anp_meetings' ),
		'add_or_remove_items'        => __( 'Add or remove tags', 'anp_meetings' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'anp_meetings' ),
		'popular_items'              => __( 'Popular Tags', 'anp_meetings' ),
		'search_items'               => __( 'Search Tags', 'anp_meetings' ),
		'not_found'                  => __( 'Not Found', 'anp_meetings' ),
	);
	$rewrite = array(
		'slug'                       => 'meeting_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'                  => 'meeting_tag',
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'anp_meetings_tag', array( 'anp_meetings', ' anp_decisions' ), $args );

}

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

}