Hello!
This would require some debugging in order to find what happens there.
Have you checked for the translation where you specify the category – if the proper category is specified?
I am not sure how you insert it there – but if it is by some widget with ID – if the ID is not converted to the proper translation ID – then you will not see anything in the translation.
Compare the original post contents and translation and check how it is added.
If you can see the same ID – that is the problem perhaps and you might need to change the ID of the translation to the proper translated category ID.
You can always ask for help in our support forum at wpml.org
Thread Starter
Radure
(@radure)
Hello
I don’t know how to find debug info… if you can help with this I’ll give it to you.
So, category is translated.
I inserted it in the english version with gutenberg editor, and I translated with wpml editor (as wpml gave me this advice).
Then my theme creators told me that I should not use gutenberg but their editor (but I was using gutenberg when it was only a plugin because I loved it, and I didn’t know that I should use their editor… do you think that this can be a reason=
I can’t find ID (sorry, I am not a professional), with WPML translation editor the text is this:
English (original)
[products limit=”16″ columns=”4″ category=”671″ orderby=”date” order=”DESC”]
italian (translation)
[products limit=”16″ columns=”4″ category=”704″ orderby=”date” order=”DESC”]
with Gutenberg it appears like this:
English
<!– wp:woocommerce/product-category {“categories”:[671],”editMode”:false} –>
<div class=”wp-block-woocommerce-product-category”>[products limit=”16″ columns=”4″ category=”671″ orderby=”date” order=”DESC”]</div>
<!– /wp:woocommerce/product-category –>
Italian
<!– wp:woocommerce/product-category {“categories”:[671],”editMode”:false} –>
<div class=”wp-block-woocommerce-product-category”>[products limit=”16″ columns=”4″ category=”704″ orderby=”date” order=”DESC”]</div>
<!– /wp:woocommerce/product-category –>
if it’s useful for you
Of course I am in touch with WPML and my theme support (QODE > Bridge), but I am trying everything as I need to fix the issue asap.
thank you for your help
Roberta
Hello
I see something that could potentially be the problem
In your Gutenberg code for Italian you have the same ID as in English
<!– wp:woocommerce/product-category {“categories”:[671],”editMode”:false} –>
<div class=”wp-block-woocommerce-product-category”>[products limit=”16″ columns=”4″ category=”704″ orderby=”date” order=”DESC”]</div>
<!– /wp:woocommerce/product-category –>
I cannot guarantee if this would help but perhaps changing that to:
<!– wp:woocommerce/product-category {“categories”:[704],”editMode”:false} –>
<div class=”wp-block-woocommerce-product-category”>[products limit=”16″ columns=”4″ category=”704″ orderby=”date” order=”DESC”]</div>
<!– /wp:woocommerce/product-category –>
might help.
I am sure that my colleagues at WPML will be able to help you with further debugging this.
Since we don’t have news for some time, I am closing this ticket.
If you still have problem, please feel free to open a ticket in wpml.org so we can help you.
Thank you very much