Support » Themes and Templates » taxonomie’s name

  • Hi,

    I don’t manage to get the name of a custom taxonomy.

    I have got something like this:

    $taxonomies = get_object_taxonomies('my_post_type');
    foreach($taxonomies as $tax){
    	$args['labels'] = get_taxonomy_labels( (object) $args );
    	$args['label'] = $args['labels']->singular_name;
    	echo $args['label'];

    which gives me “Tag” what I think is normal, as I did not tell it to give me the labels of $tax. But I don’t know how…

    Can anyone help? Thanks in advance.

  • The topic ‘taxonomie’s name’ is closed to new replies.