{"id":8498389,"date":"2016-11-30T16:19:04","date_gmt":"2016-11-30T16:19:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-conditionnal-tag-with-or-operator\/"},"modified":"2016-11-30T16:19:04","modified_gmt":"2016-11-30T16:19:04","slug":"custom-conditionnal-tag-with-or-operator","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-conditionnal-tag-with-or-operator\/","title":{"rendered":"custom conditionnal tag with OR operator ?"},"content":{"rendered":"<p>Hi,<br \/>\nfirst of all thx for this great plugin !<br \/>\nAfter 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.<br \/>\nI would like to show contact informations only if one of the 3 information is filled. for example :<\/p>\n<p><code>{has_contact-nom} OR {has_contact-tel} OR {has_contact-mail} \/\/ display contact infos<\/code><\/p>\n<p>for the moment i have this :<\/p>\n<pre><code>&lt;div class=&quot;event-contact&quot;&gt;\n&lt;h3&gt;Contact&lt;\/h3&gt;\n&lt;p&gt;\n{has_contact-nom} #_ATT{contact-nom} {\/has_contact-nom}&lt;br \/&gt;\n{has_contact-tel} &lt;i class=&quot;fa fa-phone&quot;&gt;&lt;\/i&gt; #_ATT{contact-tel} {\/has_contact-tel}&lt;br \/&gt;\n{has_contact-mail} &lt;i class=&quot;fa fa-envelope-o&quot;&gt;&lt;\/i&gt; &lt;a href=&quot;mailto: #_ATT{contact-mail}&quot;&gt;#_ATT{contact-mail}&lt;\/a&gt; {\/has_contact-mail}\n&lt;\/p&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>but if the 3 contact informations are empty i still have the contact title which is no more necessary.<\/p>\n<p>Thx for Help<\/p>\n","protected":false},"template":"","class_list":["post-8498389","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8498389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8498389\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8498389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}