How can i add to your php code, link to full size image?
-
Usually to open a thumbnail in full, I use this code –
<?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); echo '<a href="' . $large_image_url[0] . '" >'; the_post_thumbnail('medium'); echo '</a>'; } ?>
How can I do the same thing, but using your code?
<?php if (class_exists('MultiPostThumbnails')) : MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'three-image'); endif; ?>
Really need to do this … Thank you!https://www.ads-software.com/extend/plugins/multiple-post-thumbnails/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How can i add to your php code, link to full size image?’ is closed to new replies.