Skip to content

Instantly share code, notes, and snippets.

@Sharifur
Created March 25, 2018 18:10
Show Gist options
  • Save Sharifur/e260b0cddbec42986e6ec033c88277ef to your computer and use it in GitHub Desktop.
Save Sharifur/e260b0cddbec42986e6ec033c88277ef to your computer and use it in GitHub Desktop.
custom taxonomy register with custom post type in wordpress
register_taxonomy(
'Category',
'xgenious_teams',
array(
'label' => __( 'Category' ),
'query_var' => true,
'show_admin_column' => true,
'rewrite' => array(
'slug' => 'category',
'with_front' => true
),
'hierarchical' => true,
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment