It worked so for me:
a) functions.php:
/*Muliple Post Images*/
if (class_exists(‘MultiPostThumbnails’)) {
$types = array(‘post’, ‘page’, ‘my_post_type’);
foreach($types as $type) {
$thumb = new MultiPostThumbnails(array(
‘label’ => ‘Secondary Image’,
‘id’ => ‘secondary-image’,
‘post_type’ => $type
)
);
}
}
/* Gr??e vergeben (Thumb) */
add_image_size(‘post-secondary-image-thumbnail’, 250, 180);
add_image_size(‘page-secondary-image-thumbnail’, 250, 180);
?>
b) page.php (code where you want your secondary image)
<?php the_secondary_content(); ?>
<?php if (class_exists(‘MultiPostThumbnails’)
&& MultiPostThumbnails::has_post_thumbnail(‘page’, ‘secondary-image’)) :
MultiPostThumbnails::the_post_thumbnail(‘page’, ‘secondary-image’, NULL, ‘page-secondary-image-thumbnail’, NULL, TRUE); endif; ?>
c) and then i open: multi-post-thumbails.php (in plugins)
and edit line: 204 -> add:
class=”thickbox” (after “%s” add class=”thickbox”)
(i add thickbox for my lightbox as class. It can also be lightbox or what you use)
NOW:
SO ALL THE Thumbs clickable and the big size are viewed in thickbox/lightbox)