I am wondering how I can display a default description if a user has not populated there description field?
Thanks
I am wondering how I can display a default description if a user has not populated there description field?
Thanks
Never mind I figured it out. Just added an else statement to line 183 if statement.
if (get_option('wpu_description_list')) {
if ($curauth->description) {
if (get_option('wpu_description_limit')) {
$desc_limit = get_option('wpu_description_limit');
$html .= "<div class=\"wpu-about\">" . substr($curauth->description, 0, $desc_limit) . "...</div>\n";
} else {
$html .= "<div class=\"wpu-about\">" . $curauth->description . "</div>\n";
}
} else { $html .= "<div class=\"wpu-about\">No Description Available</div>\n";
}
}
$html .= "</div>";
return $html;
You must log in to post.