Saltar navegación

[Cerrado] Conditional block based on taxonomy does not work on translated sites

This support ticket is created hace 1 año, 8 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Christopher Amirian hace 1 año, 7 meses.

Asistido por: Christopher Amirian.

Autor
Mensajes
#2604543

Hi,

I created some block conditionals in a template and they don't show in the translated pages.

You can see the conditions here:
( CONTAINS( #(product_cat), 'nivell-intermig' ) )

In the translations I have put the translated slug:
( CONTAINS( #(product_cat), 'intermediate' ) )

But It doesn't work.

How should i do it? Let me know. Thanks!

#2604693

Christopher Amirian
Supporter

Idiomas: Inglés (English )

Hi there,

I would like to know if you translated the template manually or using the Advanced Translation Editor.

If you do it manually I wonder what happens if you use the non-trasnlated slug.

And what if you use some sort of language related conditional instead.

For example:

[wpv-conditional if="( '[wpv-bloginfo show="language"]' eq 'en-US' )"]
Language is english
[/wpv-conditional]

Thanks.

#2607915

Hi Christopher,
I translated the template using the Advanced Translation Editor. Isn't that right?
I don't understand the conditional example you sent me...
Let me know.
Thanks!

#2608189

Christopher Amirian
Supporter

Idiomas: Inglés (English )

Hi there,

Ok if you added the conditional in one language and you translated using Advanced Translation Editor there is no need to add an additional conditional for the other language as you will not have access to the template in the secondary language in the first place.

Here is how to do the translation for the content template:

https://toolset.com/course-lesson/translating-views-content-templates-archives-and-forms/

If you still have issues with the conditional in the second language please give us the content template name and the logi information for further investigation after creating a backup of your website.
Also make sure you set the next reply as private.

Thanks.

El debate ‘[Cerrado] Conditional block based on taxonomy does not work on translated sites’ está cerrado y no admite más respuestas.