Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter newcomdd_gmbh

    (@newcomdd_gmbh)

    Great Thanks! it works! fine! …. so i can use the “quick fix”…is there a chance that secondary html content 3 is coming soon????? so i can chance to version 3….?????

    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)

Viewing 2 replies - 1 through 2 (of 2 total)