Archives and WPML

Hi there,
I need little support with archives and WPML. I have an archive for blog and is shown correctly for the first language (italian), but when the language is switched to english the archive shown is wrong (maybe because wpml add the /en prefix to the url). Maybe I need to set more conditions in the pro editor?

Thank you for your help

Hello @MP_Quadro,

Thanks for writing in! The Category Blog page is using a different one on the English version. Did you already translated your categories? Please check out this documentation first:

Kindly let us know how it goes.

Hello @ruenel,
Yes it is using a different one but it should not be cause the conditions for showing the right archive are the same. I think it changes because of the url (/en). I already translated the blog category, that remains the same.

Hello @MP_Quadro,

After further investigation, I managed to resolved your issue. Here are the things I have tweaked in your site:
1.) I went to Settings > Permalinks and updated your permalink settings to use the “Nome articolo”
2.) I went to Cornerstone > Settings > System and hit the “Clear Style Cache” button.
3.) I edited both your custom layout to use the correct condition name “Post Category is Blog” and ““Post Category is not Blog”” which is applied to the other layout.
4.) I made sure that the custom BLOG category archive layout has been translated.

Please check out your Category archive now.

Hi @ruenel,
I’m sorry for the late response. It’s working perfectly now, thank you!!

Hi @MP_Quadro,

Glad that it is working now.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.