Service Lines
Service line taxonomy.
if ( ! function_exists( 'service_line' ) ) { // Register Custom Taxonomy function service_line() { $labels = array( 'name' => _x( 'Service Lines', 'Taxonomy General Name', 'foundationpress' ), 'singular_name' => _x( 'Service Line', 'Taxonomy Singular Name', 'foundationpress' ), 'menu_name' => __( 'Service Lines', 'foundationpress' ), 'all_items' => __( 'All Service Lines', 'foundationpress' ), 'parent_item' => __( 'Parent Service Line', 'foundationpress' ), 'parent_item_colon' => __( 'Parent Service Line:', 'foundationpress' ), 'new_item_name' => __( 'New Service Line Name', 'foundationpress' ), 'add_new_item' => __( 'Add New Service Line', 'foundationpress' ), 'edit_item' => __( 'Edit Service Line', 'foundationpress' ), 'update_item' => __( 'Update Service Line', 'foundationpress' ), 'view_item' => __( 'View Service Line', 'foundationpress' ), 'separate_items_with_commas' => __( 'Separate service lines with commas', 'foundationpress' ), 'add_or_remove_items' => __( 'Add or remove service line', 'foundationpress' ), 'choose_from_most_used' => __( 'Choose from the most used', 'foundationpress' ), 'popular_items' => __( 'Popular Service Lines', 'foundationpress' ), 'search_items' => __( 'Search Service Lines', 'foundationpress' ), 'not_found' => __( 'Service Line Not Found', 'foundationpress' ), ); $rewrite = array( 'slug' => 'services', 'with_front' => true, 'hierarchical' => true, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'rewrite' => $rewrite, ); register_taxonomy( 'service_line', array( 'service_lines' ), $args ); } // Hook into the 'init' action add_action( 'init', 'service_line', 0 ); }