WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Post Thumbnails
[resolved] How use "$link_to_original" in the template? (2 posts)

  1. daveleeone
    Member
    Posted 3 years ago #

    I use the following code at the moment

    <?php
    echo MultiPostThumbnails::the_post_thumbnail('post', 'image1', NULL, 'image1' , array('class' => 'Pic shadow')); ?>

    How can I implement in this example a link to the original Image whith the $link_to_original function?

    http://wordpress.org/extend/plugins/multiple-post-thumbnails/

  2. Daniele Raimondi
    Member
    Posted 3 years ago #

    Just in case you haven't found yet (or for other users needing the same info):

    link_to_original is the last optional parameter in the
    MultiPostThumbnails::the_post_thumbnail()
    function call.

    So, taking the example code above just add another bool parameter at the end.

    <?php
    echo MultiPostThumbnails::the_post_thumbnail('post', 'image1', NULL, 'image1' , array('class' => 'Pic shadow'),true); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic