![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/11/2012, 22:11
|
![Avatar de xxxivanxxx](http://static.forosdelweb.com/customavatars/avatar363791_3.gif) | | | Fecha de Ingreso: julio-2010 Ubicación: /home
Mensajes: 114
Antigüedad: 14 años, 6 meses Puntos: 21 | |
Respuesta: limitar a caracteres un campo personalizado http://php.net/manual/es/function.substr.php
Ejemplo:
Código PHP:
Ver original<p> <?php $values = get_post_custom_values ("sinopsis"); echo substr($values[0],0,250); ?></p>
el caso anterior te muestra los primeros 250 caracteres ;)
__________________ <?="Hello World"?> -> si te gustÓ dale +1 |