Show field on custom template only if it is filled out
-
I am working on a member directory and I created a custom template and I have my fields displayed, but some members will not have the fields, so I was wondering what the “if” array would be?
An example of code:
<a href="tel:<?php $business_phone_1 = um_user('business_phone_1'); echo $business_phone_1; // prints the user's business number ?>"><?php $business_phone_1 = um_user('business_phone_1'); echo $business_phone_1; // prints the user's business number?></a>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Show field on custom template only if it is filled out’ is closed to new replies.