Answer the question
In order to leave comments, you need to log in
WP Multilang how to enable custom data type support?
Hello, I created my own data type using the register_post_type() function,
but for some reason there is no translation of fields for multilingualism in the WP Multilang plugin.
WP Multilang how to enable custom data type support?
This is how I created my type:
add_action('init','we_index');
function we_index() {
register_post_type('we',array(
'public'=>true,
'supports' => array('title','editor', 'thumbnail'),
'menu_position' => 20,
'menu_icon' => 'dashicons-clipboard',
'labels' => array(
'name' => 'Почему мы ?',
'all_items' => 'Все',
'add_new' => 'Добавить пункт',
'add_new_item' => 'Новый пункт'
)
));
}
{
"post_types": {
"we": {},
},
Answer the question
In order to leave comments, you need to log in
Recently there was such a problem. On the flash drive, the partition table has changed to iso-something-there. The solution is to go into cfdisk, for example, and return gpt/mbr.
Which is typical, by the way, linux eats such a flash drive without problems, but Windows breaks.
Smoke www.usbdev.ru according to the manufacturer of the controller software, reset the flash drive settings and format
Command line as administrator:
diskpart
list disk
select disk номер_диска
clean
exit
It helped me to solve this problem by taking the json content in the plugin itself (core-config.json) and inserting it into the wpm-config.json file, and then adding my own custom entries to enable translation for them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question