Author template help. How to check if field exists in the profile?
<?php if(!empty($curauth->description)) { ?> <div class=”title”>About me</div> <div class=”descwrap”> <div class=”descinner”> <?php echo $curauth->description; ?> </div> </div> <?php } ?> This should work for you. It checks if the variable is empty or not (http://php.net/manual/en/function.empty.php).