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

    (@joshuavalentin)

    I found a way buy editing the multi-post-thumbnails.php directly on line 305 and did this:

    if ($link_to_original && $html) {
    $html = sprintf('<a href="%s" rel="lightbox">%s</a>', wp_get_attachment_url($post_thumbnail_id), $html);
    }

    Still wondering if there is a way to do this without editing the file itself.

    Plugin Author Chris Scott

    (@chrisscott)

    The easiest would be to just call MultiPostThumbnails::get_the_post_thumbnail('products', 'product-thumbnail-1', NULL, 'product-thumbnails') to get the image and then wrap your A tag w/the rel around that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding rel tag to a link’ is closed to new replies.