Hi,
I have a problem displaying a view when I'm on a page translation. I use the wpml plugin.
When I'm on the page in French, everything works but when I display the page in English the view disappears.
See this page for exemple : hidden link
But paradoxically it is displayed when the translation of the elements of the page is not done yet.
See this page for exemple : hidden link
It seems to me that this might have been translated using the string translations plugin hidden link
Rather than the conventional way of translating posts. The would mean that an english version of this post does not have the translated children attached to it. Our views plugin will try to pull the relationships of that translated version but since an actual translation does not exist then the view is not returning any results.
I do not understand how I can solve my problem using the string translation plugin?
the view shows no results but should display the results of the view in French,
there is a way to automatically duplicate the French to English , knowing that there will never be any translation for this content.
Hi Shane,
I tested translating post children (albums) but it still shows no results while the English translation does exist.
Is it due to the fact that it is a post-relationship (album - artiste - particiapant) ?
I did not find anything in the documentation that would answer my question.
thank you in advance for your help
Olivier
Yes this is due to the relationships. The view is trying to pull a relationship that is attached to the translated post, in the currently view language.
And what should be done to make it work?
When I translate posts, the view is not displayed when it should be displayed.
She returns no results. I created the translations so there must be some results displayed.
I do not understand why with the translation done, nothing is displayed ?
The english version. If you take a look at the Albums section you will see that there are no posts assigned here. What you need to do is assign the english versions here.
Once this is done then the posts should show on the frontend.
But I would like the content to be the same as in French and therefore the content and the post relationship is automatically duplicated. I can't t ask my client to manually duplicate all posts (parents, children and intermediary...) it seems very long for something that seems simple.
In summary, when my client encodes a new album, it should be automatically duplicated in English as well as his post relationship.
Hi Shane,
There is no translation for the albums but for the artists (which is a parent post) So when I'm on a single artist page, he must display the description of the artist in English and the albums in french because there are no translations for albums, these are song titles so it remains the same in French and English.
Thanks
Olivier