avere le immagini che sono nel post (almeno 1 :)
qui ce ne sono di più: https://noblogs.org/activity/
forse bisogna utilizzare wp_get_attachment_image_src https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/
in fondo ha un esempio che dovrebbe proprio essere quel che cerchiamo: Show the first image associated with the post però nonostante ciò in quella pagina di reference, usa: wp_get_attachment_thumb_url forse si sono sbagliati.
Ho consultato pure questi ma sono molto vecchi
https://stackoverflow.com/questions/11261883/how-to-get-wordpress-post-featured-image-url
https://stackoverflow.com/questions/12230928/wordpress-get-images-of-current-post
ed usano wp_get_attachment_image_src, la prima che riportavo.