• Hi.

    I am trying to modify the gallery setup. I want the images to appear fullsize automatically, which I can see the setting for in media.php but I want to remove the <a> tag that automatically surrounds it, and put the title within the <img>.

    I have tried various things with the wp_get_attachment_image tag and was able to remove the tag but I don’t know how I attach a title or alt tag.

    This was my code:

    foreach ( $attachments as $id => $attachment ) {
    		$link = wp_get_attachment_image($id, $size, true);
    		$output .= '<li>'.$link.'</li>' . "\n";
    	}

    So I need to be able to add a alt and title image to each image.

    Any ideas? Thanks

  • The topic ‘attachement image title tag’ is closed to new replies.