custom conditionnal tag with OR operator ?
-
Hi,
first of all thx for this great plugin !
After hours searching in support forum i decide to ask. I have 3 custom attributes to manage contact informations for my events : contact-nom, contact-tel and contact-mail.
I would like to show contact informations only if one of the 3 information is filled. for example :{has_contact-nom} OR {has_contact-tel} OR {has_contact-mail} // display contact infos
for the moment i have this :
<div class="event-contact"> <h3>Contact</h3> <p> {has_contact-nom} #_ATT{contact-nom} {/has_contact-nom}<br /> {has_contact-tel} <i class="fa fa-phone"></i> #_ATT{contact-tel} {/has_contact-tel}<br /> {has_contact-mail} <i class="fa fa-envelope-o"></i> <a href="mailto: #_ATT{contact-mail}">#_ATT{contact-mail}</a> {/has_contact-mail} </p> </div>
but if the 3 contact informations are empty i still have the contact title which is no more necessary.
Thx for Help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘custom conditionnal tag with OR operator ?’ is closed to new replies.