Title: Conditional Custom Attribute
Last modified: August 21, 2016

---

# Conditional Custom Attribute

 *  Resolved [jonwolfinger](https://wordpress.org/support/users/jonwolfinger/)
 * (@jonwolfinger)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/conditional-custom-attribute/)
 * I have created the custom attribute for my events #_ATT{Web Link} where the user
   can insert a url to link to additional event info. How would I make a conditional
   statement that only shows the link if one exists? I am using the following short
   code:
    [http://pastebin.com/16JWEPTG](http://pastebin.com/16JWEPTG)
 * [http://wordpress.org/plugins/events-manager/](http://wordpress.org/plugins/events-manager/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/conditional-custom-attribute/#post-4368688)
 * here’s another thread which may help you with this – [http://snippets.webaware.com.au/snippets/events-manager-conditional-placeholders-for-custom-attributes/](http://snippets.webaware.com.au/snippets/events-manager-conditional-placeholders-for-custom-attributes/)
 *  Thread Starter [jonwolfinger](https://wordpress.org/support/users/jonwolfinger/)
 * (@jonwolfinger)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/conditional-custom-attribute/#post-4368708)
 * Will the above solution cause conflict with a custom attribute for my locations
   that uses the same key, #LATT{Web Link}, which also needs a conditional statement?
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/conditional-custom-attribute/#post-4368732)
 * it shouldn’t; but it should be #_LATT{Web Link} instead of #LATT{Web Link}

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Conditional Custom Attribute’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [custom attribute](https://wordpress.org/support/topic-tag/custom-attribute/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/conditional-custom-attribute/#post-4368732)
 * Status: resolved