Skip to content

Instantly share code, notes, and snippets.

@kachi
Created April 20, 2012 17:35
Show Gist options
  • Save kachi/2430515 to your computer and use it in GitHub Desktop.
Save kachi/2430515 to your computer and use it in GitHub Desktop.
<?php
register_taxonomy(
'com_category', array('foo', 'bar','hoge','fuga'),array(
'label' => '共通カテゴリ',
'hierarchical' => true,
'show_ui' => true,
'query_var' => true,
));
?>
/*'com_category', array('投稿タイプA', '投稿タイプB','投稿タイプC','投稿タイプD')*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment