WordPressで画像挿入する方法の整理
目次
- wp_get_attachment_image
- get_the_post_thumbnail
wp_get_attachment_image()
- カスタムフィールドの画像オブジェクトなどを取得する
(参考)
WordPress Codex - wp_get_attachment_image()
get_the_post_thumbnail()
- アイキャッチ画像を取得する
More than 5 years have passed since last update.
(参考)
WordPress Codex - wp_get_attachment_image()
Register as a new user and use Qiita more conveniently