Skip Navigation

[Resolved] Managing Multilingual Posts Using CRED + WPML

This thread is resolved. Here is a description of the problem and solution.

Problem: How can I edit multilingual posts with CRED? It seems that I must use the WP admin to handle the translations.

Solution: The plugin that was created to help with this process has been deprecated and we do not have plans to replace it. For now, custom code is required to integrate CRED and WPML.

Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/updating-types-fields-using-php/
https://toolset.com/documentation/programmer-reference/cred-api/

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Jeffrey 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#599498

Hi there,

I just wanna go throughout this ticket https://toolset.com/forums/topic/cred-front-end-submission-form-of-multilingual-sites-with-wpml/#post-592405, I take on that resolved tickte, because I found some fLaws of this solution. I am not sure whether you support or not. just want to tell you what I got.

Generating multilingual posts Automatically is a great feature for many webmasters I guess. but using it for front-end submission,there are still some issues,
When users submitted a front-end submission posts, in case that the person wants to modify something, the multilingual posts can not be updated, so I have update the target language post manully

I am aware that I can modify anything in back-end, and then using WPML editor to translate content, but if modify anything in front-end submission form, the back-end content in current language will be updated, but in WPML editor, the current language still keeps originally. I have to independent edit the target language posts. I can not even use WPML editor.

this case for me, I can edit English and Chinese, but if have third language like Korean, manually editing will become a large challenge. 🙂

So, does WPML have this future or not? When front end submission form has any changes, the multilingual post will be updated automatically.

I present this problem, just wanna get a solution if you had one already, if not, I still appreciate your guys for your great plugins. that is a great plugin for the person like me who is not a developer .

Thank you so much again!

#599623

Unfortunately the plugin made for this (CRED Frontend Translation) has been deprecated years ago and there are no plans to bring translations to the front end. Instead, the official way to go is using Access and setting up Translation roles in Access. This let's you control the WordPress Admin translation screens on language and user basis. Hence, to translate contents with CRED, you will need to craft complex Custom Code. Keeping in mind a complexity of a translation made by WPML (Post meta, taxonomy, etc) - it is not a simple process.

A long time ago we showed some small examples on how it can be done using CRED and WPML API: https://toolset.com/forums/topic/cred-custom-post-type-front-end-translations/#post-344169

Note that this was written a Long time ago, and is Custom Code that we cannot support (we can give hints and show how to use the API). The solution provided there, also had some flaws due to problems in the core code of the plugins: https://toolset.com/forums/topic/how-to-duplicate-the-featured-image-in-translation/

Now, coming back to your question if it's supported, it is not. But, with the API and custom code, you can achieve it. The suggested way though is to use the WordPress backend for the Translation works.

To note with the custom code is, that if you try to update Custom Posts or Custom Post Fields made with Types programmatically, you will need to rise the priorities a little, usually 30 is enough: https://toolset.com/documentation/customizing-sites-using-php/updating-types-fields-using-php/

I hope this clarifies the doubts and also points into the right directions on how to craft and debug your custom code.

#601269

Thank you so much for the details, appreciate these great plugins from you guys. Merry christmas!