Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is working on a site under development and wants to change the custom post type (CPT) label to the Korean language.
Solution:
If you're trying to change the custom post type label to Korean, we recommend using the WPML String Translation module. First, ensure that you have scanned all related plugins for translatable strings in WPML > Theme and Plugin Localization. After scanning, go to WPML > String Translation and search for the CPT name. You can then add the translation directly there. For more detailed guidance, please check our documentation for developers at https://wpml.org/documentation/support/.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket at our support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Lucas Vidal de Andrade 3 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
November 12, 2024 at 6:35 pm

jordanP-2

Background of the issue:
I am working on a site under development and trying to change the custom post type label to Korean language. I am following the WPML documentation.

Symptoms:
There is no specific issue or error message mentioned.

Questions:
Is there any possibility to change the custom post type label to Korean language?
How can I change the label to Korean?

November 12, 2024 at 7:21 pm
November 12, 2024 at 7:29 pm #16394381

jordanP-2

We want below translations for the post type label for the korean language

Blog: 블로그
News: 뉴스
Case Studies: 사례 연구

November 13, 2024 at 4:42 pm #16398702

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I was able to find and translate News and Case Study (note that it's "Case Study" and not "Case Studies"). Blogs, in the other hand, I wasn't able.

It looks to me that this wasn't created with ACF. It looks like it's the default name for "Posts" that was somehow translated to "Blogs". Can you confirm that? If so, please give me the details on the implementation, so I can better assist you.

November 13, 2024 at 5:23 pm #16398847

jordanP-2

We had changed default "Posts" to "Blogs" by the function.

add_action( 'init', __NAMESPACE__ . '\change_post_to_blog' );
// Change dashboard Posts to News
function change_post_to_blog() {
$get_post_type = get_post_type_object('post');
$labels = $get_post_type->labels;
$labels->name = 'Blogs';
$labels->singular_name = 'Blog';
$labels->add_new = 'Add Blog';
$labels->add_new_item = 'Add Blog';
$labels->edit_item = 'Edit Blog';
$labels->new_item = 'Blog';
$labels->view_item = 'View Blog';
$labels->search_items = 'Search Blog';
$labels->not_found = 'No Blog found';
$labels->not_found_in_trash = 'No Blog found in Trash';
$labels->all_items = 'All Blogs';
$labels->menu_name = 'Blogs';
$labels->name_admin_bar = 'Blogs';
}

November 13, 2024 at 5:24 pm #16398850

jordanP-2

Also can you let us know how to translate another custom post types label translate in korean language?

November 13, 2024 at 7:00 pm #16399286

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Unfortunately, the creation of custom code is outside the scope or our support, so I cannot directly advise you on that. Please check our documentation for developers:
https://wpml.org/documentation/support/

As for the CPT names, you can translate them in WPML > String Translation. Simply search for the CPT name there and add the translation. You might need to scan all related plugins in WPML > Theme and Plugin localization before that.