Ho trovato una mezza soluzione...
Inserisco in functions.php questo codice:
codice:
function secondaimmagine($post_id) {
global $post;
$thumbnail_ID = get_post_thumbnail_id();
$images = get_children( array('post_parent' => $post_id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') );
if ($images) :
foreach ($images as $attachment_id => $image) :
if ( $image->ID != $thumbnail_ID ) :
$img_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true); //alt
if ($img_alt == '') : $img_alt = $image->post_title; endif;
$big_array = image_downsize( $image->ID, 'large' );
$img_url = $big_array[0];
echo $img_url;
endif; endforeach; endif; }
...e poi lo richiamo nel single post così
codice:
<?php secondaimmagine("$post->ID"); ?>
Effettivamente funge, ma è un metodo che complica davvero tanto le cose, tanto che non riesco a mandare il link dell'immagine su sito esterno (hai presente quando rimandi a pinkopalla.com/?informazione=xxx&altrainfo=XXX) in nessun modo