<?php echo c2c_get_custom('contactname', '<strong>Contact: ', '</strong>'); ?></br>
<?php echo c2c_get_custom('address', '', '</br>'); ?></br>
<?php echo c2c_get_custom('mailingaddress', '', ''); ?></br>
<?php echo c2c_get_custom('Town', '', ', MB'); ?></br>
<?php echo c2c_get_custom('phone_1', 'Phone:', ''); ?></br>
<?php echo c2c_get_custom('phone_2', 'Phone:', ''); ?></br>
<?php echo c2c_get_custom('phone_tollfree', 'Toll Free:', ''); ?></br>
<?php echo c2c_get_custom('email', 'Email:', ''); ?></br>
<?php echo c2c_get_custom('website', 'Website:', ''); ?></br>
How do I have it so that if There is no Value for the phone_2 Value that the </br> isn’t there after . . .or basically if the value is null to have no </br>
I am guessing this will be an if statement, I am just BRAND new to all of this. . .
The definition of the function is such:
Acquired from here: http://wordpress.org/extend/plugins/get-custom-field-values/other_notes/
Therefore each line should look similar to this:
If the above does not work then the following should suffice: