Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/11/2010, 14:24
ylonytram
 
Fecha de Ingreso: mayo-2010
Mensajes: 17
Antigüedad: 14 años
Puntos: 0
divir texto en 2, wordpress.

hola, quiero dividir el titulo de los post en dos pates. encontre un codigo pero solo los divide y la segunda parte no se como obtenerla.

Cita:
function ShortenText($text)

{

$chars_limit = 100;

$chars_text = strlen($text);

$text = $text." ";

$text = substr($text,0,$chars_limit);

$text = substr($text,0,strrpos($text,' '));

if ($chars_text > $chars_limit)

{

$text = $text."...";

}

return $text;

}
y para obtener solo <?php echo ShortenText(get_the_title()); ?>

ahora quiro obtener la otra parte del texto. de la letra 100 hasta el final.

ayudenme por favor, GRACIAS DE ANTEMANO!