Duplicate gravity form post for WPML multilingual post (3 posts)

  1. aaron@rossano.com.au
    Posted 4 years ago #

    Hi, I'm using Gravity forms with the Event Calendar Pro to submit events to my site in two languages (English and Hebrew).

    I'm trying to automate the form. I'm saving all the fields from the form for the other language in custom fields.

    I'd like to be able to automatically duplicate the post with all it's content, or create the WPML translation version of the post and feeding all the information from the custom fields.
    How would I go about to achieving that?
    I'm guessing it will be something like:

    At post submission do:
    duplicate the post with same content.
    change the language
    set the relationship as translation to the other post.
    set all the fields with the language custom fields.

    Would appreciate any help, thank you.

  2. dew_h2o
    Posted 3 years ago #

    Did you ever find a solution for this? Thanks!

  3. aaron@rossano.com.au
    Posted 3 years ago #

    wow this was a long time ago. :)

    the process i ended taking was:
    translating on client side.
    client confirms translation.
    on post it creates a post and puts all the translation fields in custom fields.
    that means there's only one language to a post.

    this is the wrong way of doing it, it should've been creating two separate posts and connecting them. if i had given it another try now i probably would've gotten it right, i just didn't have enough time back then to get it done properly.

Topic Closed

This topic has been closed to new replies.

About this Topic