Last active
September 20, 2018 01:52
-
-
Save mhige/117cfeebbcd4a5d7ba27a40ef55e0481 to your computer and use it in GitHub Desktop.
Wordpressのget_the_post_thumbnailタグで記事IDを指定してサムネール画像を出力
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 | |
// ID9999の記事の"サムネール画像"を出力 | |
echo get_the_post_thumbnail( 9999 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment