Home › Toolset Professional Support › [Resolved] How to only display a taxonomy term if it is set
Problem:
In a template output a taxonomy term, but only if a term has been set.
Solution:
Use the wpv-conditional shortcode, like so:
[wpv-conditional if="( '[wpv-post-taxonomy type='genere-principale' format='slug']' ne '' )"] <strong>[wpml-string] Genere: [/wpml-string]</strong> [wpv-post-taxonomy type="genere-principale"]<br /> [/wpv-conditional]
Note that there are different ways of testing for empty values depending on whether you are checking taxonomies or custom fields. See the documentation for details.
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-fields-and-other-elements-for-emptynon-empty-values/
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
Related documentation:
This topic contains 8 replies, has 2 voices.
Last updated by ritaV 6 years, 10 months ago.
Assisted by: Nigel.
i have a site with custom post in toolset: movies and wpml for traduction.
I create a layout with plugin layout and all run ok.
I also create a form for submitted a new movie in front-end and it's almost ok (i have opened another ticket because an editor user cannot translate the movies in backend: https://wpml.org/forums/topic/editor-cannot-translate-cpt-with-toolset/#post-1475568)
but... something is not going as I expect. the problem occurs if I forgot to set some fields... i am logged with administrator's privileges and i do this step:
1. I submit a new movie in front-end (in hidden link), and now i want to add a new taxonomy for this movie because i forgot to set
in my example the movie that i have added is: hidden link
2. I add a new custom tax in backend in Toolset > Panel > Add new Taxnomy for my cpt (movies):
i insert plural and singular name and slug. I set to my cpt and i save.
in my example i add a new tax: "produttore" ("producer" in english)
and also another tax: "arti marziali" ("martial arts" in english")
for "producer" i insert more values/tax and for "martial arts"i insert only one tax/values = "gwon-seung-gu"
3. I set the new taxononomies (producer and martial arts) in my layout template for displayed them in front-end
i go in Toolset > Layout and edit my layout like the other taxonomy:
in my example for producer i insert:
"[wpv-conditional if="( NOT(empty($(produttore))) )"][wpml-string] Produttore: [/wpml-string][wpv-post-taxonomy type="produttore"]<br />[/wpv-conditional]<br />"
4. i go to add the new taxonomy in form for to publish tha next movies in front-end.. and all it's ok and run correctly...
5.. now i go to the movie that i have create in the first step, i click "edit" in backend and i insert a new value for the custom taxonomy that i have create in the step 2.
All run in backend... but if i publish my new version of movie i cannot see the new taxonomy in front-end. i see it only in backend... and in form for submission in front-end.
I would like to display my new taxonomy in front-end of my movie if i add this... the value is not empty.. and i see it in backend...
Why not in front-end? i set the layout.....
i also purge cache but without success.
(if you go to taxonomy in front-end you can see that this tag is set to film: example for martial arts: hidden link)
Can you help me for this issue?
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Rita
I have the other ticket created by you for the same site where I have asked for site credentials, so I will handle this at the same time when I get those from you and I can check the issue you describe here, too.
Thanks you so much.. i know that i am in good hands.
i reply to you with my credentials and i am waiting..
i have another problems now with this issue....
if i edit my layout for films in front-end and add conditional shortcode for field "attore", "genere-principale" in front-end i cannot see anything also if there is values.
example:
if i have in layout:
for display cast in front-end:
[wpv-conditional if="( NOT(empty($(attore))) )"] [wpml-string] Cast:[/wpml-string] [wpv-post-taxonomy type="attore"] [/wpv-conditional]<br />
or for display main genre in front-end:
[wpv-conditional if="( NOT(empty($(genere-principale)) )"] [wpml-string] Genere: [/wpml-string] [wpv-post-taxonomy type="genere-principale"] [/wpv-conditional]<br />
i don't see the value for movies that have this values.
if i don't use the contitional shortcode and have in layout:
[wpml-string] Cast:[/wpml-string] [wpv-post-taxonomy type="attore"] <br />
or for display main genre in front-end:
[wpml-string] Genere: [/wpml-string] [wpv-post-taxonomy type="genere-principale"] <br />
i see the empty values near string label for movie that don't have this fields.
can you help me? it's the same issue?
BEFORE
<p>[wpml-string] Regista: [/wpml-string] [wpv-post-taxonomy type="regista"]</p >[wpml-string] Anno: [/wpml-string] [types field='anno' format='FIELD_VALUE'][/types]</p >
[wpml-string] Cast:[/wpml-string] [wpv-post-taxonomy type="attore"][wpv-conditional if="( NOT(empty($(sceneggiatore))) )"] [wpml-string] Sceneggiatore: [/wpml-string] [wpv-post-taxonomy type="sceneggiatore"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(produttore))) )"][wpml-string] Produttore: [/wpml-string][wpv-post-taxonomy type="produttore"]<br />
[/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(assistente-al-direttore))) )"][wpml-string] Assistente al Direttore: [/wpml-string] [wpv-post-taxonomy type="assistente-al-direttore"]<br />
[/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(fotografia))) )"][wpml-string] Fotografia: [/wpml-string] [wpv-post-taxonomy type="fotografia"]<br />
[/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(luci))) )"][wpml-string] Luci:[/wpml-string] [wpv-post-taxonomy type="luci"][/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(montaggio))) )"][wpml-string] Montaggio: [/wpml-string] [wpv-post-taxonomy type="montaggio"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(musica))) )"][wpml-string] Musica: [/wpml-string] [wpv-post-taxonomy type="musica"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(direttore-artistico))) )"][wpml-string] Direttore Artistico: [/wpml-string] [wpv-post-taxonomy type="direttore-artistico"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(materiale-di-scena))) )"][wpml-string] Materiale di scena:[/wpml-string] [wpv-post-taxonomy type="materiale-di-scena"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(costume))) )"][wpml-string]Costumi: [/wpml-string] [wpv-post-taxonomy type="costume"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(make-up))) )"][wpml-string] Make Up: [/wpml-string] [wpv-post-taxonomy type="make-up"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(audio))) )"][wpml-string] Audio: [/wpml-string] [wpv-post-taxonomy type="audio"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(effetti-speciali))) )"][wpml-string] Effetti Speciali:[/wpml-string] [wpv-post-taxonomy type="effetti-speciali"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(arte-marziale))) )"][wpml-string] Arti Marziali: [/wpml-string] [wpv-post-taxonomy type="arte-marziale"] [/wpv-conditional]<br />
[wpml-string] Nazione: [/wpml-string] [types field='nazione-film' separator=', '][/types]<br />
[wpml-string] Formato Film: [/wpml-string] [wpv-post-taxonomy type="formato-film"]<br />
[wpv-conditional if="( NOT(empty($(durata))) )"][wpml-string] Durata:[/wpml-string] [types field='durata' separator=', '][/types] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(colore))) )"][wpml-string] Colore: [/wpml-string] [types field='colore' separator=', '][/types] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(linguaggio))) )"][wpml-string] Lingua: [/wpml-string] [types field='linguaggio' separator=', '][/types] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(sottotitoli-film))) )"][wpml-string] Sottotitoli: [/wpml-string] [types field='sottotitoli-film' separator=', '][/types] [/wpv-conditional]<br />
[wpml-string] Genere: [/wpml-string] [wpv-post-taxonomy type="genere-principale"]<br />
[wpml-string] Formato: [/wpml-string] [types field='format' separator=', '][/types][wpv-conditional if="( NOT(empty($(produzione))) )"][wpml-string] Produzione: [/wpml-string] [wpv-post-taxonomy type="produzione"] [/wpv-conditional]<br />
[wpv-conditional if="( NOT(empty($(distribuzione-internazionale))) )"] [wpml-string] Distribuzione Internazionale:[/wpml-string] [wpv-post-taxonomy type="distribuzione-internazionale"] [/wpv-conditional][wpml-string] Sezione Festival: [/wpml-string] [types field='sezione-festival' separator=', '][/types]<br />
[wpv-conditional if="( NOT(empty($(anno-festival))) )"] [wpml-string] Anno Festival: [/wpml-string] [wpv-post-taxonomy type="anno-festival"] [/wpv-conditional]</p>
<p>[wpml-string] Sinossi: [/wpml-string] [types field='sinossi'][/types]</p>
<p>[wpv-conditional if="( NOT(empty($(recensione-film))) )"][wpml-string] Recensione Film:[/wpml-string] [types field='recensione-film'][/types] [/wpv-conditional]</p>
<p> [wpml-string] Relatore:[/wpml-string] [wpv-post-taxonomy type="relatore"]<br />
[wpv-conditional if="( NOT(empty($(trailer))) )"][wpml-string]<br />
[wpml-string] Trailer:[/wpml-string] [types field='trailer'][/types] [/wpv-conditional]</p>
AFTER
<p>[wpml-string] Regista: [/wpml-string] [wpv-post-taxonomy type="regista"]</p>
<p>[wpml-string] Anno: [/wpml-string] [types field='anno' format='FIELD_VALUE'][/types]</p>
<p>[wpml-string] Cast:[/wpml-string] [wpv-post-taxonomy type="attore"] </p>
<p>[wpml-string] Sceneggiatore: [/wpml-string] [wpv-post-taxonomy type="sceneggiatore"] </p>
<p>[wpml-string] Produttore: [/wpml-string][wpv-post-taxonomy type="produttore"] </p>
<p>[wpml-string] Assistente al Direttore: [/wpml-string] [wpv-post-taxonomy type="assistente-al-direttore"] </p>
<p>[wpml-string] Fotografia: [/wpml-string] [wpv-post-taxonomy type="fotografia"] </p>
<p>[wpml-string] Luci:[/wpml-string] [wpv-post-taxonomy type="luci"]</p>
<p>[wpml-string] Montaggio: [/wpml-string] [wpv-post-taxonomy type="montaggio"] </p>
<p>[wpml-string] Musica: [/wpml-string] [wpv-post-taxonomy type="musica"] </p>
<p>[wpml-string] Direttore Artistico: [/wpml-string] [wpv-post-taxonomy type="direttore-artistico"] </p>
<p>[wpml-string] Materiale di scena:[/wpml-string] [wpv-post-taxonomy type="materiale-di-scena"] </p>
<p>[wpml-string]Costumi: [/wpml-string] [wpv-post-taxonomy type="costume"] </p>
<p>[wpml-string] Make Up: [/wpml-string] [wpv-post-taxonomy type="make-up"] </p>
<p>[wpml-string] Audio: [/wpml-string] [wpv-post-taxonomy type="audio"] </p>
<p>[wpml-string] Effetti Speciali:[/wpml-string] [wpv-post-taxonomy type="effetti-speciali"] </p>
<p>[wpml-string] Arti Marziali: [/wpml-string] [wpv-post-taxonomy type="arte-marziale"] </p>
<p>[wpml-string] Nazione: [/wpml-string] [types field='nazione-film' separator=', '][/types] </p>
<p>[wpml-string] Formato Film: [/wpml-string] [wpv-post-taxonomy type="formato-film"] </p>
<p>[wpml-string] Durata:[/wpml-string] [types field='durata' separator=', '][/types] </p>
<p>[wpml-string] Colore: [/wpml-string] [types field='colore' separator=', '][/types] </p>
<p>[wpml-string] Lingua: [/wpml-string] [types field='linguaggio' separator=', '][/types] </p>
<p>[wpml-string] Sottotitoli: [/wpml-string] [types field='sottotitoli-film' separator=', '][/types] </p>
<p>[wpml-string] Genere: [/wpml-string] [wpv-post-taxonomy type="genere-principale"] </p>
<p>[wpml-string] Formato: [/wpml-string] [types field='format' separator=', '][/types] </p>
<p>[wpml-string] Produzione: [/wpml-string] [wpv-post-taxonomy type="produzione"] </p>
<p>[wpml-string] Distribuzione Internazionale:[/wpml-string] [wpv-post-taxonomy type="distribuzione-internazionale"] </p>
<p>[wpml-string] Sezione Festival: [/wpml-string] [types field='sezione-festival' separator=', '][/types]</p>
<p>[wpml-string] Anno Festival: [/wpml-string] [wpv-post-taxonomy type="anno-festival"] </p>
<p>[wpml-string] Sinossi: [/wpml-string] [types field='sinossi'][/types]</p>
<p>[wpv-conditional if="( NOT(empty($(recensione-film))) )"][wpml-string] Recensione Film:[/wpml-string] [types field='recensione-film'][/types] </p>
<p>[wpml-string] Relatore:[/wpml-string] [wpv-post-taxonomy type="relatore"]</p>
<p>[wpv-conditional if="( NOT(empty($(trailer))) )"][wpml-string] Trailer:[/wpml-string] [types field='trailer'][/types] </p>
WHAT I WANT:
<p>[wpv-conditional if="( NOT(empty($(regista))) )"][wpml-string] Regista: [/wpml-string] [wpv-post-taxonomy type="regista"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(anno))) )"][wpml-string] Anno: [/wpml-string] [types field='anno' format='FIELD_VALUE'][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(attore))) )"][wpml-string] Cast:[/wpml-string] [wpv-post-taxonomy type="attore"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(sceneggiatore))) )"][wpml-string] Sceneggiatore: [/wpml-string] [wpv-post-taxonomy type="sceneggiatore"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(produttore))) )"][wpml-string] Produttore: [/wpml-string][wpv-post-taxonomy type="produttore"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(assistente-al-direttore))) )"][wpml-string] Assistente al Direttore: [/wpml-string] [wpv-post-taxonomy type="assistente-al-direttore"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(fotografia))) )"][wpml-string] Fotografia: [/wpml-string] [wpv-post-taxonomy type="fotografia"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(luci))) )"][wpml-string] Luci:[/wpml-string] [wpv-post-taxonomy type="luci"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(montaggio))) )"][wpml-string] Montaggio: [/wpml-string] [wpv-post-taxonomy type="montaggio"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(musica))) )"][wpml-string] Musica: [/wpml-string] [wpv-post-taxonomy type="musica"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(direttore-artistico))) )"][wpml-string] Direttore Artistico: [/wpml-string] [wpv-post-taxonomy type="direttore-artistico"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(materiale-di-scena))) )"][wpml-string] Materiale di scena:[/wpml-string] [wpv-post-taxonomy type="materiale-di-scena"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(costume))) )"][wpml-string]Costumi: [/wpml-string] [wpv-post-taxonomy type="costume"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(make-up))) )"][wpml-string] Make Up: [/wpml-string] [wpv-post-taxonomy type="make-up"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(audio))) )"][wpml-string] Audio: [/wpml-string] [wpv-post-taxonomy type="audio"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(effetti-speciali))) )"][wpml-string] Effetti Speciali:[/wpml-string] [wpv-post-taxonomy type="effetti-speciali"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(arte-marziale))) )"][wpml-string] Arti Marziali: [/wpml-string] [wpv-post-taxonomy type="arte-marziale"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(nazione-film))) )"][wpml-string] Nazione: [/wpml-string] [types field='nazione-film' separator=', '][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(formato-film))) )"][wpml-string] Formato Film: [/wpml-string] [wpv-post-taxonomy type="formato-film"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(durata))) )"][wpml-string] Durata:[/wpml-string] [types field='durata' separator=', '][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(colore))) )"][wpml-string] Colore: [/wpml-string] [types field='colore' separator=', '][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(linguaggio))) )"][wpml-string] Lingua: [/wpml-string] [types field='linguaggio' separator=', '][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(sottotitoli-film))) )"][wpml-string] Sottotitoli: [/wpml-string] [types field='sottotitoli-film' separator=', '][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(genere-principale))) )"][wpml-string] Genere: [/wpml-string] [wpv-post-taxonomy type="genere-principale"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(format))) )"][wpml-string] Formato: [/wpml-string] [types field='format' separator=', '][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(produzione))) )"][wpml-string] Produzione: [/wpml-string] [wpv-post-taxonomy type="produzione"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(distribuzione-internazionale))) )"][wpml-string] Distribuzione Internazionale:[/wpml-string] [wpv-post-taxonomy type="distribuzione-internazionale"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(sezione-festival))) )"][wpml-string] Sezione Festival: [/wpml-string] [types field='sezione-festival' separator=', '][/types] [/wpv-conditional] </p>
<p>[wpv-conditional if="( NOT(empty($(anno-festival))) )"][wpml-string] Anno Festival: [/wpml-string] [wpv-post-taxonomy type="anno-festival"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(sinossi))) )"][wpml-string] Sinossi: [/wpml-string] [types field='sinossi'][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(recensione-film))) )"][wpml-string] Recensione Film:[/wpml-string] [types field='recensione-film'][/types] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(relatore))) )"][wpml-string] Relatore:[/wpml-string] [wpv-post-taxonomy type="relatore"] [/wpv-conditional]</p>
<p>[wpv-conditional if="( NOT(empty($(trailer))) )"][wpml-string] Trailer:[/wpml-string] [types field='trailer'][/types] [/wpv-conditional]</p>
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Rita
There seems to be some deep-rooted problem with your site.
While investigating the problem conditionally displaying certain taxonomy terms, I found that the wpv-post-taxonomy shortcode simply wasn't working for, for example, the genre taxonomy.
To simplify things I disabled Layouts and made a new content template to display single films that includes just the post title and the genre taxonomy.
I edited a film to make sure that it had a genre set, then viewed the film on the front end, and nothing was output for the taxonomy.
I have already passed your site on to the second tier to investigate the WPML-related issue, and have asked them to investigate this at the same time.
I'll keep you posted.
Note that the correct format for conditionally testing taxonomies is to compare to an empty string, not use the empty() function: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/displaying-taxonomies-conditionally/
In your other ticket you talked about building a new version of the site from scratch and importing the films. That might not be a bad idea. The options are described here: https://toolset.com/documentation/user-guides/modules-exporting-and-importing/
You would only need to use the CSV import if your film content is coming from a non-WordPress source and is stored in CSV format.
I would set up as much as is practicable manually, to avoid the risk of importing the problem affecting your current site into the new site.
Hello!
It seems strange to me there are some deep-rooted problem with my site.
Because before I had the site on webrelativo.it/koreafilmfest and I used the WPMediaLibrary plugin. I could not continue to insert my films with WPMediaLibrary because WPML is not yet compatible with this plugin.
So I bought TOOLSET and I got it all back on a new site: webrelativo.it/korea. I installed only and exclusively the plugins that you find in the backend list and then I installed the DIVI theme.
and then i add all my post and movie manually, without any plugin of import or similar functions.
After my first project went wrong for the incompatibility I am very careful about what is compatible with TOOLSET, TOOLSET and WPML as for me it is indispensable tools.
I can change everything else but not WPML and TOOLSET.
I saw that both are compatible with my favorite theme DIVI, so I installed DIVI thinking of doing the right thing and not having incompatibility.
I have not installed plugins to test functionality so it seems strange that my site does not go and that there is some dirty code in my wordpress.
now I have deleted databases and all the data present in my first project webrelativo.it/koreafilmfest and
I was trying to reinstall everything manually but my client is in a hurry and is continuing to insert films through toolset ACCESS and CRED in webrelativo.it/korea
I with administrator privileges I will translate every film that he inserts.
I let you work and look for any incompatibilities in your tools and I certainly do not want to put the haste that puts my client to me.
while you are looking for where the error I would like to know what you recommend:
- (layout issues) How can I show my custom fields using toolset and wpml in the front end? Can I use only views and layouts or are there any third-party plugins that you know are compatible?
- (conditional issues) How can I show only filled fields and not all full and empty fields?
I can wait until the problem is solved that a user with editor privileges can not modify and insert translations ... in my project I can take care of it.
but I can not wait to show the custom fields in the front end and translate them
Also the conditional if you give me don't run (https://toolset.com/documentation/user-guides/conditional-html-output-in-views/displaying-taxonomies-conditionally/)
I wait and believe in your support but I'm really desperate
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Rita
My colleague couldn't reproduce the problem I described so I'm testing it again now and will try to identify the issue as quickly as possible.
I'll get back to you soon.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Rita
I did some more testing on the local copy of your site and the conditional tests for whether a taxonomy is set does appear to work after all, and so I have added it to your online site so that you can see that it is working for yourself.
I added the conditional test for taxonomies as described in the documentation I linked to above:
[wpv-conditional if="( '[wpv-post-taxonomy type='genere-principale' format='slug']' ne '' )"] <strong>[wpml-string] Genere: [/wpml-string]</strong> [wpv-post-taxonomy type="genere-principale"]<br /> [/wpv-conditional]
So the genre will only be output if it is actually set.
It works, as you can see here: hidden link
Did I misunderstand the problem?
As per the documentation, you can use empty() to test whether a custom field is set or not, but for taxonomies you should compare to an empty string as shown in my example.
You will need to update your content template accordingly.
Oh that's great! now works! the shortcode to insert was wrong!
fields, taxonomies and checkboxes have different conditional shortcodes!
Thank you so much!
For the time being I have successfully tried the shortcode for fields and taxonomies and it works. Over the weekend I'll try for the checkboxes!
I hope everything works, in the meantime I thank you from my heart.
you have a really capable and fast and professional assistance and support