Last active
December 28, 2015 11:58
-
-
Save mypacecreator/7496792 to your computer and use it in GitHub Desktop.
アイキャッチ画像をポップアップに
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( has_post_thumbnail() ) : ?> | |
<a href="<?php | |
$popupimg_id = get_post_thumbnail_id(); | |
$popupimg_url = wp_get_attachment_image_src($popupimg_id,'full', true); | |
echo esc_url($popupimg_url[0]); | |
?>"><?php the_post_thumbnail(); ?></a> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment