Zum Inhalt springen Zur Seitenleiste springen
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 -
- - - - - - -

Supporter-Zeitzone: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 0 Antwort, hat 1 Stimme.

Zuletzt aktualisiert von Rut Abrado Vor 1 Jahr, 3 Monaten.

Assistiert von: Waqas Bin Hasan.

Autor Beiträge
Oktober 17, 2024 um 11:14 a.m. #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?

Das Thema '[Geschlossen] Changing Post Type Key on Translated Content with WPML' ist für neue Antworten geschlossen.