跳过导航
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

支持人员时区: Asia/Karachi (GMT+05:00)

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 Rut Abrado 8 months, 2 weeks前 更新。

协助者:: Waqas Bin Hasan.

作者 帖子
17 10 月, 2024 于 11:14 上午 #16299735

Rut Abrado

Background of the issue:
I've created a Custom Post Type (CPT) using ACF with some custom fields, and I have published several posts under this CPT, along with their translations using WPML. Now I need to change the post type key and have received the following advice: "You will need to run an SQL command to change the post type in the database: UPDATE wp_posts SET post_type= 'new_post_type' WHERE post_type= 'old_post_type';" In my case, I would use the command: UPDATE c0lab_posts SET post_type= 'grupos-electrogenos' WHERE post_type= 'generador-electrico';

Symptoms:
I need to ensure that changing the post type key using this method will work for translated content without causing issues.

Questions:
Could you please confirm whether this approach will work without causing issues for the existing translations?
Are there any additional steps or considerations I should take to ensure everything functions correctly with WPML?

主题 “[關閉] Changing Post Type Key on Translated Content with WPML” 已关闭,不接受新回复。