Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter RuneNL

    (@runenl)

    (Hid src=”Correct image URL” on request of customer, reason: development environment)

    This is the HTML output:

    <div class="tekst-markup-image2">
    
    <a href="h" title="1 Kamer studio appartement" rel="slb_internal"><img width="93" height="69" src="Correct image URL" class="attachment-post-secondary-image-thumbnail" alt="Straat aanzicht"></a>
    </div>
    Thread Starter RuneNL

    (@runenl)

    Anyone?

    All I am trying to do is making the second thumbnail a link to the original.

    Tried to figure it out with the documented information and rooting through the plugin files.

    <?php
    if ( class_exists('MultiPostThumbnails')) {
    $large_image_url = MultiPostThumbnails::get_post_thumbnail_url(get_post_type($post->ID), 'secondary-image');
    echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" rel="slb_internal" >';
    echo MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image', NULL,  'post-secondary-image-thumbnail');
    echo '</a>';
    }
    ?>
    Thread Starter RuneNL

    (@runenl)

    That might be very true, ill just do that.

    Cheers!

    Thread Starter RuneNL

    (@runenl)

    Just as i thought a simple solution! You have my utmost gratitude!
    I was missing this bit: href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” />

    I must be completely blind since ive search through the Codex as well.

    Thank you again!

    Problem resolved.

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