Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Add Author Bio to Post


Nahum
Participant

@nahummadrid

@gearupandplay To limit the text try this:

for your functions.php :

function Wanna_Limit_Text($Text,$Min,$Max,$MinAddChar) {
if (strlen($Text) < $Min) {
$Limit = $Min-strlen($Text);
$Text .= $MinAddChar;
}
elseif (strlen($Text) >= $Max) {
$words = explode(” “, $Text);
$check=1;
while (strlen($Text) >= $Max) {
$c=count($words)-$check;
$Text=substr($Text,0,(strlen($words[$c])+1)*(-1));
$check++;
}
}

return $Text;
}

this for you template :

post_author )),10,90""); ?>

Where 90 is the number of characters and you just adjust that.

Good luck

Skip to toolbar