FEATURE Declaring etiquette taxonomy for recherches post types
This commit is contained in:
parent
8f920ea6d1
commit
af1034371f
|
|
@ -144,6 +144,7 @@ function carhop_create_posttype()
|
||||||
'public' => true,
|
'public' => true,
|
||||||
'has_archive' => true,
|
'has_archive' => true,
|
||||||
'menu_position' => 4,
|
'menu_position' => 4,
|
||||||
|
'taxonomies' => array('etiquettes'),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// -------COMMUNIQUÉS DE PRESSE ------- //
|
// -------COMMUNIQUÉS DE PRESSE ------- //
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,6 @@ function shared_taxonomy_init()
|
||||||
'show_tagcloud' => true,
|
'show_tagcloud' => true,
|
||||||
// 'meta_box_cb' => false,
|
// 'meta_box_cb' => false,
|
||||||
);
|
);
|
||||||
register_taxonomy('etiquettes', array('articles', 'revues', 'analyses-etudes', 'expositions', 'outils-pedagogiques'), $args);
|
register_taxonomy('etiquettes', array('articles', 'revues', 'analyses-etudes', 'expositions', 'outils-pedagogiques', 'recherches'), $args);
|
||||||
}
|
}
|
||||||
add_action('init', 'shared_taxonomy_init', 0);
|
add_action('init', 'shared_taxonomy_init', 0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user