Ha „egyedi taxonómiára” (custom taxonomy) van szükséged, egyszerűen regisztrálhatod és beállíthatod a functions.php-ban. Felesleges a bővítmények használata.
Mindenhez jól jöhet, pl. szolgáltatások és csapattagok kategorizálására.
add_action( 'init', 'ph_custom_taxonomy' );
function ph_custom_taxonomy() {
$labels = array(
'name' => _x( 'Egyedi Kategóriák', 'taxonomy general name' ),
'singular_name' => _x( 'Egyedi Kategória', 'taxonomy singular name' ),
'search_items' => __( 'Keresés' ),
'all_items' => __( 'Összes' ),
'parent_item' => __( 'Szülő kategória' ),
'parent_item_colon' => __( 'Szülő kategória:' ),
'edit_item' => __( 'Szerkesztés' ),
'update_item' => __( 'Frissírés' ),
'add_new_item' => __( 'Új hozzáadása' ),
'new_item_name' => __( 'Új hozzáadása' ),
'menu_name' => __( 'Kategóriák' ),
);
register_taxonomy( 'egyedi-kategoria', array( 'post_type_neve' ), array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'kategoria' ),
'capabilities' => array( 'manage_options', 'edit_posts' ),
));
}