<?php | |
function km_register_taxonomy_include_staff_on_page() { | |
$labels = array( | |
'name' => __( 'Include on Page', 'hmc' ), | |
'singular_name' => __( 'Include on Page', 'hmc' ), | |
'search_items' => __( 'Search Include on Page', 'hmc' ), | |
'popular_items' => __( 'Popular Include on Page', 'hmc' ), | |
'all_items' => __( 'All Include on Page', 'hmc' ), | |
'parent_item' => __( 'Parent Include on Page', 'hmc' ), | |
'parent_item_colon' => __( 'Parent Include on Page:', 'hmc' ), | |
'edit_item' => __( 'Edit Include on Page', 'hmc' ), | |
'update_item' => __( 'Update Include on Page', 'hmc' ), | |
'add_new_item' => __( 'Add New Include on Page', 'hmc' ), | |
'new_item_name' => __( 'New Include on Page', 'hmc' ), | |
'separate_items_with_commas' => __( 'Separate Include on Page with commas', 'hmc' ), | |
'add_or_remove_items' => __( 'Add or remove Include on Page', 'hmc' ), | |
'choose_from_most_used' => __( 'Choose from the most used Include on Page', 'hmc' ), | |
'menu_name' => __( 'Include on Page', 'hmc' ), | |
); | |
$args = array( | |
'labels' => $labels, | |
'public' => false, // set to false so your tax terms aren't shown on the front end of your site | |
'show_in_nav_menus' => false, | |
'show_ui' => true, // set to true so these taxonomy terms appear on post edit screen | |
'show_tagcloud' => false, | |
'show_admin_column' => false, | |
'hierarchical' => false, | |
'rewrite' => false, | |
'query_var' => true | |
); | |
register_taxonomy( 'include_staff_on_page', array( 'staff' ), $args ); | |
} | |
add_action( 'init', 'km_register_taxonomy_include_staff_on_page' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment