please could you advise how i wrap the following in a condition , all my efforts have not been succesful .
<h3>Sire</h3>[wpv-view name="view-3435" ids="[types field='sire-of-dog' output='raw' item='@dog-dog-appearance.parent'][/types]"]<hr>
i need to display the view 3435 if sire-of-dog is set m, if not set i would like to display "no sire" . i cannot seem to find the corrrect condtion acroos the views.
,manythanks
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Martin,
Thank you for getting in touch.
Based on our Documentation.
The correct way to do this can be seen below.
[wpv-conditional if="([types field='sire-of-dog' output='raw' item='@dog-dog-appearance.parent'][/types] eq 'm' )"]
<h3>Sire</h3>[wpv-view name="view-3435" ids="[types field='sire-of-dog' output='raw' item='@dog-dog-appearance.parent'][/types]"]<hr>
[/wpv-conditional]
[wpv-conditional if="([types field='sire-of-dog' output='raw' item='@dog-dog-appearance.parent'][/types] ne 'm' )"]
No Sire
[/wpv-conditional]
Please let me know if the above codes work for you.
Thanks,
Shane
My issue is resolved now. Thank you! i had tried that but had made a typo!! thanks for the quick response shane!