2009-11-29 5 views

risposta

14

Prova questo nel modello single.php:

$args = array(
'post_type' => 'attachment', 
'post_mime_type' => 'image', 
'post_parent' => $post->ID 
); 
$images = get_posts($args); 
foreach($images as $image): 
echo wp_get_attachment_image($image->ID, 'medium'); 
endforeach; 
+1

Grazie mille per il vostro sostegno. – fatihturan

+0

Sto iniziando a rendermi conto che non esiste una soluzione bellissima per questo. – ViniciusPires