Skip to content Skip to sidebar

This topic contains 0 reply, has 1 voice.

Last updated by Rut Abrado 1 year, 5 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
October 17, 2024 at 11:14 am #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?

The topic ‘[Closed] Changing Post Type Key on Translated Content with WPML’ is closed to new replies.