I currently have a custom theme with some images in a separate image folder and I pull them into the frontend with the
echo get_theme_file_uri('/img/image-name.jpg') which works as expected.
I would like to be able to add images from the media library, I know I can do this with
the_post_thumbnail(), but this obviously pulls in the post thumbnail relating to a post, whereas I've designed a page that uses 4 different images.
Is there a template tag that pulls in an image out of the media library onto a page where I can use the image's ID, so you get the benefits
the_post_thumbnail() brings in terms of sizing images etc ?
Any help would be amazing.