FEATURE Declaring etiquette taxonomy for recherches post types

This commit is contained in:
Antoine M 2026-06-08 15:36:05 +02:00
parent 8f920ea6d1
commit af1034371f
2 changed files with 2 additions and 1 deletions

View File

@ -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 ------- //

View File

@ -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);