categories – Can a taxonomy of a custom post type be called ‘category’?

Question

It seems not possible to write :

register_taxonomy('category',array('events'), array(
        'hierarchical'                  => true,
        'labels'                        => $labels_category_events,
        'show_ui'                       => true,
        'show_in_rest'                  => true,
        'show_admin_column'             => true,
        'query_var'                     => true,
        'rewrite'                       => array( 'slug' => "evenements/category" ),
        'has_archive'                   => true,
    ));

without having conflict with “real” categories ?
Thank to confirm … or not .

0
nico 1 week 2022-09-19T07:37:31-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse