Vai al contenuto Vai alla barra laterale
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 -
- - - - - - -

Fuso orario del supporto: Asia/Karachi (GMT+05:00)

Questo ticket contiene 0 risposta, ha 1 voce.

Ultimo aggiornamento da Rut Abrado 1 anno, 1 mese fa.

Assistito da: Waqas Bin Hasan.

Autore Post
Ottobre 17, 2024 alle 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?

L'argomento '[Chiuso] Changing Post Type Key on Translated Content with WPML' è chiuso a nuove risposte.