A
A
Ainur Shakirov2018-06-25 14:36:59
WordPress
Ainur Shakirov, 2018-06-25 14:36:59

Cyrillic in wp taxonomy, why does it convert to a link?

I want the files to have categories, I create and add a taxonomy:

register_taxonomy( 'post_tag2', 'post', array(
        'hierarchical' => false,
        'labels'                => array(
            'name'              => 'Категории',
            'singular_name'     => 'Категории',
            'search_items'      => 'Найти категорию',
            'all_items'         => 'Все категории',
            'view_item '        => 'Просмотр категории',
            'parent_item'       => 'Parent категории',
            'parent_item_colon' => 'Parent категории:',
            'edit_item'         => 'Edit категорию',
            'update_item'       => 'Update категорию',
            'add_new_item'      => 'Add New категорию',
            'new_item_name'     => 'New Genre категорию',
            'menu_name'         => 'Категории',
        ),
        'show_in_rest' => false
    ) );
    register_taxonomy_for_object_type( 'post_tag2', 'attachment' );

Everything is fine, but the Cyrillic alphabet is converted immediately into a URL, how can I turn it off?
VS4qjzFfQuOKhrsaLhDKBg.png
And is there a way to put a checkbox there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2018-06-25
@mr_ko

Look for the Rewrite - slug parameters here
https://codex.wordpress.org/Function_Reference/reg...
Because by default it takes the level from the name, and you have it in Cyrillic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question