To debug HTML conditional please follow as outlined:
- Remove all complex code from within the Condition.
For example:
[wpv-conditional if="(( '[grupo_dos_contrat]' lt '3' ) AND ( '[numero_contrataciones_user_universidad]' it '2' ) AND ( '[numero_contrataciones_user_grupo]' lt '2' ) AND ( '[wpv-post-id id='$grupo']' ne '786') AND ( $(wpcf-obra-participante-en-la-red-de-teatro-amateur) eq '1' )) OR (( '[grupo_dos_contrat]' gte '3' ) AND ( '[numero_contrataciones_user_universidad]' lt '2' ) AND ( '[numero_contrataciones_user_grupo]' lt '1' ) AND ( '[wpv-post-id id='$grupo']' ne '786') AND ( $(wpcf-obra-participante-en-la-red-de-teatro-amateur) eq '1' )) OR(( '[wpv-post-id id='$grupo']' eq '786' ) AND ( '[numero_contrataciones]' lt '10' ) AND ( '[numero_contrataciones_user_universidad]' lt '2' ) AND ( '[numero_contrataciones_user_grupo]' lt '1' ) AND ( $(wpcf-obra-participante-en-la-red-de-teatro-amateur) eq '1' ))"]
SIMPLE OUTPUT ONLY
[/wpv-conditional]
- Then, enable debug mode for the Conditional Statement:
[wpv-conditional if="(( '[grupo_dos_contrat]' lt '3' ) AND ( '[numero_contrataciones_user_universidad]' it '2' ) AND ( '[numero_contrataciones_user_grupo]' lt '2' ) AND ( '[wpv-post-id id='$grupo']' ne '786') AND ( $(wpcf-obra-participante-en-la-red-de-teatro-amateur) eq '1' )) OR (( '[grupo_dos_contrat]' gte '3' ) AND ( '[numero_contrataciones_user_universidad]' lt '2' ) AND ( '[numero_contrataciones_user_grupo]' lt '1' ) AND ( '[wpv-post-id id='$grupo']' ne '786') AND ( $(wpcf-obra-participante-en-la-red-de-teatro-amateur) eq '1' )) OR(( '[wpv-post-id id='$grupo']' eq '786' ) AND ( '[numero_contrataciones]' lt '10' ) AND ( '[numero_contrataciones_user_universidad]' lt '2' ) AND ( '[numero_contrataciones_user_grupo]' lt '1' ) AND ( $(wpcf-obra-participante-en-la-red-de-teatro-amateur) eq '1' ))" debug="true"]
See how I added "debug="true""
SIMPLE OUTPUT ONLY
[/wpv-conditional]
- Now, test this condition and see what the debug outputs.
On my end, it outputs no Debug info at all, which means the condition is most likely either malformatted or runs out of execution time or similar.
Hence the next step is to start with a small condition:
[wpv-conditional if="(( '[grupo_dos_contrat]' lt '3' ))" debug="true"]
See how I added "debug="true""
SIMPLE OUTPUT ONLY
[/wpv-conditional]
I suggest at first to debug those.
What do they output when you insert them directly in the page or post?
If you use them (and only them) does the conditional work?
If you use only the other (Toolset) ShortCodes, does the condition work?
Unfortunately, I cannot do these tests for you as it involves Custom ShortCodes I do not know the values of - let me know what the tests return!
Eventually we can then spot the issue together
This is saying that [numero_contrataciones_user_universidad] is returning a value of 2 and in your first condition you use >= 2 so then the word TEST will be displayed.
In your second condition you set it to only display if the value is less than 2