-
I posted errors in wpml.org:
https://wpml.org/forums/topic/conflict-between-generatepress-premium-and-wpml-string-translation/
https://wpml.org/forums/topic/conflict-between-generatepress-premium-and-wpml-string-translation/page/2/And they proposed a solution.
I am posting here so that the GenerateBlocks team can support integration with wpml -
This is my issue:
I am trying to: update “elements” from Generatepress
Link to a page where the issue can be seen:
– English: https://staging-b99c-udumbaradotorg.wpcomstaging.com/wp-admin/edit.php?post_type=gp_elements&lang=en&admin_bar=1
– Vietnamese: https://staging-b99c-udumbaradotorg.wpcomstaging.com/wp-admin/edit.php?post_type=gp_elements&lang=vi&admin_bar=1I expected to see: in Vietnamese page, “Exclusions” column is: “Post Tag: post tag test – vi”
Instead, I got: “Post Tag: post tag test – en”
This is video that I show this bug: https://www.veed.io/view/a2a001a9-9505-4fca-8fa3-1d93333057db?panel=share
-
Hi there,
updating GP Elements to accommodate 3rd party integrations is not something we have a vested interest in doing. So this may not be easy for use to resolve.
I have passed it on to the dev team though, to see if they have any ideas on how special conditions could be hooked in.
-
thanks
-
Some of my customers use WPML on their sites. Could you explain in more details what exactly the problem is? Is this specific for this exclusion rule? Do elements work in general with WPML? Which elements functions should be avoided, if WPML is installed?
Thank you!
-
This is video that I show this bug: https://www.veed.io/view/a2a001a9-9505-4fca-8fa3-1d93333057db?panel=share
-
Just to cover, the issue is not a bug in GP; the elements module works with core taxonomies such as the
post_tag
– the issue here is that WPML uses a custom function for the translated tags, and GP Elements does not know of them, and to integrate them requires a custom function.Ill talk to your dev team to see if its possible to hook in custom functions to the display rules, but I am doubtful whether it will be possible due to the complexity of element display rules.
-
Any updates?
-
At the moment we do not have a viable solution for this. Trying to retrofit third party functions into the displays logic is super complicated. I am afraid I do not think it is possible without a complete rewrite.
-
hi, any updates?
-
Hi there,
David’s previous reply has stated that it’s not possible for us to write the function due to the complicity of the display rule, and it requires a complete rewrite.
You will need to hire a developer or developer team for custom solutions like this, unfortunately.
-
WPML has a solution for this, they wrote the code as shown in this link:
https://wpml.org/forums/topic/conflict-between-generatepress-premium-and-wpml-string-translation/page/2/#post-15134333 -
Glad you found the answer.
-
wpml said that: you can insert code into plugin to fix this error
-
Yes, if you modify the theme code, it will be erased during theme updates.
So it’s better to create a plugin to store the codes.
- You must be logged in to reply to this topic.