Visualizzazione 0 filoni di risposte
Visualizzazione 0 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › set_post_thumbnail non funziona WP 3.2.1
Ciao a tutti.
Seguendo varie guide ho impostato nel mio file functions.php il codice
if ( function_exists( 'add_theme_support' ) ) {
// Images
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 100, 75, true ); // 150x150 size
add_image_size( '150x150', 150, 150, true); // 150x150 image size
add_image_size( '270x150', 270, 150, true ); // 270x150 image size
add_image_size( '310x150', 310, 150, true ); // 310x150 image size
add_image_size( '310x310', 310, 310, true ); // 310x310 image size
add_image_size( 'pino', 450, 310, true ); // 310x310 image size
add_image_size( '590x400', 590, 400, true ); // 590x400 image size
add_image_size( '590', 590, 9999 ); // 590 image size
add_image_size( '950', 950, 9999 ); // 950 image size
add_image_size( 'tag-post-thumbnail', 100, 160 );
nel momento in cui nella mia home page cerco di richiamare un’immagine con la funzione
<?php the_post_thumbnail('590x400'); ?>
non funziona.
continua a impostarmi quella di default.
io avrei bisogno di prendere le immagini dei miei articoli e farle visualizzare alla mia dimensione scelta. Al momento dell’upload dell’immagine vedo che vengono create tutte le immagini croppate ma non riesco a richiamarla con questa funzione.
cosa mi manca???
ciao
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0