Ver Mensaje Individual
  #6 (permalink)  
Antiguo 18/09/2010, 05:06
meagle
 
Fecha de Ingreso: abril-2005
Mensajes: 494
Antigüedad: 19 años
Puntos: 26
Respuesta: Una segunda miniatura?

Bueno, he conseguido resolverlo. Por si puede servir de ayuda a alguien.
He añadido la siguiente línea en functions.php
43.- set_post_thumbnail_size( 60, 60, true );
Esto llama a las funciones:
function add_image_size( $name, $width = 0, $height = 0, $crop = FALSE ) {
global $_wp_additional_image_sizes;
$_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => !!$crop );
}

/**
* Registers an image size for the post thumbnail
*/
function set_post_thumbnail_size( $width = 0, $height = 0, $crop = FALSE ) {
add_image_size( 'post-thumbnail', $width, $height, $crop );
}
Y creo que eso es todo. En cada nueva inserción se genera una imagen opcional de 60 por 60 recortada.
Saludos
__________________
Las mejores ofertas en Alquiler coches Ibiza .Una web de turismo en Ibiza.