Skip Navigation

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.

This topic contains 2 replies, has 2 voices.

Last updated by David 3 years, 3 months ago.

Assisted by: Marcos Vinicios Barreto.

Author Posts
November 8, 2021 at 3:45 pm #9948613

David

I'm looking at changing my knowledge base theme, but the new theme uses a different custom post type for the articles. The new theme (KnowAll), advises using the Post Type Switcher plugin to do a bulk post type change, however, I've found that this doesn't preserve WPML translations. I also need to transfer and preserve the tags and categories.

I have found a few references on the forum here to the same problem, but there doesn't seem to be clear advice on the best way to proceed.

Can anyone offer advice on how to best handle this - is there a different plugin I can use?

Many thanks!

November 10, 2021 at 1:59 pm #9966685

Marcos Vinicios Barreto

Hello,

Thank you for contacting our support service. At first we should mention the Post Type Switcher plugin is not in our list of compatible plugins (see https://wpml.org/plugin/) and this way we can't garantee it will work properly as it wasn't tested by our team to grant compatibility. In any case, based on some similar tickets I would recommend you the following approach:

IMPORTANT: Please, note, a backup is required for security reasons and to avoid any data loss, you can use the https://wordpress.org/plugins/backupwordpress/ plugin for these backup needs.

1 - Temporary disable all the WPML related plugins.
2 - Use tour post type switcher to migrate your post type.
3 - Enable all the WPML related plugins again.
4 - Proceed to WordPress Dashboard > WPML > Support click the 'Troubleshooting' link and perform these steps:

-Set language information
-Fix terms count
-Fix post type assignment for translation

5 - Go to your WordPress Dashboard > Settings > Permalinks and resave your permalinks settings.

Related tickets:

https://wpml.org/forums/topic/move-posts-and-their-translations-from-posts-category-to-a-custom-post-type/

https://wpml.org/forums/topic/migrate-post-to-new-costum-post-type-does-not-work-for-translations/

Hope it helps, have a nice day.

November 15, 2021 at 2:50 pm #9998227

David

Many thanks, this summary was exactly what I was looking for - thanks for your clarity. This combined with a similar process with the "Taxonomy Switcher" plugin has enabled me to convert custom posts, tags, and categories over to a new theme with minimal manual work.