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 5 replies, has 2 voices.
Last updated by Vasileios 4 years, 8 months ago.
Assisted by: Yvette.
Author | Posts |
---|---|
April 14, 2020 at 4:33 pm #5906645 | |
Vasileios |
Tell us what you are trying to do? Is there any documentation that you are following? Is there a similar example that we can see? What is the link to your site? |
April 16, 2020 at 12:19 pm #5922343 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+01:00) |
Hello Hmmmm - when you "switch" post types, are new post-ids being assigned to the worpdress object? For example, if you had a "post" that was categorized as a "recipe" and it had a post-id = 10, when you transform the "post" to your new CPT "recepies", does the post-id retain the value "10"? To see this, you can open the post type in the wordpress editor and take a look at the URL. Normally you will see the post-id embedded within the URL. Once I have this answer, I can better help you. |
April 16, 2020 at 4:05 pm #5925409 | |
Vasileios |
Yes, new IDs were created (at least not the same with the posts or their terms). |
April 17, 2020 at 7:53 am #5929867 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+01:00) |
Oh - too bad. In this case, the translation links are undone. Does the language assignment remain intact? e.g. Post-id = 10 that had taxonomy = recipe is now post-id=100 of post-type=recipes. Postid=100 has same language assignment as postid=10. If so, You *might* be able to do the following: 1. In one language, switch post types under taxonomy in one lanugage 3. You should then have 2 sets of new post-ids in different languag spaces. Do you? Maybe you could try this as a test with one recipe. |
April 24, 2020 at 11:00 am #5985323 | |
Vasileios |
The way I found it worked for my case was: 1. Disable WPML I hope am not forgetting something, but this is the main process. |