January 15, 2020 at 10:33 pm #1174697
I am using Enfold’s “Page Content” component to repeat shared content across pages (by using a “Shared Content” Custom Post Type)
I am also using WPML to translate content.
When I go to the other version of the page (say French), the dropdown selector for the “Page Content” item on my page correctly *only* shows the French versions of the “Shared Content” available to select on the French page.
However if I change the selection for the “Page Content” blocks on the original English page and update the page, the French “Page Content” blocks selection on the French page don’t match (this is probably expected), as I need to tell it I want to redo a translation.
So, if I then go through the English->French translation process again, all of the “Page Content” blocks on the French page get overwritten with the English versions again and I have to manually reselect them all on the French page to point to correct French “Page Content” items again.
There just doesn’t seem to be a direct connection on the Translation page between the 2 versions of the “Page Content” so the French always gets overwritten by the English until I go into the “Page Content” blocks on the French page and pick from the French page content in the selectors again
Is there anyway to solve this? I tried editing the settings and couldn’t find a way.
JJanuary 17, 2020 at 9:32 pm #1175669
Have you tried to contact the WPML support team? They would be a better assistance.
BasilisJanuary 18, 2020 at 6:59 pm #1175891
is there some kind of shortcode for the Enfold/Avia “Page Content” component?
I assume it could potentially be added to the wpml config to expose the field to the translation editor?
If i know what that is, it may help with getting support from WPML
JJanuary 23, 2020 at 10:43 am #1177516
The shortcode would be something like:
As much as I’m concerned WPML manages the translation on their own server in a config file.
GünterJanuary 23, 2020 at 12:45 pm #1177586
thanks, I did find that
av_postcontentshortcode actually in the code base then try get it into our own
wpml_config.xmlbut I don’t believe WPML supports relationship fields (I wanted to have a dropdown with the list of translated posts in it)
I’ll see if I can get it to bring up the shortcode value like this
if i can put the relevant “Post Content”
page,idin the link value on the translation it might stop it being overwritten when going through the translation process. (theoretical so far!)
JJanuary 23, 2020 at 2:32 pm #1177618
also, how can I make the “Page Content” component pick up other custom post types please? (other than Page and Portfolio)
JJanuary 23, 2020 at 2:43 pm #1177627
Translation of page id in links should normaly happen by WPML.
So if you are in e.g. german and add in shortcode av_postcontent a link to a german page and translate the page to e.g. french WPML should translate the link in av_postcontent to the french translation of that page in the link – if it exists.
You must be logged in to reply to this topic.