Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to add a custom taxonomy. using the following code:

    function cities_custom_taxonomies() {
        'city', // internal name = machine-readable taxonomy name
        'post', // object type = post, page, link, or custom post-type
            'hierarchical' => false, // true for hierarchical like cats, false for flat like tags
            'label' => 'City', // the human-readable taxonomy name
            'query_var' => true, // enable taxonomy-specific querying
            'rewrite' => true // pretty permalinks for your taxonomy?
add_action('init', 'cities_custom_taxonomies', 0);

As long as I use label name in English, all works fine. Once I try to label it in Hebrew, I don't see the new taxonomy menu. any Idea ?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can just wrap the english label name with the translation function __( 'City', 'textdomain' ), and put the hebrew version in your translation file.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.