add terms to custom taxonomie

I’m trying to add some terms to my custom taxnomy, no idea how to make this work . . .

so far y custom taxnomy is like:

add_action( ‘init’, ‘create_new_taxonomy’ );

function create_new_taxonomy() {
register_taxonomy(
‘my_format’,
‘post’,
array(
‘label’ => __( ‘My Format’ ),
‘rewrite’ => array( ‘slug’ => ‘myformat’ ),
‘hierarchical’ => true,
)
);

}

If anyone has some highlite, it will be amazing, thank you!

Read more here:: add terms to custom taxonomie

Leave a Reply

Your email address will not be published. Required fields are marked *