See https://wordpress.org/plugins/wp-multilang/ and look for ‘Manage translation settings via json’.
Ok so, I added a file wpm-config.json in my theme’s folder. I added the code, but I can’t translate the post type yet.
{
"post_types": {
"hosting": {},
}
}
-
This reply was modified 8 years, 1 month ago by
jrtderonde.
Try deactivating and then activating a plugin or switching theme. The json files are only re-read by the plugin at one of the following actions:
– after_switch_theme
– activated_plugin
– upgrader_process_complete
Even if clearing the cache?
@jrtderonde
What do You using for this post type page? Bult-in post type page or custom page?
Ah, it was the cache. Thanks for your help guys!
Hi,
I have using this plugin but not supporting the custom post type.
Please help me!, This is my custom post type code
$labels = array( ‘name’ => ‘Review’, ‘singular_name’ => ‘Review’, ‘add_new’ => ‘Add New’, ‘add_new_item’ => ‘Add New Review’, ‘edit_item’ => ‘Edit Review’, ‘new_item’ => ‘New Review’, ‘all_items’ => ‘All Reviews’, ‘view_item’ => ‘View Review’, ‘search_items’ => ‘Search Reviews’, ‘not_found’ => ‘No Reviews found’, ‘not_found_in_trash’ => ‘No Reviews found in Trash’, ‘parent_item_colon’ => ”, ‘menu_name’ => ‘Reviews’ );
$args = array( ‘labels’ => $labels, ‘public’ => true, ‘publicly_queryable’ => true, ‘show_ui’ => true, ‘show_in_menu’ => true, ‘query_var’ => true, ‘rewrite’ => array( ‘slug’ => ‘review’ ), ‘capability_type’ => ‘post’, ‘has_archive’ => true, ‘hierarchical’ => false,’menu_position’ => null,’supports’ => array( ‘title’, ‘thumbnail’,’editor’ ));
register_post_type( ‘Review’, $args );